# SDL Version 1.2.0 not found

**URL:** <https://discourse.libsdl.org/t/sdl-version-1-2-0-not-found/5058>\
**Category:** SDL Development\
**Created:** [September 13, 2001, 6:05pm UTC](https://discourse.libsdl.org/t/sdl-version-1-2-0-not-found/5058 "2001-09-13T18:05:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex1](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@Alex1](https://discourse.libsdl.org/u/Alex1)\
**Post date:** [September 13, 2001, 6:05pm UTC](https://discourse.libsdl.org/t/sdl-version-1-2-0-not-found/5058/1 "2001-09-13T18:05:01Z")

</div>

Hello,  
When I try to compile the test progrem in SDL-1.2.2/test/ I have this  
message at the end of the failed configure :

checking for SDL - version \>= 1.2.0… ./configure: /usr/local/bin: is a directory  
./configure: /usr/local/bin: is a directory  
./configure: /usr/local/bin: is a directory  
./configure: /usr/local/bin: is a directory  
./configure: /usr/local/bin: is a directory  
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  
configure: error: \*\*\* SDL version 1.2.0 not found!

I have read the FAQ and the thread of ‘Mon Sep 3 2001’ which is called  
’Cant compile SDL programs, SDL version 1.2.0 not found’ but it didn’t solve.

I run Slackware 7.1 with kernel 2.4.9

bash-2.04$ which sdl-config  
/usr/local/bin/sdl-config

bash-2.04$ sdl-config --version  
1.2.2

bash-2.04$ locate libSDL  
/home/al/SDL-1.2.2/src/.libs/libSDL-1.2.so.0  
/home/al/SDL-1.2.2/src/.libs/libSDL-1.2.so.0.0.2  
/home/al/SDL-1.2.2/src/.libs/libSDL.a  
/home/al/SDL-1.2.2/src/.libs/libSDL.la  
/home/al/SDL-1.2.2/src/.libs/libSDL.lai  
/home/al/SDL-1.2.2/src/.libs/libSDL.so  
/home/al/SDL-1.2.2/src/libSDL.la  
/home/al/SDL-1.2.2/src/main/libSDLmain.a  
/usr/local/lib/libSDL-1.2.so.0  
/usr/local/lib/libSDL-1.2.so.0.0.2  
/usr/local/lib/libSDL.a  
/usr/local/lib/libSDL.la  
/usr/local/lib/libSDL.so  
/usr/local/lib/libSDLmain.a

bash-2.04# echo $PATH  
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin/:/usr/local/include/SDL/

bash-2.04# cat /etc/ld.so.conf  
/usr/local/kde/lib  
/usr/local/lib/xmps/renderers/video  
/usr/local/lib/mysql  
/usr/local/lib  
/usr/X11R6/lib  
/usr/i386-slackware-linux/lib  
/usr/i386-slackware-linux-gnulibc1/lib  
/usr/i386-slackware-linux-gnuaout/lib  
/usr/openwin/lib

Extracted from the config.log :  
[…]  
configure: failed program was:  
#line 1305 “configure”  
#include “confdefs.h”  
#include \<X11/Intrinsic.h\>  
configure:1386: gcc -o conftest -g -O2 conftest.c -lXt 1\>&5  
/usr/i386-slackware-linux/bin/ld: cannot open -lXt: No such file or directory  
collect2: ld returned 1 exit status  
configure: failed program was:  
#line 1379 “configure”  
#include “confdefs.h”  
[…]  
configure:2293: gcc -o conftest -g -O2 -I/usr/X11R6/include conftest.c 1\>&5  
configure:2281: SDL.h: No such file or directory  
configure: failed program was:  
#line 2278 “configure”  
#include “confdefs.h”

#include \<stdio.h\>  
#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; }

```

Any help wil be very appreciated (and sorry if my english is not perfect).

Alex,  
Toulouse, France

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [September 23, 2001, 10:05am UTC](https://discourse.libsdl.org/t/sdl-version-1-2-0-not-found/5058/2 "2001-09-23T10:05:01Z")

</div>

> Extracted from the config.log :  
> […]  
> configure:2293: gcc -o conftest -g -O2 -I/usr/X11R6/include conftest.c 1\>&5  
> configure:2281: SDL.h: No such file or directory

What’s the output of:  
sdl-config --cflags

See ya,  
-Sam Lantinga, Software Engineer, Blizzard Entertainment
