source: x/installing/mesalib.xml@ 51c08f3

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 51c08f3 was 51c08f3, checked in by Igor Živković <igor@…>, 10 years ago

clarify which recommended mesa patch to apply for blfs xorg tests

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