[SDL] strange situation installing SDL

Jonathan Dearborn grimfang4 at gmail.com
Wed Sep 28 06:59:20 PDT 2016


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 <jacekmigacz at gmail.com> wrote:

> 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 <king621 at comcast.net>:
>
>> Using 32-bit Ubuntu 14.04 and installing SDL2-2.0.4 from source. The SDL
>> libraries were installed in /usr/local/lib but at runtime my SDL program
>> cant find the shared library libSDL2-2.0.so.0. I ran STRACE and found that
>> the program searches in several directories for the shared library but
>> doesn't find it anywhere. One of the paths searched is /usr/lib, so I
>> copied the library there and the program runs fine. QUESTION: why does SDL
>> install to a directory that is not searched?
>>
>> TIA. Bill S.
>>
>> _______________________________________________
>> SDL mailing list
>> SDL at lists.libsdl.org
>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>>
>>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20160928/b600e2f2/attachment.htm>


More information about the SDL mailing list