[576a230] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[48b7295] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[86698d8] | 6 |
|
---|
[68ad918] | 7 | <!ENTITY sdl-download-http "http://www.libsdl.org/release/SDL-&sdl-version;.tar.gz">
|
---|
| 8 | <!ENTITY sdl-download-ftp " ">
|
---|
[52b1b8c] | 9 | <!ENTITY sdl-md5sum "9d96df8417572a2afb781a7c4c811a85">
|
---|
| 10 | <!ENTITY sdl-size "3.8 MB">
|
---|
| 11 | <!ENTITY sdl-buildsize "40 MB">
|
---|
[10ee44ef] | 12 | <!ENTITY sdl-time "0.6 SBU">
|
---|
[48b7295] | 13 | ]>
|
---|
[4a21942] | 14 |
|
---|
[68ad918] | 15 | <sect1 id="sdl" xreflabel="SDL-&sdl-version;">
|
---|
[576a230] | 16 | <?dbhtml filename="sdl.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>SDL-&sdl-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="sdl">
|
---|
| 26 | <primary sortas="a-SDL">SDL</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to SDL</title>
|
---|
| 31 |
|
---|
[d7ecaa6] | 32 | <para>The Simple DirectMedia Layer (<application>SDL</application>
|
---|
[50b692d] | 33 | for short) is a cross-platform library designed to make it easy to write
|
---|
[576a230] | 34 | multimedia software, such as games and emulators.</para>
|
---|
| 35 |
|
---|
[b3f038c6] | 36 | &lfs79_checked;
|
---|
[98d5a95] | 37 |
|
---|
[576a230] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&sdl-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&sdl-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &sdl-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &sdl-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &sdl-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &sdl-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
[93d50f5] | 60 | <bridgehead renderas="sect3">SDL Dependencies</bridgehead>
|
---|
[576a230] | 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e2e42c7] | 63 | <para role="optional">
|
---|
[59a6b63] | 64 | <xref linkend="aalib"/>,
|
---|
[e2e42c7] | 65 | <xref linkend="alsa"/>,
|
---|
[8a33d8cd] | 66 | <xref linkend="glu"/>,
|
---|
[59a6b63] | 67 | <xref linkend="nasm"/>,
|
---|
| 68 | <xref linkend="pulseaudio"/>,
|
---|
[e2e42c7] | 69 | <xref linkend="pth"/>,
|
---|
[59a6b63] | 70 | <xref linkend="x-window-system"/>,
|
---|
[077d95b] | 71 | <ulink url="http://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
|
---|
[59a6b63] | 72 | <ulink url="http://ibiblio.org/ggicore/">GGI</ulink>,
|
---|
| 73 | <ulink url="http://caca.zoy.org/wiki/libcaca">libcaca</ulink>,
|
---|
| 74 | <ulink url="http://picogui.org/">PicoGUI</ulink>, and
|
---|
| 75 | <ulink url="http://arava.co.il/matan/svgalib/">SVGAlib</ulink>
|
---|
[e2e42c7] | 76 | </para>
|
---|
[576a230] | 77 |
|
---|
[0e2aa08] | 78 | <para condition="html" role="usernotes">User Notes:
|
---|
| 79 | <ulink url="&blfs-wiki;/sdl"/></para>
|
---|
| 80 |
|
---|
[576a230] | 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of SDL</title>
|
---|
| 85 |
|
---|
[50b692d] | 86 | <para>Install <application>SDL</application> by running the
|
---|
[576a230] | 87 | following commands:</para>
|
---|
| 88 |
|
---|
[59a6b63] | 89 | <screen><userinput>sed -e '/_XData32/s:register long:register _Xconst long:' \
|
---|
| 90 | -i src/video/x11/SDL_x11sym.h &&
|
---|
| 91 |
|
---|
| 92 | ./configure --prefix=/usr --disable-static &&
|
---|
[cf67717] | 93 |
|
---|
[576a230] | 94 | make</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 97 |
|
---|
| 98 | <screen role="root"><userinput>make install &&
|
---|
[10ee44ef] | 99 |
|
---|
[932b7e2] | 100 | install -v -m755 -d /usr/share/doc/SDL-&sdl-version;/html &&
|
---|
[98d5a95] | 101 | install -v -m644 docs/html/*.html \
|
---|
[10ee44ef] | 102 | /usr/share/doc/SDL-&sdl-version;/html</userinput></screen>
|
---|
[48b7295] | 103 |
|
---|
[576a230] | 104 | </sect2>
|
---|
[48b7295] | 105 |
|
---|
[4f2f35c6] | 106 | <sect2 role="testing">
|
---|
| 107 | <title>Testing SDL</title>
|
---|
[48b7295] | 108 |
|
---|
[5886225] | 109 | <para>If you wish to, test the installation of
|
---|
[4f2f35c6] | 110 | <application>SDL</application> using the included
|
---|
| 111 | test programs. It is not required to install any of the resulting binaries
|
---|
| 112 | to validate the installation. Issue the following commands to build the
|
---|
| 113 | test programs:</para>
|
---|
[48c17bf2] | 114 |
|
---|
[576a230] | 115 | <screen><userinput>cd test &&
|
---|
[48c17bf2] | 116 | ./configure &&
|
---|
[576a230] | 117 | make</userinput></screen>
|
---|
[48c17bf2] | 118 |
|
---|
[5886225] | 119 | <para>You'll need to manually run all the test programs (they are listed in
|
---|
| 120 | the <filename>README</filename> file in this directory). Many of them will
|
---|
[59a6b63] | 121 | need to be manually killed, and you'll need to turn your speakers on with
|
---|
| 122 | the volume at a suitable level.</para>
|
---|
[5886225] | 123 |
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
| 128 |
|
---|
[59a6b63] | 129 | <para><command>sed -e ...</command>: This command fixes compilation with
|
---|
| 130 | libX11-1.6.0</para>
|
---|
[46efb87] | 131 |
|
---|
[66d82600] | 132 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 133 | href="../../xincludes/static-libraries.xml"/>
|
---|
[576a230] | 134 |
|
---|
[59a6b63] | 135 | <para><option>--disable-alsa-shared</option>: This switch disables
|
---|
| 136 | dynamically loading ALSA shared libraries.</para>
|
---|
| 137 |
|
---|
| 138 | <para><option>--disable-sdl-dlopen</option>: This switch disables using
|
---|
| 139 | dlopen for shared object loading. Loading image backend libraries like
|
---|
| 140 | libpng dynamically on the fly does not work.</para>
|
---|
| 141 |
|
---|
| 142 | <para><option>--disable-x11-shared</option>: This switch disables
|
---|
| 143 | dynamically loading X11 shared libraries.</para>
|
---|
[9eebf97] | 144 |
|
---|
[576a230] | 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | <sect2 role="configuration">
|
---|
| 148 | <title>Configuring SDL</title>
|
---|
| 149 |
|
---|
| 150 | <sect3>
|
---|
| 151 | <title>Configuration Information</title>
|
---|
[48c17bf2] | 152 |
|
---|
[e05cd03f] | 153 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[ebabf24] | 154 | href="../../xincludes/lib-config.xml"/>
|
---|
[48b7295] | 155 |
|
---|
[576a230] | 156 | </sect3>
|
---|
[48b7295] | 157 |
|
---|
[576a230] | 158 | </sect2>
|
---|
[48b7295] | 159 |
|
---|
[576a230] | 160 | <sect2 role="content">
|
---|
| 161 | <title>Contents</title>
|
---|
[48b7295] | 162 |
|
---|
[576a230] | 163 | <segmentedlist>
|
---|
| 164 | <segtitle>Installed Program</segtitle>
|
---|
| 165 | <segtitle>Installed Libraries</segtitle>
|
---|
| 166 | <segtitle>Installed Directories</segtitle>
|
---|
[d7ecaa6] | 167 |
|
---|
[576a230] | 168 | <seglistitem>
|
---|
| 169 | <seg>sdl-config</seg>
|
---|
[66d82600] | 170 | <seg>libSDL.so and libSDLmain.a</seg>
|
---|
[576a230] | 171 | <seg>/usr/include/SDL and /usr/share/doc/SDL-&sdl-version;</seg>
|
---|
| 172 | </seglistitem>
|
---|
| 173 | </segmentedlist>
|
---|
[d7ecaa6] | 174 |
|
---|
[576a230] | 175 | <variablelist>
|
---|
| 176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 177 | <?dbfo list-presentation="list"?>
|
---|
| 178 | <?dbhtml list-presentation="table"?>
|
---|
[d7ecaa6] | 179 |
|
---|
[576a230] | 180 | <varlistentry id="sdl-config">
|
---|
| 181 | <term><command>sdl-config</command></term>
|
---|
| 182 | <listitem>
|
---|
[50b692d] | 183 | <para>determines the compile and linker flags that should be used to
|
---|
| 184 | compile and link programs that use
|
---|
[576a230] | 185 | <filename class='libraryfile'>libSDL</filename>.</para>
|
---|
| 186 | <indexterm zone="sdl sdl-config">
|
---|
| 187 | <primary sortas="b-sdl-config">sdl-config</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
| 192 | <varlistentry id="libsdl">
|
---|
[66d82600] | 193 | <term><filename class='libraryfile'>libSDL.so</filename></term>
|
---|
[576a230] | 194 | <listitem>
|
---|
[10ee44ef] | 195 | <para> library provides low level access to audio, keyboard, mouse,
|
---|
[576a230] | 196 | joystick, 3D hardware via OpenGL, and
|
---|
| 197 | 2D frame buffer across multiple platforms.</para>
|
---|
| 198 | <indexterm zone="sdl libsdl">
|
---|
[66d82600] | 199 | <primary sortas="c-libsdl">libSDL.so</primary>
|
---|
[576a230] | 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
[d7ecaa6] | 203 |
|
---|
[576a230] | 204 | </variablelist>
|
---|
[48b7295] | 205 |
|
---|
[576a230] | 206 | </sect2>
|
---|
[f45b1953] | 207 |
|
---|
| 208 | </sect1>
|
---|