The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
CentOS SDL2 shared libraries
polyfrag


Joined: 24 May 2014
Posts: 30
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.
polyfrag


Joined: 24 May 2014
Posts: 30
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.
polyfrag


Joined: 24 May 2014
Posts: 30
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?