source: x/installing/mesalib.xml@ 0d7900a

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 0d7900a was 0d7900a, checked in by Randy McMurchy <randy@…>, 11 years ago

Removed extraneous spaces from blank lines and at the end of lines in the .xml

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

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