source: x/installing/mesalib.xml@ deb83621

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 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 deb83621 was b194f2b, checked in by Krejzi <krejzi@…>, 11 years ago

Package updates and fixes.

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

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