Introduction to SDL

The Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multimedia software, such as games and emulators.

Package Information

SDL Dependencies


ALSA-1.0.13, EsounD-0.2.37, aRts-1.5.9, NAS-1.9, NASM-0.98.39, X Window System, AAlib-1.4rc5, DirectFB, SVGAlib, Pth-2.0.7, and PicoGUI

User Notes:

Installation of SDL

This package (unfortunately) expects the X Window system to be installed in the /usr/X11R6 directory. If you're using a recent version of Xorg and it is installed in any other location, ensure you have followed the instructions in the Creating an X11R6 Compatibility Symlink section.

Install SDL by running the following commands:

./configure --prefix=/usr &&

Now, as the root user:

make install &&
install -v -m755 -d /usr/share/doc/SDL-1.2.11/html &&
install -v -m644 docs/html/*.html /usr/share/doc/SDL-1.2.11/html

Testing SDL

It is advisable to test the installation of SDL using the included test programs. It is not required to install any of the resulting binaries to validate the installation. Issue the following commands to build the test programs:

cd test &&
./configure &&

You'll need to manually run all the test programs.

Configuring SDL

Configuration Information

As with most libraries, there is no configuration to do, save that the library directory, i.e., /opt/lib or /usr/local/lib should appear in /etc/ so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run while logged in as root.


Installed Program: sdl-config
Installed Libraries: libSDL*.{so,a}
Installed Directories: /usr/include/SDL and /usr/share/doc/SDL-1.2.11

Short Descriptions


determines the compile and linker flags that should be used to compile and link programs that use libSDL.


libraries provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D frame buffer across multiple platforms.

Last updated on 2007-08-15 18:06:57 -0500