deno-windowing / dwm

Deno Window Manager: Cross-platform window creation and management
https://deno.land/x/dwm
Apache License 2.0
155 stars 11 forks source link

Fix canvas extensions for Ubuntu Linux 22.04 LTS #34

Open chances opened 6 months ago

willstott101 commented 2 months ago

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)