deno_sdl2
deno_sdl2 copied to clipboard
Unable to find SDL on Ubuntu 22.04
I tried running https://github.com/littledivy/flappybird on Ubuntu 22.04 with the following result:
18:28 ~/Sc+/flappybird (main) $ ls /usr/lib/x86_64-linux-gnu/libSDL2*
/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.18.2
/usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0
/usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0.2.3
/usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0
/usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0.2.2
/usr/lib/x86_64-linux-gnu/libSDL2_net-2.0.so.0
/usr/lib/x86_64-linux-gnu/libSDL2_net-2.0.so.0.0.1
/usr/lib/x86_64-linux-gnu/libSDL2_ttf-2.0.so.0
/usr/lib/x86_64-linux-gnu/libSDL2_ttf-2.0.so.0.18.0
18:28 ~/Sc+/flappybird (main) $ uname -a
Linux oz 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
18:28 ~/Sc+/flappybird (main) $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
18:28 ~/Sc+/flappybird (main) $ ./flappybird
error: Uncaught (in promise) Error: Could not open library: Could not open library: libSDL2.so: cannot open shared object file: No such file or directory
at new DynamicLibrary (ext:deno_ffi/00_ffi.js:454:42)
at Object.dlopen (ext:deno_ffi/00_ffi.js:558:10)
at https://jsr.io/@divy/sdl2/0.12.0/mod.ts:28:19
The deno people suggested in https://fosstodon.org/@deno_land/113108106611366244 that this looks like a bug in this library, and I should file it here, so here it is.