Configure: error: SDL >= 1.2.0 is required ... but I do have it

Greetings all.

I have tried to compile a program which requires SDL -
version >= 1.2.0 (ZSnes 1.36, actually), and I’m
getting an error about SDL not found. However, I’m
positive it’s installed (I installed it from source
myself). I will send you the technical info:

Stuff from ./configure script:
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0… 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 >= 1.2.0 is required

Commands I issued to check everything’s ok:

which sdl-config

/usr/local/bin/sdl-config

sdl-config --version

1.2.7

locate libSDL

/usr/local/lib/libSDLmain.a
/usr/local/lib/libSDL-1.2.so.0.7.0
/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL.so
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.a
/root/downloads/SDL-1.2.7/src/main/libSDLmain.a
/root/downloads/SDL-1.2.7/src/.libs/libSDL-1.2.so.0.7.0
/root/downloads/SDL-1.2.7/src/.libs/libSDL-1.2.so.0
/root/downloads/SDL-1.2.7/src/.libs/libSDL.so
/root/downloads/SDL-1.2.7/src/.libs/libSDL.lai
/root/downloads/SDL-1.2.7/src/.libs/libSDL.a
/root/downloads/SDL-1.2.7/src/.libs/libSDL.la
/root/downloads/SDL-1.2.7/src/libSDL.la
–>The stuff in /root/downloads is the source code I
downloaded from http://www.libsdl.org/.<--

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; }

cat /etc/ld.so.conf

/usr/local/lib
/usr/X11R6/lib
/usr/i486-slackware-linux/lib
/opt/kde/lib
–> Yes, I’ve run ldconfig.<–

echo $PATH

/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin

Also, I’m positive there are no other versions of SDL
in my machine, and that there is no dumb
"config.cache" file lying around. I’m running
Slackware 9.1, in an Athlon XP machine. I’ve searched
the internet, and found several other people who are
having the same problem, but so far I’ve found no
solution. Hope you people can help me.

Thanks in advance.
Thiago______________________________________________________________________

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html

I just tried ./configure with ZSnes 1.36 and SDL 1.2.6. No problem for
me.

Check config.log more. tail shows only the last 10 lines or so, but the
real error appears usually earlier in config.log.

FYI, the SDL test script checks not only (or doesn’t?) for the sdl-config --version but it also tries to compile a simple SDL program. If your
system can’t compile a simple SDL program at all, then that could be the
problem. Try compiling a simple SDL program off of the SDL website
(www.libsdl.org).

-MarkOn Mon, 15 Mar 2004, [iso-8859-1] Thiago Tomei wrote:

Greetings all.

I have tried to compile a program which requires SDL -
version >= 1.2.0 (ZSnes 1.36, actually), and I’m
getting an error about SDL not found. However, I’m
positive it’s installed (I installed it from source
myself). I will send you the technical info:

Stuff from ./configure script:
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0… 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 >= 1.2.0 is required

Commands I issued to check everything’s ok:

which sdl-config

/usr/local/bin/sdl-config

sdl-config --version

1.2.7

locate libSDL

/usr/local/lib/libSDLmain.a
/usr/local/lib/libSDL-1.2.so.0.7.0
/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL.so
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.a
/root/downloads/SDL-1.2.7/src/main/libSDLmain.a
/root/downloads/SDL-1.2.7/src/.libs/libSDL-1.2.so.0.7.0
/root/downloads/SDL-1.2.7/src/.libs/libSDL-1.2.so.0
/root/downloads/SDL-1.2.7/src/.libs/libSDL.so
/root/downloads/SDL-1.2.7/src/.libs/libSDL.lai
/root/downloads/SDL-1.2.7/src/.libs/libSDL.a
/root/downloads/SDL-1.2.7/src/.libs/libSDL.la
/root/downloads/SDL-1.2.7/src/libSDL.la
–>The stuff in /root/downloads is the source code I
downloaded from http://www.libsdl.org/.<--

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; }

cat /etc/ld.so.conf

/usr/local/lib
/usr/X11R6/lib
/usr/i486-slackware-linux/lib
/opt/kde/lib
–> Yes, I’ve run ldconfig.<–

echo $PATH

/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin

Also, I’m positive there are no other versions of SDL
in my machine, and that there is no dumb
"config.cache" file lying around. I’m running
Slackware 9.1, in an Athlon XP machine. I’ve searched
the internet, and found several other people who are
having the same problem, but so far I’ve found no
solution. Hope you people can help me.

Thanks in advance.
Thiago


Mark K. Kim
AIM: markus kimius
Homepage: http://www.cbreak.org/
Xanga: http://www.xanga.com/vindaci
Friendster: http://www.friendster.com/user.jsp?id=13046
PGP key fingerprint: 7324 BACA 53AD E504 A76E 5167 6822 94F0 F298 5DCE
PGP key available on the homepage

Greetings all.

I have tried to compile a program which requires SDL -
version >= 1.2.0 (ZSnes 1.36, actually), and I’m
getting an error about SDL not found. However, I’m
positive it’s installed (I installed it from source
myself). I will send you the technical info:

Stuff from ./configure script:
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0… 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 >= 1.2.0 is required

I had this problem with a library. The reason was because it was asking for <SDL/SDL.h>. You can either replace all those lines with “SDL.h” or direct your includes to look at /usr/include as well as /usr/include/SDL . That did it for me.

-TomT64