source: x/installing/mesalib.xml@ dae25ca5

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

mesalib-9.2.0 (thanks to Armin's patch)

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

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