ftsf / nico

a Game Framework in Nim inspired by Pico-8.
MIT License
630 stars 36 forks source link

Linux has outdated SDL #33

Open tomc1998 opened 4 years ago

tomc1998 commented 4 years ago

Hello!

My linux distro (ubuntu 18, which isn't too old, i suspect many people are still on this version) has SDL 2.0.0, which causes nico to crash. This is because it calls into SDL_RWsize, which is not in SDL 2.0.0 (apparently it was a macro in that version)

I had to build from the source on their website, then manually set LD_LIBRARY_PATH to point to this. This made it all work!

I had to build from the source on the website: https://www.libsdl.org/release/SDL2-2.0.12.tar.gz A github mirror I tried seemed to only build SDL 2.0.0

Not a problem with nico, just adding this issue so that other linux users know what the issue is!

clort81 commented 2 years ago

Debian unstable is at Version: 2.0.22+dfsg-4 Ubuntu* is. Very. Often. Outdated for compiling current github projects against.
It's really not a distro for doin that.