source: x/installing/mesalib.xml@ f1fc499

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 f1fc499 was f1fc499, checked in by Ragnar Thomsen <rthomsen@…>, 11 years ago

KDE 4.9.3

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

  • Property mode set to 100644
File size: 15.5 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-4.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"/></para>
152
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-4.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-xa \
188 --enable-gbm \
189 --enable-gallium-egl \
190 --enable-gallium-gbm \
191 --enable-r600-llvm-compiler \
192 --enable-glx-tls \
193 --with-egl-platforms="drm,x11" \
194 --with-gallium-drivers="nouveau,r300,r600,radeonsi,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-xa</option>: This switch enables building of the
293 XA X Acceleration API (Required for VMware 3D Driver).
294 </para>
295
296 <para>
297 <option>--enable-gbm</option>: This switch enables building of the
298 <application>Mesa</application> Graphics Buffer Manager library.
299 </para>
300
301 <para>
302 <option>--enable-gallium-egl</option>: This switch enables optional
303 EGL state tracker for Gallium.
304 </para>
305
306 <para>
307 <option>--enable-gallium-gbm</option>: This switch enables optional
308 GBM state tracker for Gallium.
309 </para>
310
311 <para>
312 <option>--enable-r600-llvm-compiler</option>: This switch enables
313 experimental LLVM backend for graphics shaders. Remove it if you
314 did not install <xref linkend="llvm"/>.
315 </para>
316
317 <para>
318 <option>--enable-glx-tls</option>: This switch enables TLS support
319 in GLX.
320 </para>
321
322 <para>
323 <parameter>--with-egl-platforms="..."</parameter>: This parameter
324 controls for which platforms EGL should be built. Available
325 platforms are drm, x11 and wayland.
326 </para>
327
328 <para>
329 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
330 controls which Gallium drivers should be built. Available drivers
331 are: i915, nouveau, r300, r600, radeonsi, svga and swrast. You will
332 need to remove r300, r600 and radeonsi from the list if you did
333 not install <xref linkend="llvm"/>.
334 </para>
335
336 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
337 href="../../xincludes/static-libraries.xml"/>
338
339 </sect2>
340
341 <sect2 role="content">
342 <title>Contents</title>
343
344 <segmentedlist>
345 <segtitle>Optionally Installed Programs</segtitle>
346 <segtitle>Installed Libraries</segtitle>
347 <segtitle>Installed Directories</segtitle>
348
349 <seglistitem>
350 <seg>
351 glxgears and glxinfo
352 </seg>
353 <seg>
354 libdricore9.0.0.so, libEGL.so, libgbm.so, libglapi.so,
355 libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so,
356 libOpenVG.so and libxatracker.so
357 </seg>
358 <seg>
359 /usr/include/EGL,
360 /usr/include/GL,
361 /usr/include/GLES,
362 /usr/include/GLES2,
363 /usr/include/KHR,
364 /usr/include/VG and
365 /usr/lib/dri
366 </seg>
367 </seglistitem>
368 </segmentedlist>
369
370 <variablelist>
371 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
372 <?dbfo list-presentation="list"?>
373 <?dbhtml list-presentation="table"?>
374
375 <varlistentry id="glxgears">
376 <term><filename>glxgears</filename></term>
377 <listitem>
378 <para>
379 is a GL demo useful for troubleshooting graphics
380 problems.
381 </para>
382 <indexterm zone="mesalib glxgears">
383 <primary sortas="b-glxgears">glxgears</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
388 <varlistentry id="glxinfo">
389 <term><filename>glxinfo</filename></term>
390 <listitem>
391 <para>
392 is a diagnostic program that displays information about the
393 graphics hardware and installed GL libraries.
394 </para>
395 <indexterm zone="mesalib glxinfo">
396 <primary sortas="b-glxinfo">glxinfo</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="libdricore">
402 <term><filename class="libraryfile">libdricore9.0.0.so</filename></term>
403 <listitem>
404 <para>
405 contains common DRI routines used by <application>Mesa</application>
406 DRI drivers.
407 </para>
408 <indexterm zone="mesalib libdricore">
409 <primary sortas="c-libdricore">libdricore9.0.0.so</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="libEGL">
415 <term><filename class="libraryfile">libEGL.so</filename></term>
416 <listitem>
417 <para>
418 provides a native platform graphics interface as
419 defined by the EGL-1.4 specification.
420 </para>
421 <indexterm zone="mesalib libEGL">
422 <primary sortas="c-libGL">libEGL.so</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry id="libgbm">
428 <term><filename class="libraryfile">libgbm.so</filename></term>
429 <listitem>
430 <para>
431 is the <application>Mesa</application> Graphics Buffer
432 Manager library.
433 </para>
434 <indexterm zone="mesalib libgbm">
435 <primary sortas="c-libgbm">libgbm.so</primary>
436 </indexterm>
437 </listitem>
438 </varlistentry>
439
440 <varlistentry id="libGLESv1_CM">
441 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
442 <listitem>
443 <para>
444 is the <application>Mesa</application> OpenGL ES 1.1 library.
445 </para>
446 <indexterm zone="mesalib libGLESv1_CM">
447 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
448 </indexterm>
449 </listitem>
450 </varlistentry>
451
452 <varlistentry id="libGLES2">
453 <term><filename class="libraryfile">libGLES2.so</filename></term>
454 <listitem>
455 <para>
456 is the <application>Mesa</application> OpenGL ES 2.0 library.
457 </para>
458 <indexterm zone="mesalib libGLES2">
459 <primary sortas="c-libGLES2">libGLES2.so</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="libGL">
465 <term><filename class="libraryfile">libGL.so</filename></term>
466 <listitem>
467 <para>
468 is the main <application>Mesa</application> OpenGL library.
469 </para>
470 <indexterm zone="mesalib libGL">
471 <primary sortas="c-libGL">libGL.so</primary>
472 </indexterm>
473 </listitem>
474 </varlistentry>
475
476 <varlistentry id="libGLU">
477 <term><filename class="libraryfile">libGLU.so</filename></term>
478 <listitem>
479 <para>
480 is the <application>Mesa</application> OpenGL
481 Utility library.
482 </para>
483 <indexterm zone="mesalib libGLU">
484 <primary sortas="c-libGLU">libGLU.so</primary>
485 </indexterm>
486 </listitem>
487 </varlistentry>
488
489 <varlistentry id="libOpenVG">
490 <term><filename class="libraryfile">libOpenVG.so</filename></term>
491 <listitem>
492 <para>
493 is the <application>Mesa</application> OpenVG 1.0 library.
494 </para>
495 <indexterm zone="mesalib libOpenVG">
496 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
497 </indexterm>
498 </listitem>
499 </varlistentry>
500
501 <varlistentry id="libxatracker">
502 <term><filename class="libraryfile">libxatracker.so</filename></term>
503 <listitem>
504 <para>
505 is the Xorg Gallium3D acceleration library.
506 </para>
507 <indexterm zone="mesalib libxatracker">
508 <primary sortas="c-libxatracker">libxatracker.so</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
512 </variablelist>
513
514 </sect2>
515
516</sect1>
Note: See TracBrowser for help on using the repository browser.