source: x/installing/mesalib.xml@ 07584d8

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

added hardware accelerated video decoding chapter and other misc fixes

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

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