source: x/installing/mesalib.xml@ fd2f9a2

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

MesaLib 9.1.

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

  • Property mode set to 100644
File size: 16.6 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 "d3891e02215422e120271d976ff1947e">
10 <!ENTITY mesalib-size "5.9 MB">
11 <!ENTITY mesalib-buildsize "305 MB">
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-1.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 <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
151 <note>
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>
158 </note>
159
160 <para condition="html" role="usernotes">User Notes:
161 <ulink url="&blfs-wiki;/mesalib"/>
162 </para>
163 </sect2>
164
165 <sect2 role="installation">
166 <title>Installation of MesaLib</title>
167
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>
177
178 <para>
179 If you have downloaded the recommended patch, apply it by running the
180 following command:
181 </para>
182
183<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
184
185 <para>
186 Install <application>MesaLib</application> by running the following
187 commands:
188 </para>
189
190<screen><userinput>autoreconf -fi &amp;&amp;
191./configure CFLAGS="-O2" CXXFLAGS="-O2" \
192 --prefix=/usr \
193 --sysconfdir=/etc \
194 --enable-texture-float \
195 --enable-gles1 \
196 --enable-gles2 \
197 --enable-openvg \
198 --enable-osmesa \
199 --enable-xa \
200 --enable-gbm \
201 --enable-gallium-egl \
202 --enable-gallium-gbm \
203 --enable-glx-tls \
204 --with-llvm-shared-libs \
205 --with-egl-platforms="drm,x11" \
206 --with-gallium-drivers="nouveau,r300,r600,svga,swrast" &amp;&amp;
207make</userinput></screen>
208
209 <para>
210 If you have applied the recommended patch, build the demo programs by
211 running the following command:
212 </para>
213
214<screen><userinput>make -C xdemos DEMOS_PREFIX=/usr</userinput></screen>
215
216 <para>
217 This package does not come with a test suite.
218 </para>
219
220 <para>
221 Now, as the <systemitem class="username">root</systemitem> user:
222 </para>
223
224<screen role="root"><userinput>make install</userinput></screen>
225
226 <para>
227 If you have built the demo programs, install them by running the
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
234 <para>
235 If desired, install the optional documentation by running
236 the following commands as the
237 <systemitem class="username">root</systemitem> user:
238 </para>
239
240<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
241cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
242
243 </sect2>
244
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>
259
260 <para>
261 Now, as the <systemitem class="username">root</systemitem> user:
262 </para>
263
264<screen role="root"><userinput>make install</userinput></screen>
265
266 </sect2>
267
268 <sect2 role="commands">
269 <title>Command Explanations</title>
270
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
275 debugging symbols which make them bigger. Override the default
276 flags to omit -g switch so the final libraries are smaller.
277 </para>
278
279 <para>
280 <option>--enable-texture-float</option>: This switch enables
281 floating-point textures and render buffers. Please consult
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>
292 <option>--enable-gles2</option>: This switch enables support for
293 OpenGL ES 2.x API.
294 </para>
295
296 <para>
297 <option>--enable-openvg</option>: This switch enables support for
298 OpenVG API.
299 </para>
300
301 <para>
302 <option>--enable-osmesa</option>: This switch enables building of
303 the <filename class="libraryfile">libOSMesa</filename> library.
304 </para>
305
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>
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.
319 </para>
320
321 <para>
322 <option>--enable-gallium-gbm</option>: This switch enables optional
323 GBM state tracker for Gallium.
324 </para>
325
326 <para>
327 <option>--enable-glx-tls</option>: This switch enables TLS support
328 in GLX.
329 </para>
330
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
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
344 <para>
345 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
346 controls which Gallium drivers should be built. Available drivers
347 are: i915, nouveau, r300, r600, svga and swrast. You will need to
348 remove r300 and r600 from the list if you did not install
349 <xref linkend="llvm"/>.
350 </para>
351
352 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
353 href="../../xincludes/static-libraries.xml"/>
354
355 </sect2>
356
357 <sect2 role="content">
358 <title>Contents</title>
359
360 <segmentedlist>
361 <segtitle>Optionally Installed Programs</segtitle>
362 <segtitle>Installed Libraries</segtitle>
363 <segtitle>Installed Directories</segtitle>
364
365 <seglistitem>
366 <seg>
367 glxgears and glxinfo
368 </seg>
369 <seg>
370 libdricore9.1.0.so, libEGL.so, libgbm.so, libglapi.so,
371 libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so,
372 libOpenVG.so, libOSMesa.so and libxatracker.so
373 </seg>
374 <seg>
375 /usr/include/EGL,
376 /usr/include/GL,
377 /usr/include/GLES,
378 /usr/include/GLES2,
379 /usr/include/GLES3,
380 /usr/include/KHR,
381 /usr/include/VG,
382 /usr/lib/dri,
383 /usr/lib/egl,
384 /usr/lib/gallium-pipe and
385 /usr/lib/gbm
386 </seg>
387 </seglistitem>
388 </segmentedlist>
389
390 <variablelist>
391 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
392 <?dbfo list-presentation="list"?>
393 <?dbhtml list-presentation="table"?>
394
395 <varlistentry id="glxgears">
396 <term><filename>glxgears</filename></term>
397 <listitem>
398 <para>
399 is a GL demo useful for troubleshooting graphics
400 problems.
401 </para>
402 <indexterm zone="mesalib glxgears">
403 <primary sortas="b-glxgears">glxgears</primary>
404 </indexterm>
405 </listitem>
406 </varlistentry>
407
408 <varlistentry id="glxinfo">
409 <term><filename>glxinfo</filename></term>
410 <listitem>
411 <para>
412 is a diagnostic program that displays information about the
413 graphics hardware and installed GL libraries.
414 </para>
415 <indexterm zone="mesalib glxinfo">
416 <primary sortas="b-glxinfo">glxinfo</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 <varlistentry id="libdricore">
422 <term><filename class="libraryfile">libdricore9.1.0.so</filename></term>
423 <listitem>
424 <para>
425 contains common DRI routines used by <application>Mesa</application>
426 DRI drivers.
427 </para>
428 <indexterm zone="mesalib libdricore">
429 <primary sortas="c-libdricore">libdricore9.1.0.so</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="libEGL">
435 <term><filename class="libraryfile">libEGL.so</filename></term>
436 <listitem>
437 <para>
438 provides a native platform graphics interface as
439 defined by the EGL-1.4 specification.
440 </para>
441 <indexterm zone="mesalib libEGL">
442 <primary sortas="c-libGL">libEGL.so</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="libgbm">
448 <term><filename class="libraryfile">libgbm.so</filename></term>
449 <listitem>
450 <para>
451 is the <application>Mesa</application> Graphics Buffer
452 Manager library.
453 </para>
454 <indexterm zone="mesalib libgbm">
455 <primary sortas="c-libgbm">libgbm.so</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
460 <varlistentry id="libGLESv1_CM">
461 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
462 <listitem>
463 <para>
464 is the <application>Mesa</application> OpenGL ES 1.1 library.
465 </para>
466 <indexterm zone="mesalib libGLESv1_CM">
467 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="libGLES2">
473 <term><filename class="libraryfile">libGLES2.so</filename></term>
474 <listitem>
475 <para>
476 is the <application>Mesa</application> OpenGL ES 2.0 library.
477 </para>
478 <indexterm zone="mesalib libGLES2">
479 <primary sortas="c-libGLES2">libGLES2.so</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="libGL">
485 <term><filename class="libraryfile">libGL.so</filename></term>
486 <listitem>
487 <para>
488 is the main <application>Mesa</application> OpenGL library.
489 </para>
490 <indexterm zone="mesalib libGL">
491 <primary sortas="c-libGL">libGL.so</primary>
492 </indexterm>
493 </listitem>
494 </varlistentry>
495
496 <varlistentry id="libGLU">
497 <term><filename class="libraryfile">libGLU.so</filename></term>
498 <listitem>
499 <para>
500 is the <application>Mesa</application> OpenGL
501 Utility library.
502 </para>
503 <indexterm zone="mesalib libGLU">
504 <primary sortas="c-libGLU">libGLU.so</primary>
505 </indexterm>
506 </listitem>
507 </varlistentry>
508
509 <varlistentry id="libOpenVG">
510 <term><filename class="libraryfile">libOpenVG.so</filename></term>
511 <listitem>
512 <para>
513 is the <application>Mesa</application> OpenVG 1.0 library.
514 </para>
515 <indexterm zone="mesalib libOpenVG">
516 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
517 </indexterm>
518 </listitem>
519 </varlistentry>
520
521 <varlistentry id="libOSMesa">
522 <term><filename class="libraryfile">libOSMesa.so</filename></term>
523 <listitem>
524 <para>
525 is the <application>Mesa</application> Off-screen Rendering library.
526 </para>
527 <indexterm zone="mesalib libOSMesa">
528 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
529 </indexterm>
530 </listitem>
531 </varlistentry>
532
533 <varlistentry id="libxatracker">
534 <term><filename class="libraryfile">libxatracker.so</filename></term>
535 <listitem>
536 <para>
537 is the Xorg Gallium3D acceleration library.
538 </para>
539 <indexterm zone="mesalib libxatracker">
540 <primary sortas="c-libxatracker">libxatracker.so</primary>
541 </indexterm>
542 </listitem>
543 </varlistentry>
544 </variablelist>
545
546 </sect2>
547
548</sect1>
Note: See TracBrowser for help on using the repository browser.