source: x/installing/mesalib.xml@ e88d1a79

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 e88d1a79 was e88d1a79, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

WebKitGTK+ 2.4.1 and MesaLib-10.1.1.

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

  • Property mode set to 100644
File size: 15.2 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
9 "ftp://ftp.freedesktop.org/pub/mesa/10.1.1/MesaLib-&mesalib-version;.tar.bz2">
10<!-- <!ENTITY mesalib-download-ftp
11 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">-->
12 <!ENTITY mesalib-md5sum "1fde7ed079df7aeb9b6a744ca033de8d">
13 <!ENTITY mesalib-size "6.7 MB">
14 <!ENTITY mesalib-buildsize "329 MB (additional 1.6 MB for the docs)">
15 <!ENTITY mesalib-time "4.2 SBU">
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>
37 <application>Mesa</application> is an OpenGL compatible 3D graphics
38 library.
39 </para>
40
41 &lfs75_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&mesalib-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &mesalib-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &mesalib-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &mesalib-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &mesalib-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Additional Patches</bridgehead>
78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>
81 Required patch:
82 <ulink url="&patch-root;/MesaLib-&mesalib-version;-svga_texture-1.patch"/>
83 </para>
84 </listitem>
85 <listitem>
86 <para>
87 Recommended patch:
88 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
89 (Needed if testing the Xorg installation per BLFS instructions).
90 </para>
91 </listitem>
92 </itemizedlist>
93
94 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
95
96 <bridgehead renderas="sect4">Required</bridgehead>
97 <para role="required">
98 <xref linkend="libxml2"/>,
99 <xref linkend="xorg7-lib"/>,
100 <xref linkend="libdrm"/>, and
101 <xref linkend="expat"/>
102 </para>
103
104 <bridgehead renderas="sect4">Recommended</bridgehead>
105 <para role="recommended">
106 <xref linkend="elfutils"/> (required for radeon 3d drivers),
107 <xref linkend="libvdpau"/> (to build VDPAU drivers),
108 <xref linkend="llvm"/> (required for radeon 3d drivers and also for
109 llvmpipe which is intended to be the fastest of the three sw rasterizers,
110 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink> )
111 </para>
112
113 <bridgehead renderas="sect4">Optional</bridgehead>
114 <para role="optional">
115 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
116 </para>
117
118 <note>
119 <para>
120 The instructions below assume that <application>elfutils</application>
121 and <application>LLVM</application> are installed. You will
122 need to modify the instructions if you choose not to install them.
123 Please note that <application>elfutils</application> and
124 <application>LLVM</application> are <emphasis>required</emphasis>
125 for Radeon 3D drivers. For an explanation of gallium please see
126 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"></ulink>.
127 </para>
128 </note>
129
130 <note>
131 <para>
132 The <application>libxml2</application>
133 <application>Python</application> module must have been built
134 during the installation of <application>libxml2</application>
135 or else <application>MesaLib</application> build will fail.
136 </para>
137 </note>
138
139 <para condition="html" role="usernotes">User Notes:
140 <ulink url="&blfs-wiki;/mesalib"/>
141 </para>
142 </sect2>
143
144 <sect2 role="installation">
145 <title>Installation of MesaLib</title>
146
147 <note>
148 <para>
149 Unlike other packages, the
150 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
151 archive will extract to the
152 <filename class="directory">Mesa-&mesalib-version;</filename>
153 directory.
154 </para>
155 </note>
156
157 <para>
158 If you have downloaded the recommended patch, apply it by running the
159 following command:
160 </para>
161
162<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
163
164 <para>
165 Install <application>MesaLib</application> by running the following
166 commands:
167 </para>
168
169<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-svga_texture-1.patch &amp;&amp;
170./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
171 --prefix=$XORG_PREFIX \
172 --sysconfdir=/etc \
173 --enable-texture-float \
174 --enable-gles1 \
175 --enable-gles2 \
176 --enable-openvg \
177 --enable-osmesa \
178 --enable-xa \
179 --enable-gbm \
180 --enable-gallium-egl \
181 --enable-gallium-gbm \
182 --enable-glx-tls \
183 --with-egl-platforms="drm,x11" \
184 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
185make</userinput></screen>
186
187 <para>
188 If you have applied the recommended patch, build the demo programs by
189 running the following command:
190 </para>
191
192<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
193
194 <para>
195 This package does not come with a test suite.
196 </para>
197
198 <para>
199 Now, as the <systemitem class="username">root</systemitem> user:
200 </para>
201
202<screen role="root"><userinput>make install</userinput></screen>
203
204 <para>
205 If you have built the demo programs, install them by running the
206 following command as the
207 <systemitem class="username">root</systemitem> user:
208 </para>
209
210<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
211
212 <para>
213 If desired, install the optional documentation by running
214 the following commands as the
215 <systemitem class="username">root</systemitem> user:
216 </para>
217
218<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
219cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
220
221 </sect2>
222
223 <sect2 role="commands">
224 <title>Command Explanations</title>
225
226 <para>
227 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
228 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
229 "-g -O2". That results in binaries and libraries being built with
230 debugging symbols which make them bigger. Override the default
231 flags to omit -g compiler flag so the final libraries are smaller.
232 </para>
233
234 <para>
235 <option>--enable-texture-float</option>: This switch enables
236 floating-point textures and render buffers. Please consult
237 <filename>docs/patents.txt</filename> to see if there are
238 any legal issues if you use this feature.
239 </para>
240
241 <para>
242 <option>--enable-gles1</option>: This switch enables support for
243 OpenGL ES 1.x API.
244 </para>
245
246 <para>
247 <option>--enable-gles2</option>: This switch enables support for
248 OpenGL ES 2.x API.
249 </para>
250
251 <para>
252 <option>--enable-openvg</option>: This switch enables support for
253 OpenVG API.
254 </para>
255
256 <para>
257 <option>--enable-osmesa</option>: This switch enables building of
258 the <filename class="libraryfile">libOSMesa</filename> library.
259 </para>
260
261 <para>
262 <option>--enable-xa</option>: This switch enables building of the
263 XA X Acceleration API (Required for VMware 3D Driver).
264 </para>
265
266 <para>
267 <option>--enable-gbm</option>: This switch enables building of the
268 <application>Mesa</application> Graphics Buffer Manager library.
269 </para>
270
271 <para>
272 <option>--enable-gallium-egl</option>: This switch enables optional
273 EGL state tracker for Gallium.
274 </para>
275
276 <para>
277 <option>--enable-gallium-gbm</option>: This switch enables optional
278 GBM state tracker for Gallium.
279 </para>
280
281 <para>
282 <option>--enable-glx-tls</option>: This switch enables TLS (Thread Local
283 Storage) support in GLX.
284 </para>
285
286 <para>
287 <parameter>--with-egl-platforms="..."</parameter>: This parameter
288 controls for which platforms EGL should be built. Available
289 platforms are drm, x11 and wayland.
290 </para>
291
292 <para>
293 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
294 controls which Gallium drivers should be built. Available drivers
295 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
296 will need to remove r300, r600 and radeonsi from the list if you did
297 not install <application>elfutils</application> and
298 <application>LLVM</application>.
299 </para>
300
301 <para>
302 <option>--enable-r600-llvm-compiler</option>: Use this switch to
303 enable experimental R600 <application>LLVM</application> backend
304 for graphics shaders which claims to speed up the driver.
305 </para>
306
307 </sect2>
308
309 <sect2 role="content">
310 <title>Contents</title>
311
312 <segmentedlist>
313 <segtitle>Installed Programs</segtitle>
314 <segtitle>Installed Libraries</segtitle>
315 <segtitle>Installed Directories</segtitle>
316
317 <seglistitem>
318 <seg>
319 glxgears and glxinfo
320 </seg>
321 <seg>
322 libEGL.so, libgbm.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so,
323 libGL.so, libOpenVG.so, libOSMesa.so, libxatracker.so,
324 <!--libXvMCnouveau.so and libXvMCr600.so--> and
325 several libs under /usr/lib/{dri,egl,gallium-pipe,gbm,vdpau}
326 </seg>
327 <seg>
328 $XORG_PREFIX/include/EGL,
329 $XORG_PREFIX/include/GLES,
330 $XORG_PREFIX/include/GLES2,
331 $XORG_PREFIX/include/GLES3,
332 $XORG_PREFIX/include/KHR,
333 $XORG_PREFIX/include/VG,
334 $XORG_PREFIX/lib/dri,
335 $XORG_PREFIX/lib/egl,
336 $XORG_PREFIX/lib/gallium-pipe,
337 $XORG_PREFIX/lib/gbm,
338 $XORG_PREFIX/lib/vdpau and
339 /usr/share/doc/MesaLib-&mesalib-version; (optional)
340 </seg>
341 </seglistitem>
342 </segmentedlist>
343
344 <variablelist>
345 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
346 <?dbfo list-presentation="list"?>
347 <?dbhtml list-presentation="table"?>
348
349 <varlistentry id="glxgears">
350 <term><command>glxgears</command></term>
351 <listitem>
352 <para>
353 is a GL demo useful for troubleshooting graphics
354 problems.
355 </para>
356 <indexterm zone="mesalib glxgears">
357 <primary sortas="b-glxgears">glxgears</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="glxinfo">
363 <term><command>glxinfo</command></term>
364 <listitem>
365 <para>
366 is a diagnostic program that displays information about the
367 graphics hardware and installed GL libraries.
368 </para>
369 <indexterm zone="mesalib glxinfo">
370 <primary sortas="b-glxinfo">glxinfo</primary>
371 </indexterm>
372 </listitem>
373 </varlistentry>
374
375 <varlistentry id="libEGL">
376 <term><filename class="libraryfile">libEGL.so</filename></term>
377 <listitem>
378 <para>
379 provides a native platform graphics interface as
380 defined by the EGL-1.4 specification.
381 </para>
382 <indexterm zone="mesalib libEGL">
383 <primary sortas="c-libGL">libEGL.so</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
388 <varlistentry id="libgbm">
389 <term><filename class="libraryfile">libgbm.so</filename></term>
390 <listitem>
391 <para>
392 is the <application>Mesa</application> Graphics Buffer
393 Manager library.
394 </para>
395 <indexterm zone="mesalib libgbm">
396 <primary sortas="c-libgbm">libgbm.so</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="libGLESv1_CM">
402 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
403 <listitem>
404 <para>
405 is the <application>Mesa</application> OpenGL ES 1.1 library.
406 </para>
407 <indexterm zone="mesalib libGLESv1_CM">
408 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
409 </indexterm>
410 </listitem>
411 </varlistentry>
412
413 <varlistentry id="libGLES2">
414 <term><filename class="libraryfile">libGLES2.so</filename></term>
415 <listitem>
416 <para>
417 is the <application>Mesa</application> OpenGL ES 2.0 library.
418 </para>
419 <indexterm zone="mesalib libGLES2">
420 <primary sortas="c-libGLES2">libGLES2.so</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
425 <varlistentry id="libGL">
426 <term><filename class="libraryfile">libGL.so</filename></term>
427 <listitem>
428 <para>
429 is the main <application>Mesa</application> OpenGL library.
430 </para>
431 <indexterm zone="mesalib libGL">
432 <primary sortas="c-libGL">libGL.so</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="libOpenVG">
438 <term><filename class="libraryfile">libOpenVG.so</filename></term>
439 <listitem>
440 <para>
441 is the <application>Mesa</application> OpenVG 1.0 library.
442 </para>
443 <indexterm zone="mesalib libOpenVG">
444 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="libOSMesa">
450 <term><filename class="libraryfile">libOSMesa.so</filename></term>
451 <listitem>
452 <para>
453 is the <application>Mesa</application> Off-screen Rendering library.
454 </para>
455 <indexterm zone="mesalib libOSMesa">
456 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="libxatracker">
462 <term><filename class="libraryfile">libxatracker.so</filename></term>
463 <listitem>
464 <para>
465 is the Xorg Gallium3D acceleration library.
466 </para>
467 <indexterm zone="mesalib libxatracker">
468 <primary sortas="c-libxatracker">libxatracker.so</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472 </variablelist>
473
474 </sect2>
475
476</sect1>
Note: See TracBrowser for help on using the repository browser.