source: x/installing/mesalib.xml@ 33c8d363

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

redundant mesalib rependency

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

  • Property mode set to 100644
File size: 17.4 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 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
361 href="../../xincludes/static-libraries.xml"/>
362
363 <para>
364 <option>--enable-r600-llvm-compiler</option>: Use this switch to
365 enable experimental R600 <application>LLVM</application> backend
366 for graphics shaders which claims to speed up the driver.
367 </para>
368
369 </sect2>
370
371 <sect2 role="content">
372 <title>Contents</title>
373
374 <segmentedlist>
375 <segtitle>Installed Programs</segtitle>
376 <segtitle>Installed Libraries</segtitle>
377 <segtitle>Installed Directories</segtitle>
378
379 <seglistitem>
380 <seg>
381 glxgears and glxinfo
382 </seg>
383 <seg>
384 libdricore&mesalib-version;.so, libEGL.so, libgbm.so, libglapi.so,
385 libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so, libOpenVG.so,
386 libOSMesa.so, libxatracker.so, libXvMCnouveau.so, libXvMCr300.so,
387 libXvMCr600.so and libXvMCsoftpipe.so
388 </seg>
389 <seg>
390 $XORG_PREFIX/include/EGL,
391 $XORG_PREFIX/include/GLES,
392 $XORG_PREFIX/include/GLES2,
393 $XORG_PREFIX/include/GLES3,
394 $XORG_PREFIX/include/KHR,
395 $XORG_PREFIX/include/VG,
396 $XORG_PREFIX/lib/dri,
397 $XORG_PREFIX/lib/egl,
398 $XORG_PREFIX/lib/gallium-pipe,
399 $XORG_PREFIX/lib/gbm and
400 $XORG_PREFIX/lib/vdpau
401 </seg>
402 </seglistitem>
403 </segmentedlist>
404
405 <variablelist>
406 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
407 <?dbfo list-presentation="list"?>
408 <?dbhtml list-presentation="table"?>
409
410 <varlistentry id="glxgears">
411 <term><command>glxgears</command></term>
412 <listitem>
413 <para>
414 is a GL demo useful for troubleshooting graphics
415 problems.
416 </para>
417 <indexterm zone="mesalib glxgears">
418 <primary sortas="b-glxgears">glxgears</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
423 <varlistentry id="glxinfo">
424 <term><command>glxinfo</command></term>
425 <listitem>
426 <para>
427 is a diagnostic program that displays information about the
428 graphics hardware and installed GL libraries.
429 </para>
430 <indexterm zone="mesalib glxinfo">
431 <primary sortas="b-glxinfo">glxinfo</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="libdricore">
437 <term><filename class="libraryfile">libdricore&mesalib-version;.so</filename></term>
438 <listitem>
439 <para>
440 contains common DRI routines used by <application>Mesa</application>
441 DRI drivers.
442 </para>
443 <indexterm zone="mesalib libdricore">
444 <primary sortas="c-libdricore">libdricore&mesalib-version;.so</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="libEGL">
450 <term><filename class="libraryfile">libEGL.so</filename></term>
451 <listitem>
452 <para>
453 provides a native platform graphics interface as
454 defined by the EGL-1.4 specification.
455 </para>
456 <indexterm zone="mesalib libEGL">
457 <primary sortas="c-libGL">libEGL.so</primary>
458 </indexterm>
459 </listitem>
460 </varlistentry>
461
462 <varlistentry id="libgbm">
463 <term><filename class="libraryfile">libgbm.so</filename></term>
464 <listitem>
465 <para>
466 is the <application>Mesa</application> Graphics Buffer
467 Manager library.
468 </para>
469 <indexterm zone="mesalib libgbm">
470 <primary sortas="c-libgbm">libgbm.so</primary>
471 </indexterm>
472 </listitem>
473 </varlistentry>
474
475 <varlistentry id="libGLESv1_CM">
476 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
477 <listitem>
478 <para>
479 is the <application>Mesa</application> OpenGL ES 1.1 library.
480 </para>
481 <indexterm zone="mesalib libGLESv1_CM">
482 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
483 </indexterm>
484 </listitem>
485 </varlistentry>
486
487 <varlistentry id="libGLES2">
488 <term><filename class="libraryfile">libGLES2.so</filename></term>
489 <listitem>
490 <para>
491 is the <application>Mesa</application> OpenGL ES 2.0 library.
492 </para>
493 <indexterm zone="mesalib libGLES2">
494 <primary sortas="c-libGLES2">libGLES2.so</primary>
495 </indexterm>
496 </listitem>
497 </varlistentry>
498
499 <varlistentry id="libGL">
500 <term><filename class="libraryfile">libGL.so</filename></term>
501 <listitem>
502 <para>
503 is the main <application>Mesa</application> OpenGL library.
504 </para>
505 <indexterm zone="mesalib libGL">
506 <primary sortas="c-libGL">libGL.so</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
511 <varlistentry id="libGLU">
512 <term><filename class="libraryfile">libGLU.so</filename></term>
513 <listitem>
514 <para>
515 is the <application>Mesa</application> OpenGL
516 Utility library.
517 </para>
518 <indexterm zone="mesalib libGLU">
519 <primary sortas="c-libGLU">libGLU.so</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
524 <varlistentry id="libOpenVG">
525 <term><filename class="libraryfile">libOpenVG.so</filename></term>
526 <listitem>
527 <para>
528 is the <application>Mesa</application> OpenVG 1.0 library.
529 </para>
530 <indexterm zone="mesalib libOpenVG">
531 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
532 </indexterm>
533 </listitem>
534 </varlistentry>
535
536 <varlistentry id="libOSMesa">
537 <term><filename class="libraryfile">libOSMesa.so</filename></term>
538 <listitem>
539 <para>
540 is the <application>Mesa</application> Off-screen Rendering library.
541 </para>
542 <indexterm zone="mesalib libOSMesa">
543 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
544 </indexterm>
545 </listitem>
546 </varlistentry>
547
548 <varlistentry id="libxatracker">
549 <term><filename class="libraryfile">libxatracker.so</filename></term>
550 <listitem>
551 <para>
552 is the Xorg Gallium3D acceleration library.
553 </para>
554 <indexterm zone="mesalib libxatracker">
555 <primary sortas="c-libxatracker">libxatracker.so</primary>
556 </indexterm>
557 </listitem>
558 </varlistentry>
559 </variablelist>
560
561 </sect2>
562
563</sect1>
Note: See TracBrowser for help on using the repository browser.