source: x/installing/mesalib.xml@ 33c8d363

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

redundant mesalib rependency

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

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