source: x/installing/mesalib.xml@ a7aa5be

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 a7aa5be was a7aa5be, checked in by Krejzi <krejzi@…>, 12 years ago

Typo.

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

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