source: x/installing/mesalib.xml@ c6bfee88

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind 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 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c6bfee88 was 7da5ad23, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to harfbuzz-0.9.34.
Update to whois_5.1.5.
Update to xrandr-1.4.3.
Update to MesaLib-10.2.5.

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

  • Property mode set to 100644
File size: 15.2 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
9 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
10<!-- <!ENTITY mesalib-download-ftp
11 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">-->
12 <!ENTITY mesalib-md5sum "f82b1c2b42f44073d8b889d2a7ee9292">
13 <!ENTITY mesalib-size "6.9 MB">
14 <!ENTITY mesalib-buildsize "313 MB (additional 1.6 MB for the docs)">
15 <!ENTITY mesalib-time "4.4 SBU">
16
17]>
18
19<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
20 <?dbhtml filename="mesalib.html"?>
21
22 <sect1info>
23 <othername>$LastChangedBy$</othername>
24 <date>$Date$</date>
25 </sect1info>
26
27 <title>MesaLib-&mesalib-version;</title>
28
29 <indexterm zone="mesalib">
30 <primary sortas="a-MesaLib">MesaLib</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to MesaLib</title>
35
36 <para>
37 <application>Mesa</application> is an OpenGL compatible 3D graphics
38 library.
39 </para>
40
41 &lfs75_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&mesalib-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &mesalib-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &mesalib-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &mesalib-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &mesalib-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Additional Patch</bridgehead>
78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>
81 Recommended patch:
82 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
83 (Needed if testing the Xorg installation per BLFS instructions).
84 </para>
85 </listitem>
86 </itemizedlist>
87
88 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Required</bridgehead>
91 <para role="required">
92 <xref linkend="xorg7-lib"/> and
93 <xref linkend="libdrm"/>
94 </para>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
98 <xref linkend="elfutils"/> (required for radeon 3d drivers),
99 <xref linkend="libvdpau"/> (to build VDPAU drivers),
100 <xref linkend="llvm"/> (required for radeon 3d drivers and also for
101 llvmpipe which is intended to be the fastest of the three sw rasterizers,
102 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink> )
103 </para>
104
105 <bridgehead renderas="sect4">Optional</bridgehead>
106 <para role="optional">
107 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
108 provides more than 300 extra demos to test
109 <application>MesaLib</application>; two of them overwrites the ones
110 included by
111 <filename>MesaLib-&mesalib-version;-add_xdemos-1.patch</filename>;
112 to avoid that, install in a different prefix or add, e.g.
113 <option>--program-prefix=md</option> to configure, and
114 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
115 </para>
116
117 <note>
118 <para>
119 The instructions below assume that <application>elfutils</application>
120 and <application>LLVM</application> are installed. You will
121 need to modify the instructions if you choose not to install them.
122 Please note that <application>elfutils</application> and
123 <application>LLVM</application> are <emphasis>required</emphasis>
124 for Radeon 3D drivers. For an explanation of gallium please see
125 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"></ulink>.
126 </para>
127 </note>
128
129 <para condition="html" role="usernotes">User Notes:
130 <ulink url="&blfs-wiki;/mesalib"/>
131 </para>
132 </sect2>
133
134 <sect2 role="installation">
135 <title>Installation of MesaLib</title>
136
137 <note>
138 <para>
139 Unlike other packages, the
140 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
141 archive will extract to the
142 <filename class="directory">Mesa-&mesalib-version;</filename>
143 directory.
144 </para>
145 </note>
146
147 <para>
148 If you have downloaded the recommended patch, apply it by running the
149 following command:
150 </para>
151
152<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
153
154 <para>
155 Install <application>MesaLib</application> by running the following
156 commands:
157 </para>
158
159<screen><userinput>./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
160 --prefix=$XORG_PREFIX \
161 --sysconfdir=/etc \
162 --enable-texture-float \
163 --enable-gles1 \
164 --enable-gles2 \
165 --enable-openvg \
166 --enable-osmesa \
167 --enable-xa \
168 --enable-gbm \
169 --enable-gallium-egl \
170 --enable-gallium-gbm \
171 --enable-glx-tls \
172 --with-egl-platforms="drm,x11" \
173 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
174make</userinput></screen>
175
176 <para>
177 If you have applied the recommended patch, build the demo programs by
178 running the following command:
179 </para>
180
181<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
182
183 <para>
184 This package does not come with a test suite.
185 </para>
186
187 <para>
188 Now, as the <systemitem class="username">root</systemitem> user:
189 </para>
190
191<screen role="root"><userinput>make install</userinput></screen>
192
193 <para>
194 If you have built the demo programs, install them by running the
195 following command as the
196 <systemitem class="username">root</systemitem> user:
197 </para>
198
199<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
200
201 <para>
202 If desired, install the optional documentation by running
203 the following commands as the
204 <systemitem class="username">root</systemitem> user:
205 </para>
206
207<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
208cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
209
210 </sect2>
211
212 <sect2 role="commands">
213 <title>Command Explanations</title>
214
215 <para>
216 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
217 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
218 "-g -O2". That results in binaries and libraries being built with
219 debugging symbols which make them bigger. Override the default
220 flags to omit -g compiler flag so the final libraries are smaller.
221 </para>
222
223 <para>
224 <parameter>--enable-texture-float</parameter>: This switch enables
225 floating-point textures and render buffers. Please consult
226 <filename>docs/patents.txt</filename> to see if there are
227 any legal issues if you use this feature.
228 </para>
229
230 <para>
231 <parameter>--enable-gles1</parameter>: This switch enables support for
232 OpenGL ES 1.x API.
233 </para>
234
235 <para>
236 <parameter>--enable-gles2</parameter>: This switch enables support for
237 OpenGL ES 2.x API.
238 </para>
239
240 <para>
241 <parameter>--enable-openvg</parameter>: This switch enables support for
242 OpenVG API.
243 </para>
244
245 <para>
246 <parameter>--enable-osmesa</parameter>: This switch enables building of
247 the <filename class="libraryfile">libOSMesa</filename> library.
248 </para>
249
250 <para>
251 <parameter>--enable-xa</parameter>: This switch enables building of the
252 XA X Acceleration API (Required for VMware 3D Driver).
253 </para>
254
255 <para>
256 <parameter>--enable-gbm</parameter>: This switch enables building of the
257 <application>Mesa</application> Graphics Buffer Manager library.
258 </para>
259
260 <para>
261 <parameter>--enable-gallium-egl</parameter>: This switch enables optional
262 EGL state tracker for Gallium.
263 </para>
264
265 <para>
266 <parameter>--enable-gallium-gbm</parameter>: This switch enables optional
267 GBM state tracker for Gallium.
268 </para>
269
270 <para>
271 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
272 Storage) support in GLX.
273 </para>
274
275 <para>
276 <parameter>--with-egl-platforms="..."</parameter>: This parameter
277 controls for which platforms EGL should be built. Available
278 platforms are drm, x11 and wayland.
279 </para>
280
281 <para>
282 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
283 controls which Gallium drivers should be built. Available drivers
284 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
285 will need to remove r300, r600 and radeonsi from the list if you did
286 not install <application>elfutils</application> and
287 <application>LLVM</application>.
288 </para>
289
290 <para>
291 <option>--enable-r600-llvm-compiler</option>: Use this switch to
292 enable experimental R600 <application>LLVM</application> backend
293 for graphics shaders which claims to speed up the driver.
294 </para>
295
296 </sect2>
297
298 <sect2 role="content">
299 <title>Contents</title>
300
301 <segmentedlist>
302 <segtitle>Installed Programs</segtitle>
303 <segtitle>Installed Libraries</segtitle>
304 <segtitle>Installed Directories</segtitle>
305
306 <seglistitem>
307 <seg>
308 glxgears and glxinfo
309 </seg>
310 <seg>
311 libGL.so,
312 libEGL.so,
313 libGLESv1_CM.so,
314 libGLESv2.so,
315 libOSMesa.so,
316 libOpenVG.so,
317 libgbm.so,
318 libglapi.so,
319 libxatracker.so,
320 <!--libXvMCnouveau.so and libXvMCr600.so--> and
321 several libs under /usr/lib/{dri,egl,gallium-pipe,gbm,vdpau}
322 </seg>
323 <seg>
324 $XORG_PREFIX/include/EGL,
325 $XORG_PREFIX/include/GL,
326 $XORG_PREFIX/include/GLES,
327 $XORG_PREFIX/include/GLES2,
328 $XORG_PREFIX/include/GLES3,
329 $XORG_PREFIX/include/KHR,
330 $XORG_PREFIX/include/VG,
331 $XORG_PREFIX/lib/dri,
332 $XORG_PREFIX/lib/egl,
333 $XORG_PREFIX/lib/gallium-pipe,
334 $XORG_PREFIX/lib/gbm,
335 $XORG_PREFIX/lib/vdpau, and
336 /usr/share/doc/MesaLib-&mesalib-version; (optional)
337 </seg>
338 </seglistitem>
339 </segmentedlist>
340
341 <variablelist>
342 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
343 <?dbfo list-presentation="list"?>
344 <?dbhtml list-presentation="table"?>
345
346 <varlistentry id="glxgears">
347 <term><command>glxgears</command></term>
348 <listitem>
349 <para>
350 is a GL demo useful for troubleshooting graphics
351 problems.
352 </para>
353 <indexterm zone="mesalib glxgears">
354 <primary sortas="b-glxgears">glxgears</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="glxinfo">
360 <term><command>glxinfo</command></term>
361 <listitem>
362 <para>
363 is a diagnostic program that displays information about the
364 graphics hardware and installed GL libraries.
365 </para>
366 <indexterm zone="mesalib glxinfo">
367 <primary sortas="b-glxinfo">glxinfo</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="libEGL">
373 <term><filename class="libraryfile">libEGL.so</filename></term>
374 <listitem>
375 <para>
376 provides a native platform graphics interface as
377 defined by the EGL-1.4 specification.
378 </para>
379 <indexterm zone="mesalib libEGL">
380 <primary sortas="c-libGL">libEGL.so</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 <varlistentry id="libgbm">
386 <term><filename class="libraryfile">libgbm.so</filename></term>
387 <listitem>
388 <para>
389 is the <application>Mesa</application> Graphics Buffer
390 Manager library.
391 </para>
392 <indexterm zone="mesalib libgbm">
393 <primary sortas="c-libgbm">libgbm.so</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="libGLESv1_CM">
399 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
400 <listitem>
401 <para>
402 is the <application>Mesa</application> OpenGL ES 1.1 library.
403 </para>
404 <indexterm zone="mesalib libGLESv1_CM">
405 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
409
410 <varlistentry id="libGLES2">
411 <term><filename class="libraryfile">libGLES2.so</filename></term>
412 <listitem>
413 <para>
414 is the <application>Mesa</application> OpenGL ES 2.0 library.
415 </para>
416 <indexterm zone="mesalib libGLES2">
417 <primary sortas="c-libGLES2">libGLES2.so</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="libGL">
423 <term><filename class="libraryfile">libGL.so</filename></term>
424 <listitem>
425 <para>
426 is the main <application>Mesa</application> OpenGL library.
427 </para>
428 <indexterm zone="mesalib libGL">
429 <primary sortas="c-libGL">libGL.so</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="libOpenVG">
435 <term><filename class="libraryfile">libOpenVG.so</filename></term>
436 <listitem>
437 <para>
438 is the <application>Mesa</application> OpenVG 1.0 library.
439 </para>
440 <indexterm zone="mesalib libOpenVG">
441 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
446 <varlistentry id="libOSMesa">
447 <term><filename class="libraryfile">libOSMesa.so</filename></term>
448 <listitem>
449 <para>
450 is the <application>Mesa</application> Off-screen Rendering library.
451 </para>
452 <indexterm zone="mesalib libOSMesa">
453 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
454 </indexterm>
455 </listitem>
456 </varlistentry>
457
458 <varlistentry id="libxatracker">
459 <term><filename class="libraryfile">libxatracker.so</filename></term>
460 <listitem>
461 <para>
462 is the Xorg Gallium3D acceleration library.
463 </para>
464 <indexterm zone="mesalib libxatracker">
465 <primary sortas="c-libxatracker">libxatracker.so</primary>
466 </indexterm>
467 </listitem>
468 </varlistentry>
469 </variablelist>
470
471 </sect2>
472
473</sect1>
Note: See TracBrowser for help on using the repository browser.