source: multimedia/libdriv/sdl.xml@ 18a8da63

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 18a8da63 was c0b9aa94, checked in by Thomas Trepl <thomas@…>, 4 years ago

Tag some multimedia libs/drivers

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23577 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY sdl-download-http "http://www.libsdl.org/release/SDL-&sdl-version;.tar.gz">
8 <!ENTITY sdl-download-ftp " ">
9 <!ENTITY sdl-md5sum "9d96df8417572a2afb781a7c4c811a85">
10 <!ENTITY sdl-size "3.8 MB">
11 <!ENTITY sdl-buildsize "40 MB">
12 <!ENTITY sdl-time "0.6 SBU">
13]>
14
15<sect1 id="sdl" xreflabel="SDL-&sdl-version;">
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
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>
37
38 &lfs10_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&sdl-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&sdl-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &sdl-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &sdl-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &sdl-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &sdl-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">SDL Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">
78 <xref linkend="aalib"/>,
79 <xref linkend="alsa"/>,
80 <xref linkend="glu"/>,
81 <xref linkend="nasm"/>,
82 <xref linkend="pulseaudio"/>,
83 <xref linkend="pth"/>,
84 <xref linkend="x-window-system"/>,
85 <ulink url="http://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
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
89 <ulink url="https://www.svgalib.org/">SVGAlib</ulink>
90 </para>
91
92 <para condition="html" role="usernotes">User Notes:
93 <ulink url="&blfs-wiki;/sdl"/></para>
94
95 </sect2>
96
97 <sect2 role="installation">
98 <title>Installation of SDL</title>
99
100 <para>
101 Install <application>SDL</application> by running the
102 following commands:
103 </para>
104
105<screen><userinput>sed -e '/_XData32/s:register long:register _Xconst long:' \
106 -i src/video/x11/SDL_x11sym.h &amp;&amp;
107
108./configure --prefix=/usr --disable-static &amp;&amp;
109
110make</userinput></screen>
111
112 <para>
113 Now, as the <systemitem class="username">root</systemitem> user:
114 </para>
115
116<screen role="root"><userinput>make install &amp;&amp;
117
118install -v -m755 -d /usr/share/doc/SDL-&sdl-version;/html &amp;&amp;
119install -v -m644 docs/html/*.html \
120 /usr/share/doc/SDL-&sdl-version;/html</userinput></screen>
121
122 </sect2>
123
124 <sect2 role="testing">
125 <title>Testing SDL</title>
126
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>
133
134<screen remap="test"><userinput>cd test &amp;&amp;
135./configure &amp;&amp;
136make</userinput></screen>
137
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>
144
145 </sect2>
146
147 <sect2 role="commands">
148 <title>Command Explanations</title>
149
150 <para>
151 <command>sed -e ...</command>: This command fixes compilation with
152 libX11-1.6.0 and later.
153 </para>
154
155 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
156 href="../../xincludes/static-libraries.xml"/>
157
158 <para>
159 <option>--disable-alsa-shared</option>: This switch disables
160 dynamically loading ALSA shared libraries.
161 </para>
162
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>
168
169 <para>
170 <option>--disable-x11-shared</option>: This switch disables
171 dynamically loading X11 shared libraries.
172 </para>
173
174 </sect2>
175
176 <sect2 role="configuration">
177 <title>Configuring SDL</title>
178
179 <sect3>
180 <title>Configuration Information</title>
181
182 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
183 href="../../xincludes/lib-config.xml"/>
184
185 </sect3>
186
187 </sect2>
188
189 <sect2 role="content">
190 <title>Contents</title>
191
192 <segmentedlist>
193 <segtitle>Installed Program</segtitle>
194 <segtitle>Installed Libraries</segtitle>
195 <segtitle>Installed Directories</segtitle>
196
197 <seglistitem>
198 <seg>sdl-config</seg>
199 <seg>libSDL.so and libSDLmain.a</seg>
200 <seg>/usr/include/SDL and /usr/share/doc/SDL-&sdl-version;</seg>
201 </seglistitem>
202 </segmentedlist>
203
204 <variablelist>
205 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
206 <?dbfo list-presentation="list"?>
207 <?dbhtml list-presentation="table"?>
208
209 <varlistentry id="sdl-config">
210 <term><command>sdl-config</command></term>
211 <listitem>
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>
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">
224 <term><filename class='libraryfile'>libSDL.so</filename></term>
225 <listitem>
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>
231 <indexterm zone="sdl libsdl">
232 <primary sortas="c-libsdl">libSDL.so</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 </variablelist>
238
239 </sect2>
240
241</sect1>
Note: See TracBrowser for help on using the repository browser.