source: x/installing/mesalib.xml@ 177e2f9

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

libpng-1.6.11
MesaLib-10.2.1
qpdf-5.1.2
nspr-4.10.6
MariaDB-10.0.11: move switch -DWITH_EMBEDDED_SERVER=ON to parameter.

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

  • Property mode set to 100644
File size: 15.3 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 "093f9b5d077e5f6061dcd7b01b7aa51a">
13 <!ENTITY mesalib-size "6.8 MB">
14 <!ENTITY mesalib-buildsize "300 MB (additional 1.6 MB for the docs)">
15 <!ENTITY mesalib-time "4.3 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 Patches</bridgehead>
78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>
81 Required patch:
82 <ulink url="&patch-root;/MesaLib-&mesalib-version;-svga_texture-1.patch"/>
83 </para>
84 </listitem>
85 <listitem>
86 <para>
87 Recommended patch:
88 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
89 (Needed if testing the Xorg installation per BLFS instructions).
90 </para>
91 </listitem>
92 </itemizedlist>
93
94 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
95
96 <bridgehead renderas="sect4">Required</bridgehead>
97 <para role="required">
98 <xref linkend="libxml2"/>,
99 <xref linkend="xorg7-lib"/>, and
100 <xref linkend="libdrm"/>
101 </para>
102
103 <bridgehead renderas="sect4">Recommended</bridgehead>
104 <para role="recommended">
105 <xref linkend="elfutils"/> (required for radeon 3d drivers),
106 <xref linkend="libvdpau"/> (to build VDPAU drivers),
107 <xref linkend="llvm"/> (required for radeon 3d drivers and also for
108 llvmpipe which is intended to be the fastest of the three sw rasterizers,
109 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink> )
110 </para>
111
112 <bridgehead renderas="sect4">Optional</bridgehead>
113 <para role="optional">
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 <note>
130 <para>
131 The <application>libxml2</application>
132 <application>Python</application> module must have been built
133 during the installation of <application>libxml2</application>
134 or else <application>MesaLib</application> build will fail.
135 </para>
136 </note>
137
138 <para condition="html" role="usernotes">User Notes:
139 <ulink url="&blfs-wiki;/mesalib"/>
140 </para>
141 </sect2>
142
143 <sect2 role="installation">
144 <title>Installation of MesaLib</title>
145
146 <note>
147 <para>
148 Unlike other packages, the
149 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
150 archive will extract to the
151 <filename class="directory">Mesa-&mesalib-version;</filename>
152 directory.
153 </para>
154 </note>
155
156 <para>
157 If you have downloaded the recommended patch, apply it by running the
158 following command:
159 </para>
160
161<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
162
163 <para>
164 Install <application>MesaLib</application> by running the following
165 commands:
166 </para>
167
168<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-svga_texture-1.patch &amp;&amp;
169./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
170 --prefix=$XORG_PREFIX \
171 --sysconfdir=/etc \
172 --enable-texture-float \
173 --enable-gles1 \
174 --enable-gles2 \
175 --enable-openvg \
176 --enable-osmesa \
177 --enable-xa \
178 --enable-gbm \
179 --enable-gallium-egl \
180 --enable-gallium-gbm \
181 --enable-glx-tls \
182 --with-egl-platforms="drm,x11" \
183 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
184make</userinput></screen>
185
186 <para>
187 If you have applied the recommended patch, build the demo programs by
188 running the following command:
189 </para>
190
191<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
192
193 <para>
194 This package does not come with a test suite.
195 </para>
196
197 <para>
198 Now, as the <systemitem class="username">root</systemitem> user:
199 </para>
200
201<screen role="root"><userinput>make install</userinput></screen>
202
203 <para>
204 If you have built the demo programs, install them by running the
205 following command as the
206 <systemitem class="username">root</systemitem> user:
207 </para>
208
209<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
210
211 <para>
212 If desired, install the optional documentation by running
213 the following commands as the
214 <systemitem class="username">root</systemitem> user:
215 </para>
216
217<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
218cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
219
220 </sect2>
221
222 <sect2 role="commands">
223 <title>Command Explanations</title>
224
225 <para>
226 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
227 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
228 "-g -O2". That results in binaries and libraries being built with
229 debugging symbols which make them bigger. Override the default
230 flags to omit -g compiler flag so the final libraries are smaller.
231 </para>
232
233 <para>
234 <option>--enable-texture-float</option>: This switch enables
235 floating-point textures and render buffers. Please consult
236 <filename>docs/patents.txt</filename> to see if there are
237 any legal issues if you use this feature.
238 </para>
239
240 <para>
241 <option>--enable-gles1</option>: This switch enables support for
242 OpenGL ES 1.x API.
243 </para>
244
245 <para>
246 <option>--enable-gles2</option>: This switch enables support for
247 OpenGL ES 2.x API.
248 </para>
249
250 <para>
251 <option>--enable-openvg</option>: This switch enables support for
252 OpenVG API.
253 </para>
254
255 <para>
256 <option>--enable-osmesa</option>: This switch enables building of
257 the <filename class="libraryfile">libOSMesa</filename> library.
258 </para>
259
260 <para>
261 <option>--enable-xa</option>: This switch enables building of the
262 XA X Acceleration API (Required for VMware 3D Driver).
263 </para>
264
265 <para>
266 <option>--enable-gbm</option>: This switch enables building of the
267 <application>Mesa</application> Graphics Buffer Manager library.
268 </para>
269
270 <para>
271 <option>--enable-gallium-egl</option>: This switch enables optional
272 EGL state tracker for Gallium.
273 </para>
274
275 <para>
276 <option>--enable-gallium-gbm</option>: This switch enables optional
277 GBM state tracker for Gallium.
278 </para>
279
280 <para>
281 <option>--enable-glx-tls</option>: This switch enables TLS (Thread Local
282 Storage) support in GLX.
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 libGL.so,
322 libEGL.so,
323 libGLESv1_CM.so,
324 libGLESv2.so,
325 libOSMesa.so,
326 libOpenVG.so,
327 libgbm.so,
328 libglapi.so,
329 libxatracker.so,
330 <!--libXvMCnouveau.so and libXvMCr600.so--> and
331 several libs under /usr/lib/{dri,egl,gallium-pipe,gbm<!--,vdpau-->}
332 </seg>
333 <seg>
334 $XORG_PREFIX/include/EGL,
335 $XORG_PREFIX/include/GL,
336 $XORG_PREFIX/include/GLES,
337 $XORG_PREFIX/include/GLES2,
338 $XORG_PREFIX/include/GLES3,
339 $XORG_PREFIX/include/KHR,
340 $XORG_PREFIX/include/VG,
341 $XORG_PREFIX/lib/dri,
342 $XORG_PREFIX/lib/egl,
343 $XORG_PREFIX/lib/gallium-pipe,
344 $XORG_PREFIX/lib/gbm<!--,
345 $XORG_PREFIX/lib/vdpau--> and
346 /usr/share/doc/MesaLib-&mesalib-version; (optional)
347 </seg>
348 </seglistitem>
349 </segmentedlist>
350
351 <variablelist>
352 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
353 <?dbfo list-presentation="list"?>
354 <?dbhtml list-presentation="table"?>
355
356 <varlistentry id="glxgears">
357 <term><command>glxgears</command></term>
358 <listitem>
359 <para>
360 is a GL demo useful for troubleshooting graphics
361 problems.
362 </para>
363 <indexterm zone="mesalib glxgears">
364 <primary sortas="b-glxgears">glxgears</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="glxinfo">
370 <term><command>glxinfo</command></term>
371 <listitem>
372 <para>
373 is a diagnostic program that displays information about the
374 graphics hardware and installed GL libraries.
375 </para>
376 <indexterm zone="mesalib glxinfo">
377 <primary sortas="b-glxinfo">glxinfo</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="libEGL">
383 <term><filename class="libraryfile">libEGL.so</filename></term>
384 <listitem>
385 <para>
386 provides a native platform graphics interface as
387 defined by the EGL-1.4 specification.
388 </para>
389 <indexterm zone="mesalib libEGL">
390 <primary sortas="c-libGL">libEGL.so</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
395 <varlistentry id="libgbm">
396 <term><filename class="libraryfile">libgbm.so</filename></term>
397 <listitem>
398 <para>
399 is the <application>Mesa</application> Graphics Buffer
400 Manager library.
401 </para>
402 <indexterm zone="mesalib libgbm">
403 <primary sortas="c-libgbm">libgbm.so</primary>
404 </indexterm>
405 </listitem>
406 </varlistentry>
407
408 <varlistentry id="libGLESv1_CM">
409 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
410 <listitem>
411 <para>
412 is the <application>Mesa</application> OpenGL ES 1.1 library.
413 </para>
414 <indexterm zone="mesalib libGLESv1_CM">
415 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
416 </indexterm>
417 </listitem>
418 </varlistentry>
419
420 <varlistentry id="libGLES2">
421 <term><filename class="libraryfile">libGLES2.so</filename></term>
422 <listitem>
423 <para>
424 is the <application>Mesa</application> OpenGL ES 2.0 library.
425 </para>
426 <indexterm zone="mesalib libGLES2">
427 <primary sortas="c-libGLES2">libGLES2.so</primary>
428 </indexterm>
429 </listitem>
430 </varlistentry>
431
432 <varlistentry id="libGL">
433 <term><filename class="libraryfile">libGL.so</filename></term>
434 <listitem>
435 <para>
436 is the main <application>Mesa</application> OpenGL library.
437 </para>
438 <indexterm zone="mesalib libGL">
439 <primary sortas="c-libGL">libGL.so</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
444 <varlistentry id="libOpenVG">
445 <term><filename class="libraryfile">libOpenVG.so</filename></term>
446 <listitem>
447 <para>
448 is the <application>Mesa</application> OpenVG 1.0 library.
449 </para>
450 <indexterm zone="mesalib libOpenVG">
451 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
452 </indexterm>
453 </listitem>
454 </varlistentry>
455
456 <varlistentry id="libOSMesa">
457 <term><filename class="libraryfile">libOSMesa.so</filename></term>
458 <listitem>
459 <para>
460 is the <application>Mesa</application> Off-screen Rendering library.
461 </para>
462 <indexterm zone="mesalib libOSMesa">
463 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
464 </indexterm>
465 </listitem>
466 </varlistentry>
467
468 <varlistentry id="libxatracker">
469 <term><filename class="libraryfile">libxatracker.so</filename></term>
470 <listitem>
471 <para>
472 is the Xorg Gallium3D acceleration library.
473 </para>
474 <indexterm zone="mesalib libxatracker">
475 <primary sortas="c-libxatracker">libxatracker.so</primary>
476 </indexterm>
477 </listitem>
478 </varlistentry>
479 </variablelist>
480
481 </sect2>
482
483</sect1>
Note: See TracBrowser for help on using the repository browser.