strange situation installing SDL |
strange situation installing SDL |
Jacek Migacz
Guest
|
ANSWER: SDL does not install to a directory that is not searched. You do.
Try to reconfigure it with standard prefix; "--configure --prefix=/usr". On Debian-like distro, you should probably use "apt-get source" instead of pulling an upstream tarball. Also moving .so files manually can potentially cause even more issues. Finally, you can verify dynamic linker cache by "ldconfig -p | grep SDL". -- Jacek Migacz 2016-09-28 14:54 GMT+02:00 bilsch01:
|
|||||||||||||
|
strange situation installing SDL |
Jonny D
|
SDL also helps you along by setting up the sdl2-config utility. Use sdl2-config to tell your compiler where to find the headers and your linker where to find the libraries.
https://wiki.libsdl.org/FAQLinux Jonny D On Wed, Sep 28, 2016 at 9:48 AM, Jacek Migacz wrote:
|
|||||||||||||||
|
Re: strange situation installing SDL |
bilsch01
|
ANSWER: SDL does not install to a directory that is not searched. You do.
Try to reconfigure it with standard prefix; "--configure --prefix=/usr". I entered: ./configure, make, make install. Nothing more. That resulted in the library being installed in /usr/local/lib. STRACE shows that directory is not searched at run time, resulting in an error. Something is wrong - but it's not me. I don't understand: reconfigure it with standard prefix; "--configure --prefix=/usr"' Do you mean ./configure --prefix=/usr ? Please explain. Thanks. Bill S.
|
|||||||||||||
|
strange situation installing SDL |
Pete
Guest
|
On 2016年09月28日 12:54, bilsch01 wrote:
The problem here is that /usr/local/lib is probably not specified in your /etc/ld.so.conf (or one of the files in /etc/ld.so.conf.d). This sets the paths for the loader to look for shared libraries to load. You can add it there, or create a file under that directory that adds /usr/local/lib to the path. Most Linux distributions have the path in there by default, but sometimes they do not. It's worth noting that after you alter that, you will have to run ldconfig (as root) for the changes to take effect.
/usr/local is a fairly standard prefix for autotools-based packages (like SDL) to use. The idea (sort of) is that the OS package manager is in charge of /usr, but does not install or remove files found under /usr/local, and that this (hopefully) prevents conflicts between locally installed software and software that your package manager installs. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||
|
bilsch01
|
thanks for the info. I wish there was some quick reference for info like this.
|
|||||||||||
|