source: x/installing/mesalib.xml@ d6ab7b4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d6ab7b4 was 8cce4a19, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to MesaLib-10.3.4.

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

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