I built the lib from source but it gives me this error when I run my app:
error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
How do I find it on my centos or is there a repo that has this lib? It seems I can get the SDL1 libs but not 2.
I found the .so in /usr/local/ using “find / -name libSDL2-2.0.so.0” and I copied it to my app’s folder but it’s giving the same error again.
Using ldd I was able to find all the dependencies. They were in /lib64/ so I moved all the SDL2 libs from /usr/local/lib/ there and it worked. I guess the “make install” part in the source code is meant for Debian/Ubuntu and not Fedora/CentOS?