[SDL] Linking troubles on Linux with X

Ryan C. Gordon icculus at icculus.org
Tue Oct 17 02:29:19 PDT 2006


> /UNIONFS/usr/local/sh4-linux-dev/tools-0010/bin/../lib/gcc/sh4-linux/3.4.4/../../../../sh4-linux/bin/ld:
> warning: libXext..6, needed by
> /usr/local/sh4-linux-dev/tools-0010/sh4-linux/lib/libSDL.so, not found

Looks like SDL botched the discovery of your X11 libraries (it's looking 
for "libXext..6" instead of "libXext.so.6"), which is a problem in 
building SDL and not a problem in building your program.

If you built your own SDL, you might get lucky and using 
--enable-x11-shared in the configure script may work around the bug 
(telling SDL to dlopen() the X11 libraries at runtime instead of link 
against them directly). If you don't need X11, you can build with 
--disable-video-x11, which will definitely fix the problem.

If you didn't build your own SDL, please tell whomever did that they 
broke it.  :)

If you get totally desperate, make a symbolic link from libXext.so.6 to 
libXext..6, which will probably make things work, but it's sort of a 
nasty solution.

--ryan.





More information about the SDL mailing list