source: x/installing/mesalib.xml@ 085c44fc

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

Xorg apps update

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

  • Property mode set to 100644
File size: 17.1 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 "952ccd03547ed72333b64e1746cf8ada">
10 <!ENTITY mesalib-size "5.9 MB">
11 <!ENTITY mesalib-buildsize "340 MB">
12 <!ENTITY mesalib-time "5.5 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 &lfs73_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="llvm"/>
145 </para>
146
147 <warning>
148 <para>
149 The instructions below assume that <application>LLVM</application>
150 is installed. You will need to modify the instructions if you
151 choose not to install it. Please note that
152 <application>LLVM</application> is <emphasis>required</emphasis> for
153 Radeon 3D drivers.
154 </para>
155 </warning>
156
157 <note>
158 <para>
159 The <application>libxml2</application>
160 <application>Python</application> module must have been built
161 during the installation of <application>libxml2</application>
162 or else <application>MesaLib</application> build will fail.
163 </para>
164 </note>
165
166 <para condition="html" role="usernotes">User Notes:
167 <ulink url="&blfs-wiki;/mesalib"/>
168 </para>
169 </sect2>
170
171 <sect2 role="installation">
172 <title>Installation of MesaLib</title>
173
174 <note>
175 <para>
176 Unlike other packages, the
177 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
178 archive will extract to the
179 <filename class="directory">Mesa-&mesalib-version;</filename>
180 directory.
181 </para>
182 </note>
183
184 <para>
185 If you have downloaded the recommended patch, apply it by running the
186 following command:
187 </para>
188
189<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
190
191 <para>
192 Install <application>MesaLib</application> by running the following
193 commands:
194 </para>
195
196<screen><userinput><!-- patch -Np1 -i ../MesaLib-&mesalib-version;-llvm_fixes-1.patch &amp;&amp;
197-->autoreconf -fi &amp;&amp;
198./configure CFLAGS="-O2" CXXFLAGS="-O2" \
199 --prefix=/usr \
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=/usr</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=/usr 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=/usr --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 <xref linkend="llvm"/>.
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, nouveau, r300, r600, radeonsi, svga and swrast. You will
355 need to remove r300, r600 and radeonsi from the list if you did not
356 install <xref linkend="llvm"/>.
357 </para>
358
359 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
360 href="../../xincludes/static-libraries.xml"/>
361
362 <para>
363 <option>--enable-r600-llvm-compiler</option>: Use this switch to
364 enable experimental <application>LLVM</application> backend for
365 graphics shaders which claims to speed up the driver.
366 </para>
367
368 </sect2>
369
370 <sect2 role="content">
371 <title>Contents</title>
372
373 <segmentedlist>
374 <segtitle>Installed Programs</segtitle>
375 <segtitle>Installed Libraries</segtitle>
376 <segtitle>Installed Directories</segtitle>
377
378 <seglistitem>
379 <seg>
380 glxgears and glxinfo
381 </seg>
382 <seg>
383 libdricore9.1.3.so, libEGL.so, libgbm.so, libglapi.so,
384 libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so,
385 libllvmradeon9.1.3.so, libOpenVG.so, libOSMesa.so and
386 libxatracker.so
387 </seg>
388 <seg>
389 /usr/include/EGL,
390 /usr/include/GLES,
391 /usr/include/GLES2,
392 /usr/include/GLES3,
393 /usr/include/KHR,
394 /usr/include/VG,
395 /usr/lib/dri,
396 /usr/lib/egl,
397 /usr/lib/gallium-pipe and
398 /usr/lib/gbm
399 </seg>
400 </seglistitem>
401 </segmentedlist>
402
403 <variablelist>
404 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
405 <?dbfo list-presentation="list"?>
406 <?dbhtml list-presentation="table"?>
407
408 <varlistentry id="glxgears">
409 <term><command>glxgears</command></term>
410 <listitem>
411 <para>
412 is a GL demo useful for troubleshooting graphics
413 problems.
414 </para>
415 <indexterm zone="mesalib glxgears">
416 <primary sortas="b-glxgears">glxgears</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 <varlistentry id="glxinfo">
422 <term><command>glxinfo</command></term>
423 <listitem>
424 <para>
425 is a diagnostic program that displays information about the
426 graphics hardware and installed GL libraries.
427 </para>
428 <indexterm zone="mesalib glxinfo">
429 <primary sortas="b-glxinfo">glxinfo</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="libdricore">
435 <term><filename class="libraryfile">libdricore9.1.3.so</filename></term>
436 <listitem>
437 <para>
438 contains common DRI routines used by <application>Mesa</application>
439 DRI drivers.
440 </para>
441 <indexterm zone="mesalib libdricore">
442 <primary sortas="c-libdricore">libdricore9.1.3.so</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="libEGL">
448 <term><filename class="libraryfile">libEGL.so</filename></term>
449 <listitem>
450 <para>
451 provides a native platform graphics interface as
452 defined by the EGL-1.4 specification.
453 </para>
454 <indexterm zone="mesalib libEGL">
455 <primary sortas="c-libGL">libEGL.so</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
460 <varlistentry id="libgbm">
461 <term><filename class="libraryfile">libgbm.so</filename></term>
462 <listitem>
463 <para>
464 is the <application>Mesa</application> Graphics Buffer
465 Manager library.
466 </para>
467 <indexterm zone="mesalib libgbm">
468 <primary sortas="c-libgbm">libgbm.so</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry id="libGLESv1_CM">
474 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
475 <listitem>
476 <para>
477 is the <application>Mesa</application> OpenGL ES 1.1 library.
478 </para>
479 <indexterm zone="mesalib libGLESv1_CM">
480 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
481 </indexterm>
482 </listitem>
483 </varlistentry>
484
485 <varlistentry id="libGLES2">
486 <term><filename class="libraryfile">libGLES2.so</filename></term>
487 <listitem>
488 <para>
489 is the <application>Mesa</application> OpenGL ES 2.0 library.
490 </para>
491 <indexterm zone="mesalib libGLES2">
492 <primary sortas="c-libGLES2">libGLES2.so</primary>
493 </indexterm>
494 </listitem>
495 </varlistentry>
496
497 <varlistentry id="libGL">
498 <term><filename class="libraryfile">libGL.so</filename></term>
499 <listitem>
500 <para>
501 is the main <application>Mesa</application> OpenGL library.
502 </para>
503 <indexterm zone="mesalib libGL">
504 <primary sortas="c-libGL">libGL.so</primary>
505 </indexterm>
506 </listitem>
507 </varlistentry>
508
509 <varlistentry id="libGLU">
510 <term><filename class="libraryfile">libGLU.so</filename></term>
511 <listitem>
512 <para>
513 is the <application>Mesa</application> OpenGL
514 Utility library.
515 </para>
516 <indexterm zone="mesalib libGLU">
517 <primary sortas="c-libGLU">libGLU.so</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
521
522 <varlistentry id="libOpenVG">
523 <term><filename class="libraryfile">libOpenVG.so</filename></term>
524 <listitem>
525 <para>
526 is the <application>Mesa</application> OpenVG 1.0 library.
527 </para>
528 <indexterm zone="mesalib libOpenVG">
529 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
530 </indexterm>
531 </listitem>
532 </varlistentry>
533
534 <varlistentry id="libOSMesa">
535 <term><filename class="libraryfile">libOSMesa.so</filename></term>
536 <listitem>
537 <para>
538 is the <application>Mesa</application> Off-screen Rendering library.
539 </para>
540 <indexterm zone="mesalib libOSMesa">
541 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
542 </indexterm>
543 </listitem>
544 </varlistentry>
545
546 <varlistentry id="libxatracker">
547 <term><filename class="libraryfile">libxatracker.so</filename></term>
548 <listitem>
549 <para>
550 is the Xorg Gallium3D acceleration library.
551 </para>
552 <indexterm zone="mesalib libxatracker">
553 <primary sortas="c-libxatracker">libxatracker.so</primary>
554 </indexterm>
555 </listitem>
556 </varlistentry>
557 </variablelist>
558
559 </sect2>
560
561</sect1>
Note: See TracBrowser for help on using the repository browser.