source: x/installing/mesalib.xml@ 3534db5d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 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 3534db5d was 2162208, checked in by Igor Živković <igor@…>, 11 years ago

update to mesalib-9.2.2

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

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