Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Linux - Games This forum is for all discussion relating to gaming in Linux.


  Search this Thread
Old 12-30-2006, 06:59 PM   #1
Registered: Feb 2006
Location: Chi-town
Distribution: Debian Sid Amd64
Posts: 108

Rep: Reputation: 15
Question Problem compiling Sauerbraten on Debian amd64

I downloaded sauerbraten_2006_09_12_water_edition_linux.tar.gz and attempted to compile a new binary by cd-ing to 'src' and typing 'make'.

The following is what I received:
Alcazar:/home/matthew/Games/sauerbraten/src# make
make -C enet/ all
make[1]: Entering directory `/home/matthew/Games/sauerbraten/src/enet'
Making all in include
make[2]: Entering directory `/home/matthew/Games/sauerbraten/src/enet/include'
Making all in enet
make[3]: Entering directory `/home/matthew/Games/sauerbraten/src/enet/include/enet'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/matthew/Games/sauerbraten/src/enet/include/enet'
make[3]: Entering directory `/home/matthew/Games/sauerbraten/src/enet/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/matthew/Games/sauerbraten/src/enet/include'
make[2]: Leaving directory `/home/matthew/Games/sauerbraten/src/enet/include'
make[2]: Entering directory `/home/matthew/Games/sauerbraten/src/enet'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/matthew/Games/sauerbraten/src/enet'
make[1]: Leaving directory `/home/matthew/Games/sauerbraten/src/enet'
g++ -Wall -fsigned-char -O3 -fomit-frame-pointer -Ienet/include -I. -Ishared -Iengine -Ifpsgame `sdl-config --cflags` -c -o shared/tools.o shared/tools.cpp
In file included from shared/tools.cpp:3:
shared/pch.h:31:23: error: SDL_image.h: No such file or directory
shared/tools.cpp: In function ‘char* path(char*)’:
shared/tools.cpp:10: warning: suggest parentheses around assignment used as truth value
shared/tools.cpp: In function ‘char* loadfile(char*, int*)’:
shared/tools.cpp:37: warning: comparison between signed and unsigned integer expressions
make: *** [shared/tools.o] Error 1
I can see that it says 'SDL_image.h: No such file or directy'.
What does that actually mean? Is that the only problem there?
And, would someone be kind of enough to point me towards a solution? The Sauerbraten wiki and docs have not been very helpful.
Old 12-30-2006, 10:09 PM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You need to install the SDL development packages using apt-get.
Old 12-31-2006, 12:35 AM   #3
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Read the documentation that comes with the package. Every now and then it has a nugget of wisdom.
Unix users need to make sure to have the development version of all libs installed (OpenGL, SDL, SDL_Mixer, SDL_Image, zlib, libpng). The included
makefiles can be used to build.
Old 02-13-2007, 02:07 PM   #4
LQ Newbie
Registered: May 2005
Location: Lewisburg, WV
Distribution: Debian Centos
Posts: 8
Blog Entries: 17

Rep: Reputation: 0
I just had a very similar problem with OpenSuSE 10.2 AMD64. Installed all of the SDL devel libraries, but still could not find SDL_image.h or SDL_mixer.h. These are apparently not included with the DVD for some reason. I was able to download the source libraries from and ./configure, make, and make install worked fine with these, but Sauerbratten still wouldn't find the header files.

So I added the base path for these (/usr/local/lib) into /etc/ as requested by these files when I installed them. Still no luck. I poked around and discovered that the header files are not in /usr/local/lib/ but rather in /usr/local/include/SDL/

So I cd'd into the Sauerbratten src directory and created symbolic links to the files:
ln -s /usr/local/include/SDL/SDL_image.h SDL_image.h
ln -s /usr/local/include/SDL/SDL_mixer.h SDL_mixer.h
make install

Then it worked like a champ, and unlike with most Linux build from source type installations, it only took a couple of hours trying to track down the little problems. I'm not sure about the header files above, though -- where should they be to work properly in future builds?

Last edited by drask; 02-14-2007 at 05:35 PM.
Old 02-15-2007, 07:09 PM   #5
LQ Newbie
Registered: Feb 2007
Distribution: SUSE 10.2 AMD64
Posts: 5

Rep: Reputation: 0
drask, thanks so much for your detailed instructions. I also run SUSE 10.2 and it did the trick for my Sauerbraten install.
It is strange where SDL drops those two files.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cube / sauerbraten jjoe64 Linux - Games 1 09-23-2006 11:09 AM
Debian amd64 sid X server problem Malibyte Debian 6 04-29-2006 12:24 AM
I think there is a problem with the current AMD64 Debian Installation rickh Debian 1 03-27-2006 07:14 PM
rt2500 Wireless Lan Card Debian Sid AMD64 -- alias problem rickh Debian 3 01-27-2006 10:40 PM
Problem with installing Debian Linux on a AMD64 dual core machine brianq Linux - Software 1 10-07-2005 08:34 PM > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 10:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration