source: x/installing/mesalib.xml@ 087af8c0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 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 087af8c0 was 1e5a4c26, checked in by Igor Živković <igor@…>, 11 years ago

mesalib doesn't require makedepend, add x7libs to fix broken dependency chain caused by libdrm not requiring libpciaccess

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

  • Property mode set to 100644
File size: 17.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
9 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
[fc6b1b5]10 <!ENTITY mesalib-md5sum "0a72ca5b36046a658bf6038326ff32ed">
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
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">
[1e5a4c26]130 <xref linkend="libxml2"/>,
131 <xref linkend="xorg7-lib"/>,
132 <xref linkend="libdrm"/>, and
133 <xref linkend="expat"/>
[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,
[3a225a0]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
[fc6b1b5]201<screen><userinput>./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
[5f26d66f]202 --prefix=$XORG_PREFIX \
[a07e9eb]203 --sysconfdir=/etc \
204 --enable-texture-float \
205 --enable-gles1 \
206 --enable-gles2 \
207 --enable-openvg \
[2993b2f]208 --enable-osmesa \
[a07e9eb]209 --enable-xa \
210 --enable-gbm \
211 --enable-gallium-egl \
212 --enable-gallium-gbm \
213 --enable-glx-tls \
[fd2f9a2]214 --with-llvm-shared-libs \
[a07e9eb]215 --with-egl-platforms="drm,x11" \
[1f44775e]216 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[1199613]217make</userinput></screen>
[868c7c2]218
[a07e9eb]219 <para>
[5f91dfd]220 If you have applied the recommended patch, build the demo programs by
[a07e9eb]221 running the following command:
222 </para>
223
[5f26d66f]224<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
[a07e9eb]225
[eb425b4]226 <para>
227 This package does not come with a test suite.
228 </para>
[ff55539b]229
[eb425b4]230 <para>
231 Now, as the <systemitem class="username">root</systemitem> user:
232 </para>
[ff55539b]233
[dae25ca5]234<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]235
236 <para>
[5f91dfd]237 If you have built the demo programs, install them by running the
[a07e9eb]238 following command as the
239 <systemitem class="username">root</systemitem> user:
240 </para>
241
[5f26d66f]242<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
[a07e9eb]243
[eb425b4]244 <para>
[a07e9eb]245 If desired, install the optional documentation by running
246 the following commands as the
[eb425b4]247 <systemitem class="username">root</systemitem> user:
248 </para>
[91859cf]249
[0d7900a]250<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
[a07e9eb]251cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
[5a883bc4]252
[868c7c2]253 </sect2>
254
[a07e9eb]255 <sect2 role="installation">
256 <title>Installation of GLU</title>
257
258 <para>
259 Install <application>GLU</application> by running the following
260 commands:
261 </para>
262
[5f26d66f]263<screen><userinput>./configure --prefix=$XORG_PREFIX --disable-static &amp;&amp;
[a07e9eb]264make</userinput></screen>
265
266 <para>
267 This package does not come with a test suite.
268 </para>
[371ff30]269
[eb425b4]270 <para>
[a07e9eb]271 Now, as the <systemitem class="username">root</systemitem> user:
[eb425b4]272 </para>
273
[a07e9eb]274<screen role="root"><userinput>make install</userinput></screen>
275
276 </sect2>
277
278 <sect2 role="commands">
279 <title>Command Explanations</title>
280
[95e8211]281 <para>
282 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
283 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
284 "-g -O2". That results in binaries and libraries being built with
[fd2f9a2]285 debugging symbols which make them bigger. Override the default
[4d92247]286 flags to omit -g compiler flag so the final libraries are smaller.
[95e8211]287 </para>
288
[eb425b4]289 <para>
290 <option>--enable-texture-float</option>: This switch enables
[a07e9eb]291 floating-point textures and render buffers. Please consult
[eb425b4]292 <filename>docs/patents.txt</filename> to see if there are
293 any legal issues if you use this feature.
294 </para>
295
296 <para>
297 <option>--enable-gles1</option>: This switch enables support for
298 OpenGL ES 1.x API.
299 </para>
300
301 <para>
[0d7900a]302 <option>--enable-gles2</option>: This switch enables support for
[eb425b4]303 OpenGL ES 2.x API.
304 </para>
[9b3b6a45]305
[a07e9eb]306 <para>
307 <option>--enable-openvg</option>: This switch enables support for
308 OpenVG API.
309 </para>
310
[2993b2f]311 <para>
312 <option>--enable-osmesa</option>: This switch enables building of
[abdc2e6]313 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]314 </para>
315
[eb425b4]316 <para>
317 <option>--enable-xa</option>: This switch enables building of the
318 XA X Acceleration API (Required for VMware 3D Driver).
319 </para>
320
321 <para>
[a07e9eb]322 <option>--enable-gbm</option>: This switch enables building of the
323 <application>Mesa</application> Graphics Buffer Manager library.
324 </para>
325
326 <para>
327 <option>--enable-gallium-egl</option>: This switch enables optional
328 EGL state tracker for Gallium.
[eb425b4]329 </para>
[bad6be19]330
[eb425b4]331 <para>
[a07e9eb]332 <option>--enable-gallium-gbm</option>: This switch enables optional
333 GBM state tracker for Gallium.
334 </para>
335
[eb425b4]336 <para>
[4d92247]337 <option>--enable-glx-tls</option>: This switch enables TLS (Thread Local
338 Storage) support in GLX.
[eb425b4]339 </para>
340
[fd2f9a2]341 <para>
342 <option>--with-llvm-shared-libs</option>: This switch is used so
343 Gallium drivers will link against shared
344 <application>LLVM</application> libraries instead of the static
[dae25ca5]345 ones. Remove if you did not install <application>LLVM</application>.
[fd2f9a2]346 </para>
347
[a07e9eb]348 <para>
349 <parameter>--with-egl-platforms="..."</parameter>: This parameter
350 controls for which platforms EGL should be built. Available
351 platforms are drm, x11 and wayland.
352 </para>
353
[eb425b4]354 <para>
355 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[a07e9eb]356 controls which Gallium drivers should be built. Available drivers
[dae25ca5]357 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
358 will need to remove r300, r600 and radeonsi from the list if you did
359 not install <application>elfutils</application> and
360 <application>LLVM</application>.
[eb425b4]361 </para>
[f49893b]362
[8c004cf5]363 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
364 href="../../xincludes/static-libraries.xml"/>
365
[1f44775e]366 <para>
[dae25ca5]367 <option>--enable-r600-llvm-compiler</option>: Use this switch to
368 enable experimental R600 <application>LLVM</application> backend
369 for graphics shaders which claims to speed up the driver.
[1f44775e]370 </para>
371
[371ff30]372 </sect2>
373
[868c7c2]374 <sect2 role="content">
375 <title>Contents</title>
376
377 <segmentedlist>
[1263ab1e]378 <segtitle>Installed Programs</segtitle>
[868c7c2]379 <segtitle>Installed Libraries</segtitle>
[ba2ac60]380 <segtitle>Installed Directories</segtitle>
[868c7c2]381
382 <seglistitem>
[eb425b4]383 <seg>
384 glxgears and glxinfo
385 </seg>
386 <seg>
[efe83aa8]387 libEGL.so, libgbm.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so,
388 libGL.so, libGLU.so, libOpenVG.so, libOSMesa.so, libxatracker.so,
389 libXvMCnouveau.so and libXvMCr600.so
[eb425b4]390 </seg>
391 <seg>
[5f26d66f]392 $XORG_PREFIX/include/EGL,
393 $XORG_PREFIX/include/GLES,
394 $XORG_PREFIX/include/GLES2,
395 $XORG_PREFIX/include/GLES3,
396 $XORG_PREFIX/include/KHR,
397 $XORG_PREFIX/include/VG,
398 $XORG_PREFIX/lib/dri,
399 $XORG_PREFIX/lib/egl,
[dae25ca5]400 $XORG_PREFIX/lib/gallium-pipe,
[3a225a0]401 $XORG_PREFIX/lib/gbm,
402 $XORG_PREFIX/lib/vdpau and
403 /usr/share/doc/MesaLib-&mesalib-version; (optional)
[eb425b4]404 </seg>
[868c7c2]405 </seglistitem>
406 </segmentedlist>
[d3ef1e4]407
[4437f63]408 <variablelist>
409 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
410 <?dbfo list-presentation="list"?>
411 <?dbhtml list-presentation="table"?>
412
413 <varlistentry id="glxgears">
[eb50ddde]414 <term><command>glxgears</command></term>
[4437f63]415 <listitem>
[eb425b4]416 <para>
417 is a GL demo useful for troubleshooting graphics
418 problems.
419 </para>
[d8838ed5]420 <indexterm zone="mesalib glxgears">
[4437f63]421 <primary sortas="b-glxgears">glxgears</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="glxinfo">
[eb50ddde]427 <term><command>glxinfo</command></term>
[4437f63]428 <listitem>
[eb425b4]429 <para>
430 is a diagnostic program that displays information about the
431 graphics hardware and installed GL libraries.
432 </para>
[d8838ed5]433 <indexterm zone="mesalib glxinfo">
[4437f63]434 <primary sortas="b-glxinfo">glxinfo</primary>
435 </indexterm>
436 </listitem>
437 </varlistentry>
438
[25f6d94]439 <varlistentry id="libEGL">
[a07e9eb]440 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]441 <listitem>
[eb425b4]442 <para>
[a07e9eb]443 provides a native platform graphics interface as
444 defined by the EGL-1.4 specification.
[eb425b4]445 </para>
[25f6d94]446 <indexterm zone="mesalib libEGL">
447 <primary sortas="c-libGL">libEGL.so</primary>
448 </indexterm>
449 </listitem>
450 </varlistentry>
451
[a07e9eb]452 <varlistentry id="libgbm">
453 <term><filename class="libraryfile">libgbm.so</filename></term>
454 <listitem>
455 <para>
456 is the <application>Mesa</application> Graphics Buffer
[0d7900a]457 Manager library.
[a07e9eb]458 </para>
459 <indexterm zone="mesalib libgbm">
460 <primary sortas="c-libgbm">libgbm.so</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 <varlistentry id="libGLESv1_CM">
466 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
467 <listitem>
468 <para>
469 is the <application>Mesa</application> OpenGL ES 1.1 library.
470 </para>
471 <indexterm zone="mesalib libGLESv1_CM">
472 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
473 </indexterm>
474 </listitem>
475 </varlistentry>
476
477 <varlistentry id="libGLES2">
478 <term><filename class="libraryfile">libGLES2.so</filename></term>
479 <listitem>
480 <para>
481 is the <application>Mesa</application> OpenGL ES 2.0 library.
482 </para>
483 <indexterm zone="mesalib libGLES2">
484 <primary sortas="c-libGLES2">libGLES2.so</primary>
485 </indexterm>
486 </listitem>
487 </varlistentry>
488
[ba2ac60]489 <varlistentry id="libGL">
[a07e9eb]490 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]491 <listitem>
[eb425b4]492 <para>
[a07e9eb]493 is the main <application>Mesa</application> OpenGL library.
[eb425b4]494 </para>
[ba2ac60]495 <indexterm zone="mesalib libGL">
496 <primary sortas="c-libGL">libGL.so</primary>
497 </indexterm>
498 </listitem>
499 </varlistentry>
500
501 <varlistentry id="libGLU">
[a07e9eb]502 <term><filename class="libraryfile">libGLU.so</filename></term>
[ba2ac60]503 <listitem>
[eb425b4]504 <para>
[a07e9eb]505 is the <application>Mesa</application> OpenGL
506 Utility library.
[eb425b4]507 </para>
[ba2ac60]508 <indexterm zone="mesalib libGLU">
509 <primary sortas="c-libGLU">libGLU.so</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
513
[a07e9eb]514 <varlistentry id="libOpenVG">
515 <term><filename class="libraryfile">libOpenVG.so</filename></term>
516 <listitem>
517 <para>
518 is the <application>Mesa</application> OpenVG 1.0 library.
519 </para>
520 <indexterm zone="mesalib libOpenVG">
521 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
522 </indexterm>
523 </listitem>
524 </varlistentry>
525
[2993b2f]526 <varlistentry id="libOSMesa">
527 <term><filename class="libraryfile">libOSMesa.so</filename></term>
528 <listitem>
529 <para>
530 is the <application>Mesa</application> Off-screen Rendering library.
531 </para>
532 <indexterm zone="mesalib libOSMesa">
533 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
534 </indexterm>
535 </listitem>
536 </varlistentry>
537
[bad6be19]538 <varlistentry id="libxatracker">
[a07e9eb]539 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]540 <listitem>
[eb425b4]541 <para>
[a07e9eb]542 is the Xorg Gallium3D acceleration library.
[eb425b4]543 </para>
[bad6be19]544 <indexterm zone="mesalib libxatracker">
545 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]546 </indexterm>
547 </listitem>
548 </varlistentry>
[4437f63]549 </variablelist>
550
[868c7c2]551 </sect2>
[d3ef1e4]552
[868c7c2]553</sect1>
Note: See TracBrowser for help on using the repository browser.