source: x/installing/mesalib.xml@ b9d56ad4

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

Add haveged

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