source: x/installing/mesalib.xml@ 51c08f3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind 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 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 51c08f3 was 51c08f3, checked in by Igor Živković <igor@…>, 10 years ago

clarify which recommended mesa patch to apply for blfs xorg tests

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

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