source: x/installing/mesalib.xml@ 5a2f6747

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5a2f6747 was 1aa6f05, checked in by Fernando de Oliveira <fernando@…>, 11 years ago

Tag 75. Armin's changes to gcc.

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

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