source: x/installing/mesalib.xml@ ddf46c4

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 ddf46c4 was ddf46c4, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Add haveged

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

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