source: x/installing/mesalib.xml@ 1aa6f05

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 1aa6f05 was 1aa6f05, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Tag 75. Armin's changes to gcc.

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

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