I do as INSTALL file describes :
configure ; make ; make install - everything seems to be ok - no errors.
but when I try to compile “test” it puts errors :
[cut]
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.3… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log
for the
*** exact error that occured. This usually means SDL was incorrectly
installed
*** or that you have moved SDL since it was installed. In the latter case,
you
*** may want to edit the sdl-config script: /usr/local/bin/sdl-config
configure: error: *** SDL version 1.2.3 not found!
According to FAQ:
Q: I installed SDL from source but can’t build or run SDL
applications
line:
/usr/local/lib
cat /etc/ld.so.conf
/usr/local/lib
/usr/X11R6/lib
/usr/i386-slackware-linux/lib
/opt/gnome/lib
As root, run /sbin/ldconfig
/sbin/ldconfig
Make sure /usr/local/bin is in your execution path:
export PATH=$PATH:/usr/local/bin/
Make sure that there aren't any other versions of SDL on your
system, and that you have removed any file named "config.cache"
from the directory of the software that refuses to build.
I also did it.
If all of the above still don’t work, send e-mail to the SDL
mailing list with the output from the following commands run from
the directory of the software that refuses to build:
* which sdl-config
which sdl-config
/usr/local/bin/sdl-config
- sdl-config --version
sdl-config --version
1.2.3
- locate libSDL
locate libSDL
/root/SDL-1.2.3/src/.libs/libSDL-1.2.so.0
/root/SDL-1.2.3/src/.libs/libSDL-1.2.so.0.0.3
/root/SDL-1.2.3/src/.libs/libSDL.a
/root/SDL-1.2.3/src/.libs/libSDL.la
/root/SDL-1.2.3/src/.libs/libSDL.lai
/root/SDL-1.2.3/src/.libs/libSDL.so
/root/SDL-1.2.3/src/libSDL.la
/root/SDL-1.2.3/src/main/libSDLmain.a
/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL-1.2.so.0.0.3
/usr/local/lib/libSDL.a
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.so
/usr/local/lib/libSDLmain.a
- tail config.log
tail config.log
#include “SDL.h”
int main(int argc, char *argv[])
{ return 0; }
#undef main
#define main K_and_R_C_main
int main() {
return 0;
; return 0; }
Where is the problem? - what do I do wrong?
Thanks for help.A: Edit the file /etc/ld.so.conf, and make sure it contains the