Posted: Tue Apr 25, 2006 9:26 am
The thing is if you installed some bits of SDL from your distro and some bits from source, some of the files will end up in /usr/include and some in /usr/local/include. The 'sdl-config' script called by make usually adds the appropriate include directories - but if they are spread all over your system, then all bets are off. You need to either modify the Makefile to add an include dir ( -I/usr/local/lib possibly ) or when building extra SDL libs from source, when you run configure, do it as:
./configure --prefix=/top/level/path/to/wherever/SDL/already/is
for example, if you install SDL from your distro but your distro doesn't have a development library for SDL_gfx (for example), your existing SDL installation is likely to be in /usr/lib, /usr/include etc. So:
./configure --prefix=/usr
then make, followed by make install as root.
However, I'd be surprised if Debian doesn't have everything you need pre-packaged - if it does, just use the pre-packaged things.
You may also want to check that your 3D hardware is supported. If you have an nvidia card then you're stuffed - nvidia only release drivers that work on x86. If you have ATi of the right vintage, these have open source drivers and therefore are supported on all platforms. New ATi cards are again only supported under x86 by closed source drivers.
This won't of course change the build (the nightly builds for example are done on a headless machine with no hardware 3D or even X11 installed), but if your 3D hardware isn't supported, the software renderer is appalingly slow (think 4fps!)
./configure --prefix=/top/level/path/to/wherever/SDL/already/is
for example, if you install SDL from your distro but your distro doesn't have a development library for SDL_gfx (for example), your existing SDL installation is likely to be in /usr/lib, /usr/include etc. So:
./configure --prefix=/usr
then make, followed by make install as root.
However, I'd be surprised if Debian doesn't have everything you need pre-packaged - if it does, just use the pre-packaged things.
You may also want to check that your 3D hardware is supported. If you have an nvidia card then you're stuffed - nvidia only release drivers that work on x86. If you have ATi of the right vintage, these have open source drivers and therefore are supported on all platforms. New ATi cards are again only supported under x86 by closed source drivers.
This won't of course change the build (the nightly builds for example are done on a headless machine with no hardware 3D or even X11 installed), but if your 3D hardware isn't supported, the software renderer is appalingly slow (think 4fps!)