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