source: x/installing/mesalib.xml@ 8b3a8979

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 8b3a8979 was 5cac005, checked in by Igor Živković <igor@…>, 11 years ago

update to mesalib-9.2.1

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

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