source: x/installing/mesalib.xml@ 56605b9

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 56605b9 was 56605b9, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Remove XML::Parser from perl modules
Archive acl, attr, intltool, expat, gperf
Synchronize libcap with LFS.

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

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