source: x/installing/mesalib.xml@ efe83aa8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 efe83aa8 was efe83aa8, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

MesaLib-10.0.1: remove removed librarires: libdricore, libXvMCr300 and libXvMCsoftpipe.

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

  • Property mode set to 100644
File size: 17.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
9 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
10 <!ENTITY mesalib-md5sum "0a72ca5b36046a658bf6038326ff32ed">
11 <!ENTITY mesalib-size "6.5 MB">
12 <!ENTITY mesalib-buildsize "324 MB (additional 1 MB for the docs)">
13 <!ENTITY mesalib-time "4.2 SBU">
14
15 <!ENTITY glu-download-http " ">
16 <!ENTITY glu-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/glu/glu-&glu-version;.tar.bz2">
17 <!ENTITY glu-md5sum "be9249132ff49275461cf92039083030">
18 <!ENTITY glu-size "484 KB">
19 <!ENTITY glu-buildsize "13 MB">
20 <!ENTITY glu-time "0.2 SBU">
21]>
22
23<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
24 <?dbhtml filename="mesalib.html"?>
25
26 <sect1info>
27 <othername>$LastChangedBy$</othername>
28 <date>$Date$</date>
29 </sect1info>
30
31 <title>MesaLib-&mesalib-version;</title>
32
33 <indexterm zone="mesalib">
34 <primary sortas="a-MesaLib">MesaLib</primary>
35 </indexterm>
36
37 <sect2 role="package">
38 <title>Introduction to MesaLib</title>
39
40 <para>
41 <application>Mesa</application> is an OpenGL compatible 3D graphics
42 library.
43 </para>
44
45 &lfs74_checked;
46
47 <bridgehead renderas="sect3">Package Information</bridgehead>
48 <itemizedlist spacing="compact">
49 <listitem>
50 <para>
51 Download (HTTP): <ulink url="&mesalib-download-http;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download MD5 sum: &mesalib-md5sum;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Download size: &mesalib-size;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated disk space required: &mesalib-buildsize;
72 </para>
73 </listitem>
74 <listitem>
75 <para>
76 Estimated build time: &mesalib-time;
77 </para>
78 </listitem>
79 </itemizedlist>
80
81 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
82 <itemizedlist spacing="compact">
83 <listitem>
84 <para>
85 GLU Download (HTTP): <ulink url="&glu-download-http;"/>
86 </para>
87 </listitem>
88 <listitem>
89 <para>
90 GLU Download (FTP): <ulink url="&glu-download-ftp;"/>
91 </para>
92 </listitem>
93 <listitem>
94 <para>
95 GLU Download MD5 sum: &glu-md5sum;
96 </para>
97 </listitem>
98 <listitem>
99 <para>
100 GLU Download size: &glu-size;
101 </para>
102 </listitem>
103 <listitem>
104 <para>
105 Estimated GLU disk space required: &glu-buildsize;
106 </para>
107 </listitem>
108 <listitem>
109 <para>
110 Estimated GLU build time: &glu-time;
111 </para>
112 </listitem>
113 </itemizedlist>
114
115 <bridgehead renderas="sect3">Additional Patches</bridgehead>
116 <itemizedlist spacing="compact">
117 <listitem>
118 <para>
119 Recommended patch:
120 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
121 (Needed if testing the Xorg installation per BLFS instructions).
122 </para>
123 </listitem>
124 </itemizedlist>
125
126 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
127
128 <bridgehead renderas="sect4">Required</bridgehead>
129 <para role="required">
130 <xref linkend="expat"/>,
131 <xref linkend="libdrm"/>,
132 <xref linkend="libxml2"/>, and
133 <xref linkend="makedepend"/>
134 </para>
135
136 <bridgehead renderas="sect4">Recommended</bridgehead>
137 <para role="recommended">
138 <xref linkend="elfutils"/> (required for radeon 3d drivers),
139 <xref linkend="libvdpau"/> (to build VDPAU drivers),
140 <xref linkend="llvm"/> (required for radeon 3d drivers and also for
141 llvmpipe which is intended to be the fastest of the three sw rasterizers,
142 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink> )
143 </para>
144
145 <bridgehead renderas="sect4">Optional</bridgehead>
146 <para role="optional">
147 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
148 </para>
149
150 <note>
151 <para>
152 The instructions below assume that <application>elfutils</application>
153 and <application>LLVM</application> are installed. You will
154 need to modify the instructions if you choose not to install them.
155 Please note that <application>elfutils</application> and
156 <application>LLVM</application> are <emphasis>required</emphasis>
157 for Radeon 3D drivers. For an explanation of gallium please see
158 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"></ulink>.
159 </para>
160 </note>
161
162 <note>
163 <para>
164 The <application>libxml2</application>
165 <application>Python</application> module must have been built
166 during the installation of <application>libxml2</application>
167 or else <application>MesaLib</application> build will fail.
168 </para>
169 </note>
170
171 <para condition="html" role="usernotes">User Notes:
172 <ulink url="&blfs-wiki;/mesalib"/>
173 </para>
174 </sect2>
175
176 <sect2 role="installation">
177 <title>Installation of MesaLib</title>
178
179 <note>
180 <para>
181 Unlike other packages, the
182 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
183 archive will extract to the
184 <filename class="directory">Mesa-&mesalib-version;</filename>
185 directory.
186 </para>
187 </note>
188
189 <para>
190 If you have downloaded the recommended patch, apply it by running the
191 following command:
192 </para>
193
194<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
195
196 <para>
197 Install <application>MesaLib</application> by running the following
198 commands:
199 </para>
200
201<screen><userinput>./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
202 --prefix=$XORG_PREFIX \
203 --sysconfdir=/etc \
204 --enable-texture-float \
205 --enable-gles1 \
206 --enable-gles2 \
207 --enable-openvg \
208 --enable-osmesa \
209 --enable-xa \
210 --enable-gbm \
211 --enable-gallium-egl \
212 --enable-gallium-gbm \
213 --enable-glx-tls \
214 --with-llvm-shared-libs \
215 --with-egl-platforms="drm,x11" \
216 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
217make</userinput></screen>
218
219 <para>
220 If you have applied the recommended patch, build the demo programs by
221 running the following command:
222 </para>
223
224<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
225
226 <para>
227 This package does not come with a test suite.
228 </para>
229
230 <para>
231 Now, as the <systemitem class="username">root</systemitem> user:
232 </para>
233
234<screen role="root"><userinput>make install</userinput></screen>
235
236 <para>
237 If you have built the demo programs, install them by running the
238 following command as the
239 <systemitem class="username">root</systemitem> user:
240 </para>
241
242<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
243
244 <para>
245 If desired, install the optional documentation by running
246 the following commands as the
247 <systemitem class="username">root</systemitem> user:
248 </para>
249
250<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
251cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
252
253 </sect2>
254
255 <sect2 role="installation">
256 <title>Installation of GLU</title>
257
258 <para>
259 Install <application>GLU</application> by running the following
260 commands:
261 </para>
262
263<screen><userinput>./configure --prefix=$XORG_PREFIX --disable-static &amp;&amp;
264make</userinput></screen>
265
266 <para>
267 This package does not come with a test suite.
268 </para>
269
270 <para>
271 Now, as the <systemitem class="username">root</systemitem> user:
272 </para>
273
274<screen role="root"><userinput>make install</userinput></screen>
275
276 </sect2>
277
278 <sect2 role="commands">
279 <title>Command Explanations</title>
280
281 <para>
282 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
283 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
284 "-g -O2". That results in binaries and libraries being built with
285 debugging symbols which make them bigger. Override the default
286 flags to omit -g compiler flag so the final libraries are smaller.
287 </para>
288
289 <para>
290 <option>--enable-texture-float</option>: This switch enables
291 floating-point textures and render buffers. Please consult
292 <filename>docs/patents.txt</filename> to see if there are
293 any legal issues if you use this feature.
294 </para>
295
296 <para>
297 <option>--enable-gles1</option>: This switch enables support for
298 OpenGL ES 1.x API.
299 </para>
300
301 <para>
302 <option>--enable-gles2</option>: This switch enables support for
303 OpenGL ES 2.x API.
304 </para>
305
306 <para>
307 <option>--enable-openvg</option>: This switch enables support for
308 OpenVG API.
309 </para>
310
311 <para>
312 <option>--enable-osmesa</option>: This switch enables building of
313 the <filename class="libraryfile">libOSMesa</filename> library.
314 </para>
315
316 <para>
317 <option>--enable-xa</option>: This switch enables building of the
318 XA X Acceleration API (Required for VMware 3D Driver).
319 </para>
320
321 <para>
322 <option>--enable-gbm</option>: This switch enables building of the
323 <application>Mesa</application> Graphics Buffer Manager library.
324 </para>
325
326 <para>
327 <option>--enable-gallium-egl</option>: This switch enables optional
328 EGL state tracker for Gallium.
329 </para>
330
331 <para>
332 <option>--enable-gallium-gbm</option>: This switch enables optional
333 GBM state tracker for Gallium.
334 </para>
335
336 <para>
337 <option>--enable-glx-tls</option>: This switch enables TLS (Thread Local
338 Storage) support in GLX.
339 </para>
340
341 <para>
342 <option>--with-llvm-shared-libs</option>: This switch is used so
343 Gallium drivers will link against shared
344 <application>LLVM</application> libraries instead of the static
345 ones. Remove if you did not install <application>LLVM</application>.
346 </para>
347
348 <para>
349 <parameter>--with-egl-platforms="..."</parameter>: This parameter
350 controls for which platforms EGL should be built. Available
351 platforms are drm, x11 and wayland.
352 </para>
353
354 <para>
355 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
356 controls which Gallium drivers should be built. Available drivers
357 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
358 will need to remove r300, r600 and radeonsi from the list if you did
359 not install <application>elfutils</application> and
360 <application>LLVM</application>.
361 </para>
362
363 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
364 href="../../xincludes/static-libraries.xml"/>
365
366 <para>
367 <option>--enable-r600-llvm-compiler</option>: Use this switch to
368 enable experimental R600 <application>LLVM</application> backend
369 for graphics shaders which claims to speed up the driver.
370 </para>
371
372 </sect2>
373
374 <sect2 role="content">
375 <title>Contents</title>
376
377 <segmentedlist>
378 <segtitle>Installed Programs</segtitle>
379 <segtitle>Installed Libraries</segtitle>
380 <segtitle>Installed Directories</segtitle>
381
382 <seglistitem>
383 <seg>
384 glxgears and glxinfo
385 </seg>
386 <seg>
387 libEGL.so, libgbm.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so,
388 libGL.so, libGLU.so, libOpenVG.so, libOSMesa.so, libxatracker.so,
389 libXvMCnouveau.so and libXvMCr600.so
390 </seg>
391 <seg>
392 $XORG_PREFIX/include/EGL,
393 $XORG_PREFIX/include/GLES,
394 $XORG_PREFIX/include/GLES2,
395 $XORG_PREFIX/include/GLES3,
396 $XORG_PREFIX/include/KHR,
397 $XORG_PREFIX/include/VG,
398 $XORG_PREFIX/lib/dri,
399 $XORG_PREFIX/lib/egl,
400 $XORG_PREFIX/lib/gallium-pipe,
401 $XORG_PREFIX/lib/gbm,
402 $XORG_PREFIX/lib/vdpau and
403 /usr/share/doc/MesaLib-&mesalib-version; (optional)
404 </seg>
405 </seglistitem>
406 </segmentedlist>
407
408 <variablelist>
409 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
410 <?dbfo list-presentation="list"?>
411 <?dbhtml list-presentation="table"?>
412
413 <varlistentry id="glxgears">
414 <term><command>glxgears</command></term>
415 <listitem>
416 <para>
417 is a GL demo useful for troubleshooting graphics
418 problems.
419 </para>
420 <indexterm zone="mesalib glxgears">
421 <primary sortas="b-glxgears">glxgears</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="glxinfo">
427 <term><command>glxinfo</command></term>
428 <listitem>
429 <para>
430 is a diagnostic program that displays information about the
431 graphics hardware and installed GL libraries.
432 </para>
433 <indexterm zone="mesalib glxinfo">
434 <primary sortas="b-glxinfo">glxinfo</primary>
435 </indexterm>
436 </listitem>
437 </varlistentry>
438
439 <varlistentry id="libEGL">
440 <term><filename class="libraryfile">libEGL.so</filename></term>
441 <listitem>
442 <para>
443 provides a native platform graphics interface as
444 defined by the EGL-1.4 specification.
445 </para>
446 <indexterm zone="mesalib libEGL">
447 <primary sortas="c-libGL">libEGL.so</primary>
448 </indexterm>
449 </listitem>
450 </varlistentry>
451
452 <varlistentry id="libgbm">
453 <term><filename class="libraryfile">libgbm.so</filename></term>
454 <listitem>
455 <para>
456 is the <application>Mesa</application> Graphics Buffer
457 Manager library.
458 </para>
459 <indexterm zone="mesalib libgbm">
460 <primary sortas="c-libgbm">libgbm.so</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 <varlistentry id="libGLESv1_CM">
466 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
467 <listitem>
468 <para>
469 is the <application>Mesa</application> OpenGL ES 1.1 library.
470 </para>
471 <indexterm zone="mesalib libGLESv1_CM">
472 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
473 </indexterm>
474 </listitem>
475 </varlistentry>
476
477 <varlistentry id="libGLES2">
478 <term><filename class="libraryfile">libGLES2.so</filename></term>
479 <listitem>
480 <para>
481 is the <application>Mesa</application> OpenGL ES 2.0 library.
482 </para>
483 <indexterm zone="mesalib libGLES2">
484 <primary sortas="c-libGLES2">libGLES2.so</primary>
485 </indexterm>
486 </listitem>
487 </varlistentry>
488
489 <varlistentry id="libGL">
490 <term><filename class="libraryfile">libGL.so</filename></term>
491 <listitem>
492 <para>
493 is the main <application>Mesa</application> OpenGL library.
494 </para>
495 <indexterm zone="mesalib libGL">
496 <primary sortas="c-libGL">libGL.so</primary>
497 </indexterm>
498 </listitem>
499 </varlistentry>
500
501 <varlistentry id="libGLU">
502 <term><filename class="libraryfile">libGLU.so</filename></term>
503 <listitem>
504 <para>
505 is the <application>Mesa</application> OpenGL
506 Utility library.
507 </para>
508 <indexterm zone="mesalib libGLU">
509 <primary sortas="c-libGLU">libGLU.so</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
513
514 <varlistentry id="libOpenVG">
515 <term><filename class="libraryfile">libOpenVG.so</filename></term>
516 <listitem>
517 <para>
518 is the <application>Mesa</application> OpenVG 1.0 library.
519 </para>
520 <indexterm zone="mesalib libOpenVG">
521 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
522 </indexterm>
523 </listitem>
524 </varlistentry>
525
526 <varlistentry id="libOSMesa">
527 <term><filename class="libraryfile">libOSMesa.so</filename></term>
528 <listitem>
529 <para>
530 is the <application>Mesa</application> Off-screen Rendering library.
531 </para>
532 <indexterm zone="mesalib libOSMesa">
533 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
534 </indexterm>
535 </listitem>
536 </varlistentry>
537
538 <varlistentry id="libxatracker">
539 <term><filename class="libraryfile">libxatracker.so</filename></term>
540 <listitem>
541 <para>
542 is the Xorg Gallium3D acceleration library.
543 </para>
544 <indexterm zone="mesalib libxatracker">
545 <primary sortas="c-libxatracker">libxatracker.so</primary>
546 </indexterm>
547 </listitem>
548 </varlistentry>
549 </variablelist>
550
551 </sect2>
552
553</sect1>
Note: See TracBrowser for help on using the repository browser.