Ubuntu 11.04 packages for SDL configure script

(I’m talking about SDL 1.3 and Ubuntu 11.04, but most of this applies to
1.2 and other distros. YMMV.)

If you have a Ubuntu 11.04 system and want to build an SDL with
everything (but still only links against glibc…it’ll dynamically
load dependencies at runtime and make decisions based on what’s
available on the end-user’s system), here are the magic command lines.

I’m posting this since I have to figure this out every time I reinstall

Get all the dependencies…

sudo apt-get install build-essential mercurial make autoconf automake
libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev
libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev
libxss-dev libgl1-mesa-dev libesd0-dev

Do a clone of the repo with Mercurial…

hg clone http://hg.libsdl.org/SDL

build it.

cd SDL
sudo make install


  • This includes all the audio targets except arts, because Ubuntu pulled
    the artsc0-dev package.
  • DirectFB isn’t included because the configure script (currently) fails
    to find it, and thus makes it a hard requirement. If you only want this
    SDL installed on your own machine, you can do “sudo apt-get install
    libdirectfb-dev” to include DirectFB support. Don’t forget to re-run
    "./configure" if you added this later.