source: x/lib/mesalib.xml@ 804ecc5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 804ecc5 was abfff1a5, checked in by DJ Lucas <dj@…>, 16 years ago

Commented out remaining text related to XFree86.

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

  • Property mode set to 100644
File size: 10.6 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 mesalib-download-http "http://downloads.sourceforge.net/mesa3d/MesaLib-&mesalib-version;.tar.bz2">
8 <!ENTITY mesalib-download-ftp " ">
9 <!ENTITY mesalib-md5sum "e4d894181f1859651658b3704633e10d">
10 <!ENTITY mesalib-size "3.1 MB">
11 <!ENTITY mesalib-buildsize "172 MB">
12 <!ENTITY mesalib-time "1.6 SBU">
13
14 <!ENTITY mesademos-download-http "http://downloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2">
15 <!ENTITY mesademos-md5sum "e870efe98d3a50be01ab211b9b2e25d9">
16 <!ENTITY mesademos-size "1.3 MB">
17
18 <!ENTITY mesaglut-download-http "http://downloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2">
19 <!ENTITY mesaglut-md5sum "e84edbb11c69c8e408dfadd2ed08e95b">
20 <!ENTITY mesaglut-size "306 KB">
21
22]>
23
24<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
25 <?dbhtml filename="mesalib.html"?>
26
27 <sect1info>
28 <othername>$LastChangedBy$</othername>
29 <date>$Date$</date>
30 </sect1info>
31
32 <title>MesaLib-&mesalib-version;</title>
33
34 <indexterm zone="mesalib">
35 <primary sortas="a-MesaLib">MesaLib</primary>
36 </indexterm>
37
38 <sect2 role="package">
39 <title>Introduction to MesaLib</title>
40
41 <para><application>Mesa</application> is an OpenGL compatible 3-D graphics
42 library.</para>
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>Download (HTTP): <ulink url="&mesalib-download-http;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download (FTP): <ulink url="&mesalib-download-ftp;"/></para>
51 </listitem>
52 <listitem>
53 <para>Download MD5 sum: &mesalib-md5sum;</para>
54 </listitem>
55 <listitem>
56 <para>Download size (including recommended download):
57 &mesalib-size;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated disk space required (including recommended download):
61 &mesalib-buildsize;</para>
62 </listitem>
63 <listitem>
64 <para>Estimated build time (including recommended download):
65 &mesalib-time;</para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
70
71 <itemizedlist spacing="compact">
72 <title>Recommended demonstration and diagnostic utilities for
73 verifying OpenGL operation</title>
74 <listitem>
75 <para>Download (HTTP): <ulink url="&mesademos-download-http;"/></para>
76 </listitem>
77 <listitem>
78 <para>Download MD5 sum: &mesademos-md5sum;</para>
79 </listitem>
80 <listitem>
81 <para>Download size: &mesademos-size;</para>
82 </listitem>
83 </itemizedlist>
84
85 <itemizedlist spacing="compact">
86 <title>Optional GLUT library (see also <xref linkend="freeglut"/>)</title>
87 <listitem>
88 <para>Download (HTTP): <ulink url="&mesaglut-download-http;"/></para>
89 </listitem>
90 <listitem>
91 <para>Download MD5 sum: &mesaglut-md5sum;</para>
92 </listitem>
93 <listitem>
94 <para>Download size: &mesaglut-size;</para>
95 </listitem>
96 </itemizedlist>
97
98 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
99
100 <bridgehead renderas="sect4">Required</bridgehead>
101 <para role="required"><xref linkend="xorg7-lib"/>,
102 <xref linkend="xorg7-util"/>,
103 <xref linkend="libdrm"/>, and
104 <xref linkend="expat"/></para>
105
106<!-- XFREE86
107 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
108 href="../../xincludes/xorg7-only.xml"/>
109
110 <note>
111 <para>It is not recommended to build a newer version of
112 <application>Mesa</application> with <xref linkend="xfree86"/>.</para>
113 </note>
114XFREE86 -->
115
116 <para condition="html" role="usernotes">User Notes:
117 <ulink url="&blfs-wiki;/mesalib"/></para>
118
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of MesaLib</title>
123
124 <para>Extract all three tarballs from the same top-level directory as they
125 all will extract to the
126 <filename class="directory">Mesa-&mesalib-version;</filename>
127 directory.</para>
128
129<!-- XFREE86
130 Commenting this out as there is already mention of this
131 <caution>
132 <para>You should ensure that the <envar>XORG_PREFIX</envar> variable in
133 the commands below is the same as the one used in the installation prefix
134 of <application>Xorg</application>.</para>
135 </caution>
136XFREE86 -->
137
138 <para>Install <application>MesaLib</application> by running the following
139 command:</para>
140
141<screen><userinput>make linux-dri-x86 OPT_FLAGS="-O2 -fno-strict-aliasing" \
142 DRI_DRIVER_INSTALL_DIR=${XORG_PREFIX}/lib/X11/modules/dri \
143 X11_INCLUDES=-I${XORG_PREFIX}/include \
144 EXTRA_LIB_PATH=-L${XORG_PREFIX}/lib</userinput></screen>
145
146 <para>If you downloaded and extracted the Demos package, build the programs
147 with the following commands:</para>
148
149<screen><userinput>sed -i 's@-l$(GLUT_LIB)@@g' configs/default &amp;&amp;
150make -C progs/xdemos PROGS='glxinfo glxgears'</userinput></screen>
151
152 <para>This package does not come with a test suite.</para>
153
154 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
155
156<screen role="root"><userinput>make install INSTALL_DIR=${XORG_PREFIX} \
157 DRI_DRIVER_INSTALL_DIR=${XORG_PREFIX}/lib/X11/modules/dri &amp;&amp;
158install -dv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &amp;&amp;
159install -v -m644 docs/* ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen>
160
161 <para>If you built the demo programs, install them using the following
162 command as the <systemitem class="username">root</systemitem> user:</para>
163
164<screen role="root"><userinput>install -v -m755 progs/xdemos/glx{info,gears} ${XORG_PREFIX}/bin</userinput></screen>
165
166 <para>Finally, if installing to any prefix other than
167 <filename class="directory">/usr</filename>, you should create symlinks
168 to the GL headers in <filename class="directory">/usr/include</filename>.
169 Execute the following command as the
170 <systemitem class="username">root</systemitem> user:</para>
171
172<screen role="root"><userinput>ln -s -v ${XORG_PREFIX}/include/GL /usr/include</userinput></screen>
173
174 <tip>
175 <para>Do not remove the Mesa source tree yet, it will be required to
176 build the <xref linkend="xorg7-server"/>.</para>
177 </tip>
178
179 </sect2>
180
181 <sect2 role="commands">
182 <title>Command Explanations</title>
183
184 <para><command>make ... linux-dri-x86</command>: The
185 <option>linux-dri-x86</option> target is specified to use a
186 few other helpful flags in addition to the defaults. See the other
187 targets in the <filename class="directory">configs</filename> directory
188 if your architecture is not x86.</para>
189
190 <para><envar>OPT_FLAGS="-O2 -fno-strict-aliasing"</envar>: A bug where
191 OpenGL applications are shifted to the left by 50% can be worked around
192 by adding <option>-fno-strict-aliasing</option> to the compiler flags.</para>
193
194 <para><envar>DRI_DRIVER_INSTALL_DIR=${XORG_PREFIX}/lib/X11/modules/dri</envar>:
195 This setting specifies the location that the DRI modules will be installed
196 to. This path is also built into <filename
197 class="libraryfile">libGL.so</filename>.</para>
198
199 <para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
200 Disables linking against the GLUT libraries for the demo programs, omit
201 this command if you downloaded and extracted the GLUT tarball.</para>
202
203 <para><command>make ... PROGS='glxinfo glxgears'</command>: Only builds
204 the <command>glxinfo</command> and <command>glxgears</command>
205 programs.</para>
206
207 </sect2>
208
209 <sect2 role="content">
210 <title>Contents</title>
211
212 <segmentedlist>
213 <segtitle>Installed Programs (optional)</segtitle>
214 <segtitle>Installed Libraries</segtitle>
215 <segtitle>Installed Directories</segtitle>
216
217 <seglistitem>
218 <seg>glxgears and glxinfo</seg>
219 <seg>libGL.so, libGLU.so, libGLw.so, *_dri.so and
220 optionally, libglut.so</seg>
221 <seg><envar>$XORG_PREFIX</envar>/lib/modules/dri and
222 <envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;</seg>
223 </seglistitem>
224 </segmentedlist>
225
226 <variablelist>
227 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
228 <?dbfo list-presentation="list"?>
229 <?dbhtml list-presentation="table"?>
230
231 <varlistentry id="glxgears">
232 <term><filename>glxgears</filename></term>
233 <listitem>
234 <para>is a GL demo useful for troubleshooting graphics
235 problems.</para>
236 <indexterm zone="mesalib glxgears">
237 <primary sortas="b-glxgears">glxgears</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="glxinfo">
243 <term><filename>glxinfo</filename></term>
244 <listitem>
245 <para>is a diagnostic program that displays information about the
246 graphics hardware and installed GL libraries.</para>
247 <indexterm zone="mesalib glxinfo">
248 <primary sortas="b-glxinfo">glxinfo</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 <varlistentry id="libGL">
254 <term><filename class='libraryfile'>libGL.so</filename></term>
255 <listitem>
256 <para>is the main OpenGL library.</para>
257 <indexterm zone="mesalib libGL">
258 <primary sortas="c-libGL">libGL.so</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="libGLU">
264 <term><filename class='libraryfile'>libGLU.so</filename></term>
265 <listitem>
266 <para>is the OpenGL Utility library.</para>
267 <indexterm zone="mesalib libGLU">
268 <primary sortas="c-libGLU">libGLU.so</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="libGLw">
274 <term><filename class='libraryfile'>libGLw.so</filename></term>
275 <listitem>
276 <para>is the Xt/Motif OpenGL drawing area widget library.</para>
277 <indexterm zone="mesalib libGLw">
278 <primary sortas="c-libGLw">libGLw.so</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="libglut-mesa">
284 <term><filename class='libraryfile'>libglut.so</filename></term>
285 <listitem>
286 <para>is the OpenGL Utility Toolkit (GLUT) library.</para>
287 <indexterm zone="mesalib libglut-mesa">
288 <primary sortas="c-libglut">libglut.so</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 </variablelist>
294
295 </sect2>
296
297</sect1>
Note: See TracBrowser for help on using the repository browser.