source: x/installing/mesalib.xml@ 1ff8e00

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 1ff8e00 was 1ff8e00, checked in by Igor Živković <igor@…>, 11 years ago

prevent questions to remove write protected files in xorg installation

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11750 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 "ftp://ftp.freedesktop.org/pub/mesa/9.2/MesaLib-&mesalib-version;.tar.bz2">
9 <!ENTITY mesalib-md5sum "4185b6aae890bc62a964f4b24cc1aca8">
10 <!ENTITY mesalib-size "6.4 MB">
11 <!ENTITY mesalib-buildsize "420 MB">
12 <!ENTITY mesalib-time "5.0 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 &lfs74_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"/>, and
132 <xref linkend="makedepend"/>
133 </para>
134
135 <bridgehead renderas="sect4">Recommended</bridgehead>
136 <para role="recommended">
137 <xref linkend="elfutils"/>,
138 <xref linkend="libvdpau"/> (to build VDPAU drivers) and
139 <xref linkend="llvm"/>
140 </para>
141
142 <bridgehead renderas="sect4">Optional</bridgehead>
143 <para role="optional">
144 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
145 </para>
146
147 <warning>
148 <para>
149 The instructions below assume that <application>elfutils</application>
150 and <application>LLVM</application> are installed. You will
151 need to modify the instructions if you choose not to install them.
152 Please note that <application>elfutils</application> and
153 <application>LLVM</application> are <emphasis>required</emphasis>
154 for Radeon 3D drivers.
155 </para>
156 </warning>
157
158 <note>
159 <para>
160 The <application>libxml2</application>
161 <application>Python</application> module must have been built
162 during the installation of <application>libxml2</application>
163 or else <application>MesaLib</application> build will fail.
164 </para>
165 </note>
166
167 <para condition="html" role="usernotes">User Notes:
168 <ulink url="&blfs-wiki;/mesalib"/>
169 </para>
170 </sect2>
171
172 <sect2 role="installation">
173 <title>Installation of MesaLib</title>
174
175 <note>
176 <para>
177 Unlike other packages, the
178 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
179 archive will extract to the
180 <filename class="directory">Mesa-&mesalib-version;</filename>
181 directory.
182 </para>
183 </note>
184
185 <para>
186 If you have downloaded the recommended patch, apply it by running the
187 following command:
188 </para>
189
190<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
191
192 <para>
193 Install <application>MesaLib</application> by running the following
194 commands:
195 </para>
196
197<screen><userinput>autoreconf -fi &amp;&amp;
198./configure CFLAGS="-O2" CXXFLAGS="-O2" \
199 --prefix=$XORG_PREFIX \
200 --sysconfdir=/etc \
201 --enable-texture-float \
202 --enable-gles1 \
203 --enable-gles2 \
204 --enable-openvg \
205 --enable-osmesa \
206 --enable-xa \
207 --enable-gbm \
208 --enable-gallium-egl \
209 --enable-gallium-gbm \
210 --enable-glx-tls \
211 --with-llvm-shared-libs \
212 --with-egl-platforms="drm,x11" \
213 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
214make</userinput></screen>
215
216 <para>
217 If you have applied the recommended patch, build the demo programs by
218 running the following command:
219 </para>
220
221<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
222
223 <para>
224 This package does not come with a test suite.
225 </para>
226
227 <para>
228 Now, as the <systemitem class="username">root</systemitem> user:
229 </para>
230
231<screen role="root"><userinput>make install</userinput></screen>
232
233 <para>
234 If you have built the demo programs, install them by running the
235 following command as the
236 <systemitem class="username">root</systemitem> user:
237 </para>
238
239<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
240
241 <para>
242 If desired, install the optional documentation by running
243 the following commands as the
244 <systemitem class="username">root</systemitem> user:
245 </para>
246
247<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
248cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
249
250 </sect2>
251
252 <sect2 role="installation">
253 <title>Installation of GLU</title>
254
255 <para>
256 Install <application>GLU</application> by running the following
257 commands:
258 </para>
259
260<screen><userinput>./configure --prefix=$XORG_PREFIX --disable-static &amp;&amp;
261make</userinput></screen>
262
263 <para>
264 This package does not come with a test suite.
265 </para>
266
267 <para>
268 Now, as the <systemitem class="username">root</systemitem> user:
269 </para>
270
271<screen role="root"><userinput>make install</userinput></screen>
272
273 </sect2>
274
275 <sect2 role="commands">
276 <title>Command Explanations</title>
277
278 <para>
279 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
280 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
281 "-g -O2". That results in binaries and libraries being built with
282 debugging symbols which make them bigger. Override the default
283 flags to omit -g compiler flag so the final libraries are smaller.
284 </para>
285
286 <para>
287 <option>--enable-texture-float</option>: This switch enables
288 floating-point textures and render buffers. Please consult
289 <filename>docs/patents.txt</filename> to see if there are
290 any legal issues if you use this feature.
291 </para>
292
293 <para>
294 <option>--enable-gles1</option>: This switch enables support for
295 OpenGL ES 1.x API.
296 </para>
297
298 <para>
299 <option>--enable-gles2</option>: This switch enables support for
300 OpenGL ES 2.x API.
301 </para>
302
303 <para>
304 <option>--enable-openvg</option>: This switch enables support for
305 OpenVG API.
306 </para>
307
308 <para>
309 <option>--enable-osmesa</option>: This switch enables building of
310 the <filename class="libraryfile">libOSMesa</filename> library.
311 </para>
312
313 <para>
314 <option>--enable-xa</option>: This switch enables building of the
315 XA X Acceleration API (Required for VMware 3D Driver).
316 </para>
317
318 <para>
319 <option>--enable-gbm</option>: This switch enables building of the
320 <application>Mesa</application> Graphics Buffer Manager library.
321 </para>
322
323 <para>
324 <option>--enable-gallium-egl</option>: This switch enables optional
325 EGL state tracker for Gallium.
326 </para>
327
328 <para>
329 <option>--enable-gallium-gbm</option>: This switch enables optional
330 GBM state tracker for Gallium.
331 </para>
332
333 <para>
334 <option>--enable-glx-tls</option>: This switch enables TLS (Thread Local
335 Storage) support in GLX.
336 </para>
337
338 <para>
339 <option>--with-llvm-shared-libs</option>: This switch is used so
340 Gallium drivers will link against shared
341 <application>LLVM</application> libraries instead of the static
342 ones. Remove if you did not install <application>LLVM</application>.
343 </para>
344
345 <para>
346 <parameter>--with-egl-platforms="..."</parameter>: This parameter
347 controls for which platforms EGL should be built. Available
348 platforms are drm, x11 and wayland.
349 </para>
350
351 <para>
352 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
353 controls which Gallium drivers should be built. Available drivers
354 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
355 will need to remove r300, r600 and radeonsi from the list if you did
356 not install <application>elfutils</application> and
357 <application>LLVM</application>.
358 </para>
359
360 <para>
361 <option>--enable-r600-llvm-compiler</option>: Use this switch to
362 enable experimental R600 <application>LLVM</application> backend
363 for graphics shaders which claims to speed up the driver.
364 </para>
365
366 </sect2>
367
368 <sect2 role="content">
369 <title>Contents</title>
370
371 <segmentedlist>
372 <segtitle>Installed Programs</segtitle>
373 <segtitle>Installed Libraries</segtitle>
374 <segtitle>Installed Directories</segtitle>
375
376 <seglistitem>
377 <seg>
378 glxgears and glxinfo
379 </seg>
380 <seg>
381 libdricore&mesalib-version;.so, libEGL.so, libgbm.so, libglapi.so,
382 libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so, libOpenVG.so,
383 libOSMesa.so, libxatracker.so, libXvMCnouveau.so, libXvMCr300.so,
384 libXvMCr600.so and libXvMCsoftpipe.so
385 </seg>
386 <seg>
387 $XORG_PREFIX/include/EGL,
388 $XORG_PREFIX/include/GLES,
389 $XORG_PREFIX/include/GLES2,
390 $XORG_PREFIX/include/GLES3,
391 $XORG_PREFIX/include/KHR,
392 $XORG_PREFIX/include/VG,
393 $XORG_PREFIX/lib/dri,
394 $XORG_PREFIX/lib/egl,
395 $XORG_PREFIX/lib/gallium-pipe,
396 $XORG_PREFIX/lib/gbm and
397 $XORG_PREFIX/lib/vdpau
398 </seg>
399 </seglistitem>
400 </segmentedlist>
401
402 <variablelist>
403 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
404 <?dbfo list-presentation="list"?>
405 <?dbhtml list-presentation="table"?>
406
407 <varlistentry id="glxgears">
408 <term><command>glxgears</command></term>
409 <listitem>
410 <para>
411 is a GL demo useful for troubleshooting graphics
412 problems.
413 </para>
414 <indexterm zone="mesalib glxgears">
415 <primary sortas="b-glxgears">glxgears</primary>
416 </indexterm>
417 </listitem>
418 </varlistentry>
419
420 <varlistentry id="glxinfo">
421 <term><command>glxinfo</command></term>
422 <listitem>
423 <para>
424 is a diagnostic program that displays information about the
425 graphics hardware and installed GL libraries.
426 </para>
427 <indexterm zone="mesalib glxinfo">
428 <primary sortas="b-glxinfo">glxinfo</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 <varlistentry id="libdricore">
434 <term><filename class="libraryfile">libdricore&mesalib-version;.so</filename></term>
435 <listitem>
436 <para>
437 contains common DRI routines used by <application>Mesa</application>
438 DRI drivers.
439 </para>
440 <indexterm zone="mesalib libdricore">
441 <primary sortas="c-libdricore">libdricore&mesalib-version;.so</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
446 <varlistentry id="libEGL">
447 <term><filename class="libraryfile">libEGL.so</filename></term>
448 <listitem>
449 <para>
450 provides a native platform graphics interface as
451 defined by the EGL-1.4 specification.
452 </para>
453 <indexterm zone="mesalib libEGL">
454 <primary sortas="c-libGL">libEGL.so</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458
459 <varlistentry id="libgbm">
460 <term><filename class="libraryfile">libgbm.so</filename></term>
461 <listitem>
462 <para>
463 is the <application>Mesa</application> Graphics Buffer
464 Manager library.
465 </para>
466 <indexterm zone="mesalib libgbm">
467 <primary sortas="c-libgbm">libgbm.so</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="libGLESv1_CM">
473 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
474 <listitem>
475 <para>
476 is the <application>Mesa</application> OpenGL ES 1.1 library.
477 </para>
478 <indexterm zone="mesalib libGLESv1_CM">
479 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="libGLES2">
485 <term><filename class="libraryfile">libGLES2.so</filename></term>
486 <listitem>
487 <para>
488 is the <application>Mesa</application> OpenGL ES 2.0 library.
489 </para>
490 <indexterm zone="mesalib libGLES2">
491 <primary sortas="c-libGLES2">libGLES2.so</primary>
492 </indexterm>
493 </listitem>
494 </varlistentry>
495
496 <varlistentry id="libGL">
497 <term><filename class="libraryfile">libGL.so</filename></term>
498 <listitem>
499 <para>
500 is the main <application>Mesa</application> OpenGL library.
501 </para>
502 <indexterm zone="mesalib libGL">
503 <primary sortas="c-libGL">libGL.so</primary>
504 </indexterm>
505 </listitem>
506 </varlistentry>
507
508 <varlistentry id="libGLU">
509 <term><filename class="libraryfile">libGLU.so</filename></term>
510 <listitem>
511 <para>
512 is the <application>Mesa</application> OpenGL
513 Utility library.
514 </para>
515 <indexterm zone="mesalib libGLU">
516 <primary sortas="c-libGLU">libGLU.so</primary>
517 </indexterm>
518 </listitem>
519 </varlistentry>
520
521 <varlistentry id="libOpenVG">
522 <term><filename class="libraryfile">libOpenVG.so</filename></term>
523 <listitem>
524 <para>
525 is the <application>Mesa</application> OpenVG 1.0 library.
526 </para>
527 <indexterm zone="mesalib libOpenVG">
528 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
529 </indexterm>
530 </listitem>
531 </varlistentry>
532
533 <varlistentry id="libOSMesa">
534 <term><filename class="libraryfile">libOSMesa.so</filename></term>
535 <listitem>
536 <para>
537 is the <application>Mesa</application> Off-screen Rendering library.
538 </para>
539 <indexterm zone="mesalib libOSMesa">
540 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
541 </indexterm>
542 </listitem>
543 </varlistentry>
544
545 <varlistentry id="libxatracker">
546 <term><filename class="libraryfile">libxatracker.so</filename></term>
547 <listitem>
548 <para>
549 is the Xorg Gallium3D acceleration library.
550 </para>
551 <indexterm zone="mesalib libxatracker">
552 <primary sortas="c-libxatracker">libxatracker.so</primary>
553 </indexterm>
554 </listitem>
555 </varlistentry>
556 </variablelist>
557
558 </sect2>
559
560</sect1>
Note: See TracBrowser for help on using the repository browser.