source: x/installing/mesalib.xml@ 63aeb2c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 63aeb2c was b48c67a, checked in by Ken Moffat <ken@…>, 12 years ago

More 7.2 tags.

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

  • Property mode set to 100644
File size: 10.3 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 " ">
8 <!ENTITY mesalib-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
9 <!ENTITY mesalib-md5sum "d546f988adfdf986cff45b1efa2d8a46">
10 <!ENTITY mesalib-size "5.5 MB">
11 <!ENTITY mesalib-buildsize "485 MB">
12 <!ENTITY mesalib-time "4.2 SBU">
13]>
14
15<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
16 <?dbhtml filename="mesalib.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>MesaLib-&mesalib-version;</title>
24
25 <indexterm zone="mesalib">
26 <primary sortas="a-MesaLib">MesaLib</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to MesaLib</title>
31
32 <para>
33 <application>Mesa</application> is an OpenGL compatible 3D graphics
34 library.
35 </para>
36
37 &lfs72_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&mesalib-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &mesalib-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &mesalib-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &mesalib-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &mesalib-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Required patch:
78 <ulink url="&patch-root;/MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch"/>
79 </para>
80 <para>
81 Recommended patch:
82 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-3.patch"/>
83 (Needed if testing the Xorg installation per BLFS instructions)
84 </para>
85 </listitem>
86 </itemizedlist>
87
88 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Required</bridgehead>
91 <para role="required">
92 <xref linkend="expat"/>,
93 <xref linkend="libdrm"/>,
94 <xref linkend="libxml2"/>,
95 <xref linkend="makedepend"/> and
96 <xref linkend="xorg7-lib"/>
97 </para>
98
99 <bridgehead renderas="sect4">Recommended</bridgehead>
100 <para role="recommended">
101 <xref linkend="llvm"/>
102 </para>
103
104 <note>
105 <para>
106 The <application>libxml2</application>
107 <application>Python</application> module must have been built
108 during the installation of <application>libxml2</application>
109 or else <application>MesaLib</application> build will fail.
110 </para>
111 </note>
112
113 <para condition="html" role="usernotes">User Notes:
114 <ulink url="&blfs-wiki;/mesalib"/></para>
115
116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of MesaLib</title>
120
121 <note>
122 <para>
123 Unlike other packages, the
124 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
125 archive will extract to the
126 <filename class="directory">Mesa-&mesalib-version;</filename>
127 directory.
128 </para>
129 </note>
130
131 <para>
132 Install <application>MesaLib</application> by running the following
133 commands:
134 </para>
135
136<screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &amp;&amp;
137patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-3.patch &amp;&amp;
138patch -Np1 -i ../MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch &amp;&amp;
139./configure --prefix=$XORG_PREFIX \
140 --enable-texture-float \
141 --enable-gles1 \
142 --enable-gles2 \
143 --enable-xa \
144 --enable-shared-glapi \
145 --enable-shared-dricore \
146 --enable-glx-tls \
147 --with-gallium-drivers="nouveau,r300,r600,svga,swrast" &amp;&amp;
148make</userinput></screen>
149
150 <para>
151 This package does not come with a test suite.
152 </para>
153
154 <para>
155 Now, as the <systemitem class="username">root</systemitem> user:
156 </para>
157
158<screen role="root"><userinput>make install &amp;&amp;
159mkdir -pv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &amp;&amp;
160cp -rfv docs/* ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen>
161
162 <para>
163 Finally, if installing to any prefix other than
164 <filename class="directory">/usr</filename>, you should create symlinks
165 to the GL headers in <filename class="directory">/usr/include</filename>.
166 Execute the following command as the
167 <systemitem class="username">root</systemitem> user:
168 </para>
169
170<screen role="root"><userinput>for GLHEADER in EGL GL GLES GLES2 KHR xa_composite.h xa_context.h xa_tracker.h
171do
172 ln -sfv ${XORG_PREFIX}/include/${GLHEADER} /usr/include/${GLHEADER}
173done</userinput></screen>
174
175 </sect2>
176
177 <sect2 role="commands">
178 <title>Command Explanations</title>
179
180 <para>
181 <command>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure</command>: by default,
182 Mesa builds with debugging symbols. Remove the -g switch from both
183 <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> with this command.
184 </para>
185
186 <para>
187 <option>--enable-texture-float</option>: This switch enables
188 floating-point textures and renderbuffers. Please consult
189 <filename>docs/patents.txt</filename> to see if there are
190 any legal issues if you use this feature.
191 </para>
192
193 <para>
194 <option>--enable-gles1</option>: This switch enables support for
195 OpenGL ES 1.x API.
196 </para>
197
198 <para>
199 <option>--enable-gles2</option>: This switch enables support for
200 OpenGL ES 2.x API.
201 </para>
202
203 <para>
204 <option>--enable-xa</option>: This switch enables building of the
205 XA X Acceleration API (Required for VMware 3D Driver).
206 </para>
207
208 <para>
209 <option>--enable-shared-glapi</option>: This switch enables building
210 of the shared glapi library.
211 </para>
212
213 <para>
214 <option>--enable-shared-dricore</option>: This switch enables linking
215 of the DRI modules with shared core DRI routines.
216 </para>
217
218 <para>
219 <option>--enable-glx-tls</option>: This switch enables TLS support
220 in GLX.
221 </para>
222
223 <para>
224 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
225 controls which Gallium drivers should be built. Available drivers are:
226 i915, nouveau, r300, r600, swrast and svga. Note that you will need to
227 remove r300 and r600 from the list if you haven't installed
228 <xref linkend="llvm"/>.
229 </para>
230
231 </sect2>
232
233 <sect2 role="content">
234 <title>Contents</title>
235
236 <segmentedlist>
237 <segtitle>Optionally Installed Programs</segtitle>
238 <segtitle>Installed Libraries</segtitle>
239 <segtitle>Installed Directories</segtitle>
240
241 <seglistitem>
242 <seg>
243 glxgears and glxinfo
244 </seg>
245 <seg>
246 libEGL.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so,
247 libGL.so, libGLU.so and libxatracker.so
248 </seg>
249 <seg>
250 <envar>$XORG_PREFIX</envar>/include/{EGL,GL,GLES,GLES2,KHR},
251 <envar>$XORG_PREFIX</envar>/lib/dri, and
252 <envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;
253 </seg>
254 </seglistitem>
255 </segmentedlist>
256
257 <variablelist>
258 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
259 <?dbfo list-presentation="list"?>
260 <?dbhtml list-presentation="table"?>
261
262 <varlistentry id="glxgears">
263 <term><filename>glxgears</filename></term>
264 <listitem>
265 <para>
266 is a GL demo useful for troubleshooting graphics
267 problems.
268 </para>
269 <indexterm zone="mesalib glxgears">
270 <primary sortas="b-glxgears">glxgears</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="glxinfo">
276 <term><filename>glxinfo</filename></term>
277 <listitem>
278 <para>
279 is a diagnostic program that displays information about the
280 graphics hardware and installed GL libraries.
281 </para>
282 <indexterm zone="mesalib glxinfo">
283 <primary sortas="b-glxinfo">glxinfo</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="libEGL">
289 <term><filename class='libraryfile'>libEGL.so</filename></term>
290 <listitem>
291 <para>
292 provides a native platform graphics interface as defined by
293 the EGL-1.4 specification.
294 </para>
295 <indexterm zone="mesalib libEGL">
296 <primary sortas="c-libGL">libEGL.so</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="libGL">
302 <term><filename class='libraryfile'>libGL.so</filename></term>
303 <listitem>
304 <para>
305 is the main OpenGL library.
306 </para>
307 <indexterm zone="mesalib libGL">
308 <primary sortas="c-libGL">libGL.so</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="libGLU">
314 <term><filename class='libraryfile'>libGLU.so</filename></term>
315 <listitem>
316 <para>
317 is the OpenGL Utility library.
318 </para>
319 <indexterm zone="mesalib libGLU">
320 <primary sortas="c-libGLU">libGLU.so</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 <varlistentry id="libxatracker">
326 <term><filename class='libraryfile'>libxatracker.so</filename></term>
327 <listitem>
328 <para>
329 is the library that provides XA X Acceleration API.
330 </para>
331 <indexterm zone="mesalib libxatracker">
332 <primary sortas="c-libxatracker">libxatracker.so</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336 </variablelist>
337
338 </sect2>
339
340</sect1>
Note: See TracBrowser for help on using the repository browser.