source: x/installing/mesalib.xml@ 0c6df9c

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

Fix mesalib installed libraries.

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

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