Ubuntu 13.04 packages for SDL 2.0 configure script

(this is an updated cut-and-paste of an email I sent for SDL 1.3 on
Ubuntu 11.04. Something similar to this might work for your non-Ubuntu

Package dependencies have changed slightly from before.

If you have a Ubuntu 13.04 system and want to build an SDL2 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 cmake 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 libdbus-1-dev
libudev-dev libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev

Do a clone of the repo with Mercurial…

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

build it.

cd SDL
mkdir buildbot
cd buildbot
sudo make install


  • This includes all the audio targets except arts, because Ubuntu pulled
    the artsc0-dev package, but in theory SDL still supports it.
  • DirectFB isn’t included because the configure script (currently) fails
    to find it at all. You can do “sudo apt-get install libdirectfb-dev” and
    fix the configure script to include DirectFB support. Send patches. :slight_smile: