2.7 can not find libIMG/SDL_image

For all the help you need with Armagetron!
Post Reply
cahewson
Posts: 3
Joined: Thu Mar 03, 2005 3:57 am

2.7 can not find libIMG/SDL_image

Post by cahewson »

I have installed SDL-1.2.8.tar.gz and run several of the test programs provided with it on Mandrake 9.1. I'm getting the following from ./configure;

[cahewson@mandrake armagetronad-source-0.2.7.0]$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking target system type... i686-pc-linux
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for exp in -lm... yes
checking for SDL_Init in -lSDL... yes
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lm -L/usr/X11R6/lib
checking for glVertex3f in -lGL... yes
-lGL -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lm -L/usr/X11R6/lib
checking for gluBuild3DMipmaps in -lGLU... yes
checking for main in -lz... yes
checking for main in -lpng... yes
checking for main in -ljpeg... yes
checking for IMG_Load in -lSDL_image... no
configure: error: You need libIMG/SDL_image to compile Armagetron.

[cahewson@mandrake armagetronad-source-0.2.7.0]$ locate SDL_image
/usr/share/doc/libSDL_image1.2-1.2.2
/usr/share/doc/libSDL_image1.2-1.2.2/COPYING
/usr/lib/libSDL_image-1.2.so.0.1.1
/usr/lib/libSDL_image-1.2.so.0
[cahewson@mandrake armagetronad-source-0.2.7.0]$ locate libIMG
[cahewson@mandrake armagetronad-source-0.2.7.0]$

Is libIMG some other requitement from libsdl?

Charles
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Fire up urpmi, do a search for "SDL", and select every package with the string "-devel" in it and try again.

./configure isn't finding the headers, which aren't needed for execution, but are needed for compiling.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

No, I suspect there's something else wrong. The check for the headers comes one step later ( and gives unconstructive advice if it fails ).
cahewson: Try Lucifers advice; if that does not help, please post the config.log ( the last 20 lines or so should be enough ) here. There'll be more detailed error messages there.
cahewson
Posts: 3
Joined: Thu Mar 03, 2005 3:57 am

Post by cahewson »

I also installed SDL_image-1.2.8.tar.gz and that seems to have resolved headers. I have working copy (offline) and will stat to optomize it for my system. Thanks
Post Reply