SDL-1.2.15
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.
本パッケージは LFS-10.1 において正しくビルドでき動作することが確認されています。
Package Information
SDL Dependencies
Recommended
Xorg
ライブラリ (if they are not present, the corresponding modules are
not built)
Optional
AAlib-1.4rc5, ALSA-1.2.2, GLU-9.0.1, NASM-2.15.05,
PulseAudio-14.2, Pth-2.0.7, X
ウィンドウシステム, DirectFB,
GGI,
libcaca, PicoGUI, and SVGAlib
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/sdl
Installation of SDL
Install SDL by running the
following commands:
sed -e '/_XData32/s:register long:register _Xconst long:' \
-i src/video/x11/SDL_x11sym.h &&
./configure --prefix=/usr --disable-static &&
make
Now, as the root
user:
make install &&
install -v -m755 -d /usr/share/doc/SDL-1.2.15/html &&
install -v -m644 docs/html/*.html \
/usr/share/doc/SDL-1.2.15/html
Testing SDL
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.
Command Explanations
sed -e ...: This
command fixes compilation with libX11-1.6.0 and later.
--disable-static
:
このスイッチはスタティックライブラリをインストールしないようにします。
--disable-alsa-shared
: This switch
disables dynamically loading ALSA shared libraries.
--disable-sdl-dlopen
: This switch
disables using dlopen for shared object loading. Loading image
backend libraries like libpng dynamically on the fly does not work.
--disable-x11-shared
: This switch
disables dynamically loading X11 shared libraries.
Configuring SDL
Configuration Information
ライブラリのほとんどは、どこにインストールされているかを定める方法がないものです。
したがってインストールされるディレクトリがどこかを捉えておく必要があります。 つまり /etc/ld.so.conf
ファイル内に /opt/lib
とか /usr/local/lib
といったディレクトリを記述する必要が出てきます。
これを行っておかないと ldd
は共有ライブラリを見つけ出すことができません。 上の設定が必要であったなら、それを実施した上で root
ユーザーでログインし /sbin/ldconfig を実行してください。
Contents
Installed Program:
sdl-config
Installed Libraries:
libSDL.so and libSDLmain.a
Installed Directories:
/usr/include/SDL and
/usr/share/doc/SDL-1.2.15
Short Descriptions
sdl-config
|
determines the compile and linker flags that should be
used to compile and link programs that use libSDL
|
libSDL.so
|
contains functions that provide low level access to
audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
and 2D frame buffer across multiple platforms
|
最終更新日: 2021-02-22 08:09:04 +0900