I bought the book Mastering Nim and am trying to work through the examples. I'm new to Nim but have a general understanding of python... though programming is not my career. I am using a virtual machine and an installation of Ubuntu 22.04. I finally made some progress tonight installing SDL with cmake but see that installed SDL3 not SDL2. Additionally, no luck with using "sudo apt-get install libsdl2", though "sudo apt-get install libsdl2-dev" does work.
Does the pixel library need to be updated for SDL3 or do I need more help setting up SDL2? Any guidance would be appreciated. Thanks.
Current error messages: libSDL2_ttf.so: cannot open shared object file: No such file or directory
libSDL2_ttf.so.0: cannot open shared object file: No such file or directory
libSDL2_ttf-2.0.so: cannot open shared object file: No such file or directory
libSDL2_ttf-2.0.so.0: cannot open shared object file: No such file or directory
could not load: libSDL2_ttf(|-2.0).so(|.0)
Hi
Ubuntu 22.04
"sudo apt-get install libsdl2-dev" does work.
$ sudo apt install libsdl2-ttf-2.0-0
You must install the above. probably