source: x/installing/mesalib.xml@ 3a225a0

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 3a225a0 was 3a225a0, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to MesaLib-9.2.4.

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

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