[SDL] Dynamic loading on UNIX

Sam Lantinga slouken at devolution.com
Mon Dec 14 07:58:17 PST 1998


> Looks like SDL_Init looks for libSDLx11.so.0.9,
> but it does not look into the directories that are in
> my LD_LIBRARY_PATH.

> Don't you think it should ?

It should, and does on my system.

> i.e., if I put libSDLx11.so.0.9 in /usr/local/lib and
> set LD_LIBRARY_PATH to contain /usr/local/lib, I think
> it should work.

You might look in /etc/ld.so.conf to see if /usr/local/lib is there.
SDL uses the dlopen API to dynamically load the library, and that 
should use the LD_LIBRARY_PATH... unless the binary is set-uid root,
in which case it will only use the built-in and system library paths.

See ya!
	-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software
--
Author of Simple DirectMedia Layer -
	http://www.devolution.com/~slouken/SDL/
--



More information about the SDL mailing list