source: x/lib/mesalib.xml@ c45d5574

6.2 6.2.0
Last change on this file since c45d5574 was c45d5574, checked in by Randy McMurchy <randy@…>, 17 years ago

Merged r6613 from trunk into the 6.2 branch

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

  • Property mode set to 100644
File size: 9.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 "61beda590bfc5b4a12e979d5f2d70d7a">
10 <!ENTITY mesalib-size "3.3 MB">
11 <!ENTITY mesalib-buildsize "157 MB">
12 <!ENTITY mesalib-time "1.7 SBU">
13
14 <!ENTITY mesademos-download-http "http://downloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2">
15 <!ENTITY mesaglut-download-http "http://downloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2">
16
17]>
18
19<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
20 <?dbhtml filename="mesalib.html"?>
21
22 <sect1info>
23 <othername>$LastChangedBy$</othername>
24 <date>$Date$</date>
25 </sect1info>
26
27 <title>MesaLib-&mesalib-version;</title>
28
29 <indexterm zone="mesalib">
30 <primary sortas="a-MesaLib">MesaLib</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to MesaLib</title>
35
36 <para><application>Mesa</application> is an OpenGL compatible 3-D graphics
37 library.</para>
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&mesalib-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&mesalib-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &mesalib-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size (including recommended download):
52 &mesalib-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required (including recommended download):
56 &mesalib-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time (including recommended download):
60 &mesalib-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
65
66 <bridgehead renderas="sect4">Required</bridgehead>
67 <para role="required"><xref linkend="xorg7-lib"/>,
68 <xref linkend="xorg7-util"/>, and
69 <xref linkend="libdrm"/></para>
70
71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
72 href="../../xincludes/xorg7-only.xml"/>
73
74 <!-- <note>
75 <para>It is not recommended to build a newer version of
76 <application>Mesa</application> with <xref linkend="xfree86"/> or
77 <xref linkend="xorg"/>.</para>
78 </note> -->
79
80 <bridgehead renderas="sect3">Recommended Download</bridgehead>
81 <itemizedlist spacing="compact">
82 <listitem>
83 <para>Demonstration and diagnostic utilities used to verify that GL is
84 working properly: <ulink url="&mesademos-download-http;"/></para>
85 </listitem>
86 </itemizedlist>
87
88 <bridgehead renderas="sect3">Optional Download</bridgehead>
89 <itemizedlist spacing="compact">
90 <listitem>
91 <para>MesaLib GLUT library: <ulink url="&mesaglut-download-http;"/></para>
92 </listitem>
93 </itemizedlist>
94
95 <para condition="html" role="usernotes">User Notes:
96 <ulink url="&blfs-wiki;/mesalib"/></para>
97
98 </sect2>
99
100 <sect2 role="installation">
101 <title>Installation of MesaLib</title>
102
103 <para>Extract all three tarballs from the same top-level directory as they
104 all will extract to the
105 <filename class="directory">Mesa-&mesalib-version;</filename>
106 directory.</para>
107
108 <!-- Commenting this out as there is already mention of this
109 <caution>
110 <para>You should ensure that the <envar>XORG_PREFIX</envar> variable in
111 the commands below is the same as the one used in the installation prefix
112 of <application>Xorg</application>.</para>
113 </caution>
114 -->
115
116 <para>Fix an error with output redirection if <command>/bin/sh</command>
117 is not the <application>Bash</application> shell on your system:</para>
118
119<screen><userinput>sed -i 's%&gt;&amp; /dev/null%&gt;/dev/null%' src/mesa/drivers/dri/Makefile.template</userinput></screen>
120
121 <para>Install <application>MesaLib</application> by running the following
122 commands:</para>
123
124<screen><userinput>find . -type f -exec sed -i "s@/usr/X11R6@$XORG_PREFIX@g" {} \; &amp;&amp;
125sed -i 's@lib/modules@lib/X11/modules@' \
126 src/glx/x11/dri_glx.c \
127 src/mesa/drivers/dri/Makefile.template &amp;&amp;
128make OPT_FLAGS="-O2 -fno-strict-aliasing" linux-dri-x86</userinput></screen>
129
130 <para>If you downloaded and extracted the Demos package, build the programs
131 with the following commands:</para>
132
133<screen><userinput>sed -i 's@-l$(GLUT_LIB)@@g' configs/default &amp;&amp;
134make -C progs/xdemos PROGS='glxinfo glxgears'</userinput></screen>
135
136 <para>This package does not come with a test suite.</para>
137
138 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
139
140<screen role="root"><userinput>bin/installmesa $XORG_PREFIX &amp;&amp;
141install -v -m755 -d $XORG_PREFIX/lib/X11/modules/dri &amp;&amp;
142install -v -m755 lib/*dri* $XORG_PREFIX/lib/X11/modules/dri</userinput></screen>
143
144 <para>If you built the demo programs, install them using the following
145 command as the <systemitem class="username">root</systemitem> user:</para>
146
147<screen role="root"><userinput>install -v -m755 progs/xdemos/glx{info,gears} $XORG_PREFIX/bin</userinput></screen>
148
149 <para>Finally, if installing to any prefix other than
150 <filename class="directory">/usr</filename>, you should create symlinks
151 to the GL headers in <filename class="directory">/usr/include</filename>.
152 Execute the following command as the
153 <systemitem class="username">root</systemitem> user:</para>
154
155 <tip>
156 <para>Do not remove the Mesa source tree yet, it will be required to
157 build the <xref linkend="xorg7-server"/>.</para>
158 </tip>
159
160<screen role="root"><userinput>ln -s -v $XORG_PREFIX/include/GL /usr/include</userinput></screen>
161
162 </sect2>
163
164 <sect2 role="commands">
165 <title>Command Explanations</title>
166
167 <para><command>find ... sed -i "s@/usr/X11R6@$XORG_PREFIX@" ...</command>:
168 This command corrects several hard coded references to the X11R6 default
169 installation path.</para>
170
171 <para><command>sed -i 's@lib/modules@lib/X11/modules@' ...</command>:
172 This command corrects a hard coded reference to the module directory.</para>
173
174 <para><command>make OPT_FLAGS=... linux-dri-x86</command>: A bug where
175 OpenGL applications are shifted to the left by 50% can be worked around
176 by adding <option>-fno-strict-aliasing</option> to the compiler flags.
177 Also, the <option>linux-dri-x86</option> target is specified to use a
178 few other helpful flags in addition to the defaults. See the other
179 targets in the <filename class="directory">configs</filename> directory
180 if your architecture is not x86.</para>
181
182 <para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
183 Disables linking against the GLUT libraries for the demo programs, omit
184 this command if you downloaded and extracted the GLUT tarball.</para>
185
186 <para><command>make ... PROGS='glxinfo glxgears'</command>: Only builds
187 the <command>glxinfo</command> and <command>glxgears</command>
188 programs.</para>
189
190 <para><command>bin/installmesa</command>: Mesa uses a custom installation
191 script as opposed to the normal <parameter>install</parameter>
192 <command>make</command> target.</para>
193
194 <para><command>install -v -m755 lib/*dri*
195 $XORG_PREFIX/lib/X11/modules/dri</command>:
196 installs the DRI modules.</para>
197
198 </sect2>
199
200 <sect2 role="content">
201 <title>Contents</title>
202
203 <segmentedlist>
204 <segtitle>Installed Programs (optional)</segtitle>
205 <segtitle>Installed Libraries</segtitle>
206 <segtitle>Installed Directory</segtitle>
207
208 <seglistitem>
209 <seg>glxgears and glxinfo</seg>
210 <seg>libGL.{so,a}, libGLU.{so,a}, libGLw.{so,a}, *_dri.so and
211 optionally, libglut.{so,a}</seg>
212 <seg>$XORG_PREFIX/lib/modules/dri</seg>
213 </seglistitem>
214 </segmentedlist>
215
216 <variablelist>
217 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
218 <?dbfo list-presentation="list"?>
219 <?dbhtml list-presentation="table"?>
220
221 <varlistentry id="glxgears">
222 <term><filename>glxgears</filename></term>
223 <listitem>
224 <para>is a GL demo useful for troubleshooting graphics
225 problems.</para>
226 <indexterm zone="mesalib glxgears">
227 <primary sortas="b-glxgears">glxgears</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="glxinfo">
233 <term><filename>glxinfo</filename></term>
234 <listitem>
235 <para>is a diagnostic program that displays information about the
236 graphics hardware and installed GL libraries.</para>
237 <indexterm zone="mesalib glxinfo">
238 <primary sortas="b-glxinfo">glxinfo</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 </variablelist>
244
245 </sect2>
246
247</sect1>
Note: See TracBrowser for help on using the repository browser.