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.
This package is known to build and work properly using an LFS-7.0 platform.
Download (HTTP): http://www.libsdl.org/release/SDL-1.2.14.tar.gz
Download MD5 sum: e52086d1b508fa0b76c52ee30b55bec4
Download size: 4.0 MB
Estimated disk space required: 37 MB
Estimated build time: 0.6 SBU
ALSA-1.0.24.1, EsounD-0.2.41, PulseAudio-0.9.23 aRts-1.5.10, NASM-2.09.10, libusb-1.0.8, X Window System, AAlib-1.4rc5, Pth-2.0.7, DirectFB, GGI, SVGAlib-1.9.5 (patched), libcaca, and PicoGUI
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/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 && make
Now, as the root
user:
make install && install -v -m755 -d /usr/share/doc/SDL-1.2.14/html && install -v -m644 docs/html/*.html \ /usr/share/doc/SDL-1.2.14/html
If you wish 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 (they are listed
in the README
file in this
directory). Many of them will need to be manually killed, and
you'll need to turn your speakers on with the volume at a suitable
level.
--disable-static
: prevent
static libraries being built and installed.
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 2011-12-29 05:13:05 +0000