Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix canvas extensions for Ubuntu Linux 22.04 LTS #34

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chances
Copy link

@chances chances commented Apr 29, 2024

No description provided.

@willstott101
Copy link

Even with the patch in this PR, I cannot use this lib on 22.04 doesn't work for me:

wstott@wstott-ubuntu:~/repos/others/dwm$ deno run --unstable-webgpu --unstable-ffi --allow-ffi --allow-write --allow-env examples/cube.ts 
✅ Granted read access to "/home/wstott/.cache/deno/plug".
✅ Granted read access to "/home/wstott/.cache/deno/glfw3_v3-4-0.so".
error: Uncaught (in promise) Error: Could not open library: Could not open library: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/wstott/.cache/deno/plug/https/github.com/ca5f22309759238252351f9be046c2fe0145354ddfb7f7a85ff783475f26edda.so)
  return Deno.dlopen<S>(await download(options), symbols as any);
              ^
    at new DynamicLibrary (ext:deno_ffi/00_ffi.js:454:42)
    at Object.dlopen (ext:deno_ffi/00_ffi.js:558:10)
    at dlopen (https://jsr.io/@denosaurs/plug/1.0.5/mod.ts:155:15)
    at eventLoopTick (ext:core/01_core.js:174:7)
    at async https://jsr.io/@gfx/canvas/0.5.6/src/ffi.ts:966:10
wstott@wstott-ubuntu:~/repos/others/dwm$ ldd /home/wstott/.cache/deno/plug/https/github.com/ca5f22309759238252351f9be046c2fe0145354ddfb7f7a85ff783475f26edda.so
/home/wstott/.cache/deno/plug/https/github.com/ca5f22309759238252351f9be046c2fe0145354ddfb7f7a85ff783475f26edda.so: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/wstott/.cache/deno/plug/https/github.com/ca5f22309759238252351f9be046c2fe0145354ddfb7f7a85ff783475f26edda.so)
	linux-vdso.so.1 (0x00007ffd74780000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x0000783dbc428000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x0000783dbc341000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x0000783dbc321000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000783dbc0f8000)
	/lib64/ld-linux-x86-64.so.2 (0x0000783dbdbfb000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants