source: x/installing/mesalib.xml@ dd155dde

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 dd155dde was 59d9079, checked in by Pierre Labastie <pieere@…>, 10 years ago

Tags for X

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

  • Property mode set to 100644
File size: 15.5 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
[71ed812]9 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
[a45ebfa4]10<!-- <!ENTITY mesalib-download-ftp
11 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">-->
[5f188dd6]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">
[a07e9eb]16
[868c7c2]17]>
18
[4a1f001]19<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
[868c7c2]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
[d8838ed5]29 <indexterm zone="mesalib">
[868c7c2]30 <primary sortas="a-MesaLib">MesaLib</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to MesaLib</title>
35
[eb425b4]36 <para>
37 <application>Mesa</application> is an OpenGL compatible 3D graphics
38 library.
39 </para>
[868c7c2]40
[59d9079]41 &lfs76_checked;
[ca0c29cc]42
[868c7c2]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[de938a4e]46 <para>
47 Download (HTTP): <ulink url="&mesalib-download-http;"/>
48 </para>
[868c7c2]49 </listitem>
50 <listitem>
[de938a4e]51 <para>
52 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
53 </para>
[868c7c2]54 </listitem>
55 <listitem>
[de938a4e]56 <para>
57 Download MD5 sum: &mesalib-md5sum;
58 </para>
[868c7c2]59 </listitem>
60 <listitem>
[de938a4e]61 <para>
62 Download size: &mesalib-size;
63 </para>
[868c7c2]64 </listitem>
65 <listitem>
[de938a4e]66 <para>
67 Estimated disk space required: &mesalib-buildsize;
68 </para>
[868c7c2]69 </listitem>
70 <listitem>
[de938a4e]71 <para>
72 Estimated build time: &mesalib-time;
73 </para>
[868c7c2]74 </listitem>
75 </itemizedlist>
76
[58720a7b]77 <bridgehead renderas="sect3">Additional Patch</bridgehead>
[a07e9eb]78 <itemizedlist spacing="compact">
79 <listitem>
[eb425b4]80 <para>
81 Recommended patch:
[a748a00]82 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
[a07e9eb]83 (Needed if testing the Xorg installation per BLFS instructions).
[ace536a]84 </para>
[eeb29511]85 </listitem>
86 </itemizedlist>
87
[868c7c2]88 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Required</bridgehead>
[7b74537e]91 <para role="required">
[5bee197]92 <xref linkend="xorg7-lib"/>,
93 <xref linkend="libdrm"/>, and
94 <xref linkend="python2"/>
[eb425b4]95 </para>
[868c7c2]96
[606dfd4]97 <bridgehead renderas="sect4">Recommended</bridgehead>
[eb425b4]98 <para role="recommended">
[9065a56b]99 <xref linkend="elfutils"/> (required for radeon 3d drivers),
100 <xref linkend="libvdpau"/> (to build VDPAU drivers),
101 <xref linkend="llvm"/> (required for radeon 3d drivers and also for
102 llvmpipe which is intended to be the fastest of the three sw rasterizers,
[3a225a0]103 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink> )
[606dfd4]104 </para>
[60bcf481]105
[07584d8]106 <bridgehead renderas="sect4">Optional</bridgehead>
107 <para role="optional">
[58720a7b]108 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
109 provides more than 300 extra demos to test
110 <application>MesaLib</application>; two of them overwrites the ones
111 included by
112 <filename>MesaLib-&mesalib-version;-add_xdemos-1.patch</filename>;
113 to avoid that, install in a different prefix or add, e.g.
114 <option>--program-prefix=md</option> to configure, and
[07584d8]115 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
116 </para>
117
[9065a56b]118 <note>
[fd2f9a2]119 <para>
[dae25ca5]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>
[9065a56b]125 for Radeon 3D drivers. For an explanation of gallium please see
126 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"></ulink>.
[fd2f9a2]127 </para>
[9065a56b]128 </note>
[fd2f9a2]129
[c5c2654]130 <para condition="html" role="usernotes">User Notes:
[2993b2f]131 <ulink url="&blfs-wiki;/mesalib"/>
132 </para>
[868c7c2]133 </sect2>
134
135 <sect2 role="installation">
136 <title>Installation of MesaLib</title>
137
[eb425b4]138 <note>
139 <para>
140 Unlike other packages, the
141 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
142 archive will extract to the
143 <filename class="directory">Mesa-&mesalib-version;</filename>
144 directory.
145 </para>
146 </note>
[38476a9]147
[a07e9eb]148 <para>
[5f91dfd]149 If you have downloaded the recommended patch, apply it by running the
[a07e9eb]150 following command:
151 </para>
152
[a748a00]153<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
[a07e9eb]154
[eb425b4]155 <para>
156 Install <application>MesaLib</application> by running the following
157 commands:
158 </para>
[868c7c2]159
[f6693ed]160<screen><userinput>sed -e '/0x0303/ a#define OwningPtr std::unique_ptr\n#elif HAVE_LLVM >= 0x0303' \
161 -e 's/^#if HAVE_LLVM >= 0x0303/#if HAVE_LLVM >= 0x0305/' \
162 -i src/gallium/auxiliary/gallivm/lp_bld_debug.cpp &amp;&amp;
163
164
165./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
[5f26d66f]166 --prefix=$XORG_PREFIX \
[a07e9eb]167 --sysconfdir=/etc \
168 --enable-texture-float \
169 --enable-gles1 \
170 --enable-gles2 \
171 --enable-openvg \
[2993b2f]172 --enable-osmesa \
[a07e9eb]173 --enable-xa \
174 --enable-gbm \
175 --enable-gallium-egl \
176 --enable-gallium-gbm \
177 --enable-glx-tls \
178 --with-egl-platforms="drm,x11" \
[1f44775e]179 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[1199613]180make</userinput></screen>
[868c7c2]181
[a07e9eb]182 <para>
[5f91dfd]183 If you have applied the recommended patch, build the demo programs by
[a07e9eb]184 running the following command:
185 </para>
186
[5f26d66f]187<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
[a07e9eb]188
[eb425b4]189 <para>
190 This package does not come with a test suite.
191 </para>
[ff55539b]192
[eb425b4]193 <para>
194 Now, as the <systemitem class="username">root</systemitem> user:
195 </para>
[ff55539b]196
[dae25ca5]197<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]198
199 <para>
[5f91dfd]200 If you have built the demo programs, install them by running the
[a07e9eb]201 following command as the
202 <systemitem class="username">root</systemitem> user:
203 </para>
204
[5f26d66f]205<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
[a07e9eb]206
[eb425b4]207 <para>
[a07e9eb]208 If desired, install the optional documentation by running
209 the following commands as the
[eb425b4]210 <systemitem class="username">root</systemitem> user:
211 </para>
[91859cf]212
[0d7900a]213<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
[a07e9eb]214cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
[5a883bc4]215
[868c7c2]216 </sect2>
217
[a07e9eb]218 <sect2 role="commands">
219 <title>Command Explanations</title>
220
[f6693ed]221 <para>
222 <command>sed -e ...lp_bld_debug.cpp</command>: Fix build problem
223 introduced with LLVM-3.5.0.
224 </para>
225
[95e8211]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
[fd2f9a2]230 debugging symbols which make them bigger. Override the default
[4d92247]231 flags to omit -g compiler flag so the final libraries are smaller.
[95e8211]232 </para>
233
[eb425b4]234 <para>
[6825eb89]235 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]236 floating-point textures and render buffers. Please consult
[eb425b4]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>
[6825eb89]242 <parameter>--enable-gles1</parameter>: This switch enables support for
[eb425b4]243 OpenGL ES 1.x API.
244 </para>
245
246 <para>
[6825eb89]247 <parameter>--enable-gles2</parameter>: This switch enables support for
[eb425b4]248 OpenGL ES 2.x API.
249 </para>
[9b3b6a4]250
[a07e9eb]251 <para>
[6825eb89]252 <parameter>--enable-openvg</parameter>: This switch enables support for
[a07e9eb]253 OpenVG API.
254 </para>
255
[2993b2f]256 <para>
[6825eb89]257 <parameter>--enable-osmesa</parameter>: This switch enables building of
[abdc2e6]258 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]259 </para>
260
[eb425b4]261 <para>
[6825eb89]262 <parameter>--enable-xa</parameter>: This switch enables building of the
[eb425b4]263 XA X Acceleration API (Required for VMware 3D Driver).
264 </para>
265
266 <para>
[6825eb89]267 <parameter>--enable-gbm</parameter>: This switch enables building of the
[a07e9eb]268 <application>Mesa</application> Graphics Buffer Manager library.
269 </para>
270
271 <para>
[6825eb89]272 <parameter>--enable-gallium-egl</parameter>: This switch enables optional
[a07e9eb]273 EGL state tracker for Gallium.
[eb425b4]274 </para>
[bad6be19]275
[eb425b4]276 <para>
[6825eb89]277 <parameter>--enable-gallium-gbm</parameter>: This switch enables optional
[a07e9eb]278 GBM state tracker for Gallium.
279 </para>
280
[eb425b4]281 <para>
[6825eb89]282 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]283 Storage) support in GLX.
[eb425b4]284 </para>
285
[a07e9eb]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
[eb425b4]292 <para>
293 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[a07e9eb]294 controls which Gallium drivers should be built. Available drivers
[dae25ca5]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>.
[eb425b4]299 </para>
[f49893b]300
[1f44775e]301 <para>
[dae25ca5]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.
[1f44775e]305 </para>
306
[371ff30]307 </sect2>
308
[868c7c2]309 <sect2 role="content">
310 <title>Contents</title>
311
312 <segmentedlist>
[1263ab1e]313 <segtitle>Installed Programs</segtitle>
[868c7c2]314 <segtitle>Installed Libraries</segtitle>
[ba2ac60]315 <segtitle>Installed Directories</segtitle>
[868c7c2]316
317 <seglistitem>
[eb425b4]318 <seg>
319 glxgears and glxinfo
320 </seg>
321 <seg>
[ed6d075]322 libGL.so,
323 libEGL.so,
324 libGLESv1_CM.so,
[5a14a19]325 libGLESv2.so,
[ed6d075]326 libOSMesa.so,
327 libOpenVG.so,
328 libgbm.so,
329 libglapi.so, and
330 libxatracker.so
331 <!--libXvMCnouveau.so and libXvMCr600.so-->
[eb425b4]332 </seg>
333 <seg>
[5f26d66f]334 $XORG_PREFIX/include/EGL,
[177e2f9]335 $XORG_PREFIX/include/GL,
[5f26d66f]336 $XORG_PREFIX/include/GLES,
337 $XORG_PREFIX/include/GLES2,
338 $XORG_PREFIX/include/GLES3,
339 $XORG_PREFIX/include/KHR,
340 $XORG_PREFIX/include/VG,
341 $XORG_PREFIX/lib/dri,
342 $XORG_PREFIX/lib/egl,
[dae25ca5]343 $XORG_PREFIX/lib/gallium-pipe,
[3eb09b31]344 $XORG_PREFIX/lib/gbm,
345 $XORG_PREFIX/lib/vdpau, and
[3a225a0]346 /usr/share/doc/MesaLib-&mesalib-version; (optional)
[eb425b4]347 </seg>
[868c7c2]348 </seglistitem>
349 </segmentedlist>
[d3ef1e4]350
[4437f63]351 <variablelist>
352 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
353 <?dbfo list-presentation="list"?>
354 <?dbhtml list-presentation="table"?>
355
356 <varlistentry id="glxgears">
[eb50ddde]357 <term><command>glxgears</command></term>
[4437f63]358 <listitem>
[eb425b4]359 <para>
360 is a GL demo useful for troubleshooting graphics
361 problems.
362 </para>
[d8838ed5]363 <indexterm zone="mesalib glxgears">
[4437f63]364 <primary sortas="b-glxgears">glxgears</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="glxinfo">
[eb50ddde]370 <term><command>glxinfo</command></term>
[4437f63]371 <listitem>
[eb425b4]372 <para>
373 is a diagnostic program that displays information about the
374 graphics hardware and installed GL libraries.
375 </para>
[d8838ed5]376 <indexterm zone="mesalib glxinfo">
[4437f63]377 <primary sortas="b-glxinfo">glxinfo</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
[25f6d94]382 <varlistentry id="libEGL">
[a07e9eb]383 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]384 <listitem>
[eb425b4]385 <para>
[a07e9eb]386 provides a native platform graphics interface as
387 defined by the EGL-1.4 specification.
[eb425b4]388 </para>
[25f6d94]389 <indexterm zone="mesalib libEGL">
390 <primary sortas="c-libGL">libEGL.so</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
[a07e9eb]395 <varlistentry id="libgbm">
396 <term><filename class="libraryfile">libgbm.so</filename></term>
397 <listitem>
398 <para>
399 is the <application>Mesa</application> Graphics Buffer
[0d7900a]400 Manager library.
[a07e9eb]401 </para>
402 <indexterm zone="mesalib libgbm">
403 <primary sortas="c-libgbm">libgbm.so</primary>
404 </indexterm>
405 </listitem>
406 </varlistentry>
407
408 <varlistentry id="libGLESv1_CM">
409 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
410 <listitem>
411 <para>
412 is the <application>Mesa</application> OpenGL ES 1.1 library.
413 </para>
414 <indexterm zone="mesalib libGLESv1_CM">
415 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
416 </indexterm>
417 </listitem>
418 </varlistentry>
419
420 <varlistentry id="libGLES2">
421 <term><filename class="libraryfile">libGLES2.so</filename></term>
422 <listitem>
423 <para>
424 is the <application>Mesa</application> OpenGL ES 2.0 library.
425 </para>
426 <indexterm zone="mesalib libGLES2">
427 <primary sortas="c-libGLES2">libGLES2.so</primary>
428 </indexterm>
429 </listitem>
430 </varlistentry>
431
[ba2ac60]432 <varlistentry id="libGL">
[a07e9eb]433 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]434 <listitem>
[eb425b4]435 <para>
[a07e9eb]436 is the main <application>Mesa</application> OpenGL library.
[eb425b4]437 </para>
[ba2ac60]438 <indexterm zone="mesalib libGL">
439 <primary sortas="c-libGL">libGL.so</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
[a07e9eb]444 <varlistentry id="libOpenVG">
445 <term><filename class="libraryfile">libOpenVG.so</filename></term>
446 <listitem>
447 <para>
448 is the <application>Mesa</application> OpenVG 1.0 library.
449 </para>
450 <indexterm zone="mesalib libOpenVG">
451 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
452 </indexterm>
453 </listitem>
454 </varlistentry>
455
[2993b2f]456 <varlistentry id="libOSMesa">
457 <term><filename class="libraryfile">libOSMesa.so</filename></term>
458 <listitem>
459 <para>
460 is the <application>Mesa</application> Off-screen Rendering library.
461 </para>
462 <indexterm zone="mesalib libOSMesa">
463 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
464 </indexterm>
465 </listitem>
466 </varlistentry>
467
[bad6be19]468 <varlistentry id="libxatracker">
[a07e9eb]469 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]470 <listitem>
[eb425b4]471 <para>
[a07e9eb]472 is the Xorg Gallium3D acceleration library.
[eb425b4]473 </para>
[bad6be19]474 <indexterm zone="mesalib libxatracker">
475 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]476 </indexterm>
477 </listitem>
478 </varlistentry>
[4437f63]479 </variablelist>
480
[868c7c2]481 </sect2>
[d3ef1e4]482
[868c7c2]483</sect1>
Note: See TracBrowser for help on using the repository browser.