source: x/installing/mesalib.xml@ 4f9d1df6

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 4f9d1df6 was 4f9d1df6, checked in by Krejzi <krejzi@…>, 11 years ago

minor fix.

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

  • Property mode set to 100644
File size: 15.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY mesalib-download-http " ">
8 <!ENTITY mesalib-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
9 <!ENTITY mesalib-md5sum "97d6554c05ea7449398afe3a0ede7018">
10 <!ENTITY mesalib-size "5.9 MB">
11 <!ENTITY mesalib-buildsize "1.7 GB">
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">
20]>
21
22<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
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
32 <indexterm zone="mesalib">
33 <primary sortas="a-MesaLib">MesaLib</primary>
34 </indexterm>
35
36 <sect2 role="package">
37 <title>Introduction to MesaLib</title>
38
39 <para>
40 <application>Mesa</application> is an OpenGL compatible 3D graphics
41 library.
42 </para>
43
44 &lfs72_checked;
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>
50 Download (HTTP): <ulink url="&mesalib-download-http;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download MD5 sum: &mesalib-md5sum;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Download size: &mesalib-size;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated disk space required: &mesalib-buildsize;
71 </para>
72 </listitem>
73 <listitem>
74 <para>
75 Estimated build time: &mesalib-time;
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
81 <itemizedlist spacing="compact">
82 <listitem>
83 <para>
84 GLU Download (HTTP): <ulink url="&glu-download-http;"/>
85 </para>
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>
117 <para>
118 Recommended patch:
119 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-5.patch"/>
120 (Needed if testing the Xorg installation per BLFS instructions).
121 </para>
122 </listitem>
123 </itemizedlist>
124
125 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
126
127 <bridgehead renderas="sect4">Required</bridgehead>
128 <para role="required">
129 <xref linkend="expat"/>,
130 <xref linkend="libdrm"/>,
131 <xref linkend="libxml2"/>,
132 <xref linkend="makedepend"/> and
133 <xref linkend="xorg7-lib"/>
134 </para>
135
136 <bridgehead renderas="sect4">Recommended</bridgehead>
137 <para role="recommended">
138 <xref linkend="llvm"/>
139 </para>
140
141 <note>
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>
148 </note>
149
150 <para condition="html" role="usernotes">User Notes:
151 <ulink url="&blfs-wiki;/mesalib"/>
152 </para>
153 </sect2>
154
155 <sect2 role="installation">
156 <title>Installation of MesaLib</title>
157
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>
167
168 <para>
169 If you have downloaded the recommended patch, apply it by running the
170 following command:
171 </para>
172
173<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-5.patch</userinput></screen>
174
175 <para>
176 Install <application>MesaLib</application> by running the following
177 commands:
178 </para>
179
180<screen><userinput>autoreconf -fi &amp;&amp;
181./configure --prefix=/usr \
182 --sysconfdir=/etc \
183 --enable-texture-float \
184 --enable-gles1 \
185 --enable-gles2 \
186 --enable-openvg \
187 --enable-osmesa \
188 --enable-xa \
189 --enable-gbm \
190 --enable-gallium-egl \
191 --enable-gallium-gbm \
192 --enable-glx-tls \
193 --with-egl-platforms="drm,x11" \
194 --with-gallium-drivers="nouveau,r300,r600,svga,swrast" &amp;&amp;
195make</userinput></screen>
196
197 <para>
198 If you have applied the recommended patch, build the demo programs by
199 running the following command:
200 </para>
201
202<screen><userinput>make -C xdemos DEMOS_PREFIX=/usr</userinput></screen>
203
204 <para>
205 This package does not come with a test suite.
206 </para>
207
208 <para>
209 Now, as the <systemitem class="username">root</systemitem> user:
210 </para>
211
212<screen role="root"><userinput>make install</userinput></screen>
213
214 <para>
215 If you have built the demo programs, install them by running the
216 following command as the
217 <systemitem class="username">root</systemitem> user:
218 </para>
219
220<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=/usr install</userinput></screen>
221
222 <para>
223 If you would like to save some space, strip the installed libraries
224 by running the following commands as the
225 <systemitem class="username">root</systemitem> user:
226 </para>
227
228<screen role="root"><userinput>strip --strip-unneeded /usr/lib/{dri,egl,gbm}/*.so &amp;&amp;
229strip --strip-unneeded /usr/lib/libdricore&mesalib-version;.so.* &amp;&amp;
230strip --strip-unneeded /usr/lib/libxatracker.so.*</userinput></screen>
231
232 <para>
233 If desired, install the optional documentation by running
234 the following commands as the
235 <systemitem class="username">root</systemitem> user:
236 </para>
237
238<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
239cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
240
241 </sect2>
242
243 <sect2 role="installation">
244 <title>Installation of GLU</title>
245
246 <para>
247 Install <application>GLU</application> by running the following
248 commands:
249 </para>
250
251<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
252make</userinput></screen>
253
254 <para>
255 This package does not come with a test suite.
256 </para>
257
258 <para>
259 Now, as the <systemitem class="username">root</systemitem> user:
260 </para>
261
262<screen role="root"><userinput>make install</userinput></screen>
263
264 </sect2>
265
266 <sect2 role="commands">
267 <title>Command Explanations</title>
268
269 <para>
270 <option>--enable-texture-float</option>: This switch enables
271 floating-point textures and render buffers. Please consult
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>
282 <option>--enable-gles2</option>: This switch enables support for
283 OpenGL ES 2.x API.
284 </para>
285
286 <para>
287 <option>--enable-openvg</option>: This switch enables support for
288 OpenVG API.
289 </para>
290
291 <para>
292 <option>--enable-osmesa</option>: This switch enables building of
293 the <filename class="library">libOSMesa</filename> library.
294 </para>
295
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>
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.
309 </para>
310
311 <para>
312 <option>--enable-gallium-gbm</option>: This switch enables optional
313 GBM state tracker for Gallium.
314 </para>
315
316 <para>
317 <option>--enable-glx-tls</option>: This switch enables TLS support
318 in GLX.
319 </para>
320
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
327 <para>
328 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
329 controls which Gallium drivers should be built. Available drivers
330 are: i915, nouveau, r300, r600, svga and swrast. You will need to
331 remove r300, r600 and from the list if you did not install
332 <xref linkend="llvm"/>.
333 </para>
334
335 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
336 href="../../xincludes/static-libraries.xml"/>
337
338 </sect2>
339
340 <sect2 role="content">
341 <title>Contents</title>
342
343 <segmentedlist>
344 <segtitle>Optionally Installed Programs</segtitle>
345 <segtitle>Installed Libraries</segtitle>
346 <segtitle>Installed Directories</segtitle>
347
348 <seglistitem>
349 <seg>
350 glxgears and glxinfo
351 </seg>
352 <seg>
353 libdricore9.0.0.so, libEGL.so, libgbm.so, libglapi.so,
354 libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so,
355 libOpenVG.so, libOSMesa.so and libxatracker.so
356 </seg>
357 <seg>
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
365 </seg>
366 </seglistitem>
367 </segmentedlist>
368
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>
377 <para>
378 is a GL demo useful for troubleshooting graphics
379 problems.
380 </para>
381 <indexterm zone="mesalib glxgears">
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>
390 <para>
391 is a diagnostic program that displays information about the
392 graphics hardware and installed GL libraries.
393 </para>
394 <indexterm zone="mesalib glxinfo">
395 <primary sortas="b-glxinfo">glxinfo</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
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
413 <varlistentry id="libEGL">
414 <term><filename class="libraryfile">libEGL.so</filename></term>
415 <listitem>
416 <para>
417 provides a native platform graphics interface as
418 defined by the EGL-1.4 specification.
419 </para>
420 <indexterm zone="mesalib libEGL">
421 <primary sortas="c-libGL">libEGL.so</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
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
431 Manager library.
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
463 <varlistentry id="libGL">
464 <term><filename class="libraryfile">libGL.so</filename></term>
465 <listitem>
466 <para>
467 is the main <application>Mesa</application> OpenGL library.
468 </para>
469 <indexterm zone="mesalib libGL">
470 <primary sortas="c-libGL">libGL.so</primary>
471 </indexterm>
472 </listitem>
473 </varlistentry>
474
475 <varlistentry id="libGLU">
476 <term><filename class="libraryfile">libGLU.so</filename></term>
477 <listitem>
478 <para>
479 is the <application>Mesa</application> OpenGL
480 Utility library.
481 </para>
482 <indexterm zone="mesalib libGLU">
483 <primary sortas="c-libGLU">libGLU.so</primary>
484 </indexterm>
485 </listitem>
486 </varlistentry>
487
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
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
512 <varlistentry id="libxatracker">
513 <term><filename class="libraryfile">libxatracker.so</filename></term>
514 <listitem>
515 <para>
516 is the Xorg Gallium3D acceleration library.
517 </para>
518 <indexterm zone="mesalib libxatracker">
519 <primary sortas="c-libxatracker">libxatracker.so</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523 </variablelist>
524
525 </sect2>
526
527</sect1>
Note: See TracBrowser for help on using the repository browser.