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.
Download (HTTP): http://www.libsdl.org/release/SDL-1.2.11.tar.gz
Download MD5 sum: 418b42956b7cd103bfab1b9077ccc149
Download size: 2.7 MB
Estimated disk space required: 23 MB
Estimated build time: 0.8 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/sdl
If your X Window System is installed into any prefix other than /usr/X11R6, execute the following command, replacing <PREFIX> with the installation prefix of the X Window System:
sed -i 's:/usr/X11R6:<PREFIX>:' configure
Install SDL by running the following commands:
./configure --prefix=/usr && make
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
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 && make
You'll need to manually run all the test programs.
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/ld.so.conf 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.
Last updated on 2007-01-15 18:08:14 -0600