source: x/installing/mesalib-systemd.xml@ 35d55e9

systemd-11177
Last change on this file since 35d55e9 was 35d55e9, checked in by Christopher Gregory <cjg@…>, 10 years ago

Updated Mesalib to reflect version in trunk.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14242 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 "6927e1ae64818e6b692edaf06c644388">
11 <!ENTITY mesalib-size "6.9 MB">
12 <!ENTITY mesalib-buildsize "216 MB (additional 2 MB for the docs)">
13 <!ENTITY mesalib-time "5.6 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 &lfs76_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 Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Recommended patch:
80 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-3.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="libdrm"/>,
91 <xref linkend="python2"/> and
92 <xref linkend="xorg7-lib"/>
93 </para>
94
95 <bridgehead renderas="sect4">Recommended</bridgehead>
96 <para role="recommended">
97 <xref linkend="elfutils"/> (required for Radeon 3D drivers),
98 <xref linkend="libvdpau"/> (to build VDPAU drivers for supported hardware),
99 <xref linkend="llvm"/> (required for Radeon 3D drivers and also for
100 llvmpipe which is intended to be the fastest of the three sw rasterizers,
101 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink>) and
102 <xref linkend="wayland"/> (required for <filename>libwayland-egl</filename>
103 library which is used by many packages that use
104 <application>Wayland</application>)
105 </para>
106
107 <bridgehead renderas="sect4">Optional</bridgehead>
108 <para role="optional">
109 <ulink url="http://libclc.llvm.org/">libclc</ulink>
110 (to build Radeon OpenCL library) and
111 <ulink url="http://omxil.sourceforge.net/">libomxil-bellagio</ulink>
112 (to build Radeon OpenMAX driver)
113 </para>
114
115 <note>
116 <para>
117 The instructions below assume that <application>elfutils</application>
118 and <application>LLVM</application> are installed. You will
119 need to modify the instructions if you choose not to install them.
120 Please note that <application>elfutils</application> and
121 <application>LLVM</application> are <emphasis>required</emphasis>
122 for Radeon 3D drivers. For an explanation of Gallium please see
123 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"></ulink>.
124 </para>
125 </note>
126
127 <para condition="html" role="usernotes">User Notes:
128 <ulink url="&blfs-wiki;/mesalib"/>
129 </para>
130 </sect2>
131
132 <sect2 role="installation">
133 <title>Installation of MesaLib</title>
134
135 <note>
136 <para>
137 Unlike other packages, the
138 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
139 archive will extract to the
140 <filename class="directory">Mesa-&mesalib-version;</filename>
141 directory.
142 </para>
143 </note>
144
145 <para>
146 If you have downloaded the recommended patch, apply it by running the
147 following command:
148 </para>
149
150<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
151
152 <para>
153 Install <application>MesaLib</application> by running the following
154 commands:
155 </para>
156
157<screen><userinput>sed -e '/0x0303/ a#define OwningPtr std::unique_ptr\n#elif HAVE_LLVM >= 0x0303' \
158 -e 's/^#if HAVE_LLVM >= 0x0303/#if HAVE_LLVM >= 0x0305/' \
159 -i src/gallium/auxiliary/gallivm/lp_bld_debug.cpp &amp;&amp;
160
161./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
162 --prefix=/usr \
163 --sysconfdir=/etc \
164 --disable-gallium-egl \
165 --enable-texture-float \
166 --enable-gles1 \
167 --enable-gles2 \
168 --enable-osmesa \
169 --enable-xa \
170 --enable-gbm \
171 --enable-glx-tls \
172 --with-egl-platforms="drm,x11,wayland" \
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=/usr</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=/usr 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 <command>sed -e ...lp_bld_debug.cpp</command>: Fix build problem
217 introduced with LLVM-3.5.0.
218 </para>
219
220 <para>
221 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
222 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
223 "-g -O2". That results in binaries and libraries being built with
224 debugging symbols which make them bigger. Override the default
225 flags to omit -g compiler flag so the final libraries are smaller.
226 </para>
227
228 <para>
229 <parameter>--disable-gallium-egl</parameter>: This switch disables
230 the egl_gallium loader in favor of egl_dri2 loader which supports
231 both DRI and Gallium drivers.
232 </para>
233
234 <para>
235 <parameter>--enable-texture-float</parameter>: This switch enables
236 floating-point textures and render buffers. Please consult
237 <filename>docs/patents.txt</filename> to see if there are
238 any legal issues if you use this feature.
239 </para>
240
241 <para>
242 <parameter>--enable-gles1</parameter>: This switch enables support for
243 OpenGL ES 1.x API.
244 </para>
245
246 <para>
247 <parameter>--enable-gles2</parameter>: This switch enables support for
248 OpenGL ES 2.x API.
249 </para>
250
251 <para>
252 <parameter>--enable-osmesa</parameter>: This switch enables building of
253 the <filename class="libraryfile">libOSMesa</filename> library.
254 </para>
255
256 <para>
257 <parameter>--enable-xa</parameter>: This switch enables building of the
258 XA X Acceleration API (Required for VMware 3D Driver).
259 </para>
260
261 <para>
262 <parameter>--enable-gbm</parameter>: This switch enables building of the
263 <application>Mesa</application> Graphics Buffer Manager library.
264 </para>
265
266 <para>
267 <parameter>--enable-gallium-gbm</parameter>: This switch enables optional
268 GBM state tracker for Gallium.
269 </para>
270
271 <para>
272 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
273 Storage) support in GLX.
274 </para>
275
276 <para>
277 <parameter>--with-egl-platforms="..."</parameter>: This parameter
278 controls for which platforms EGL should be built. Available
279 platforms are drm, x11 and wayland. Remove <option>wayland</option>
280 from the list if you have not installed
281 <application>Wayland</application>.
282 </para>
283
284 <para>
285 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
286 controls which Gallium drivers should be built. Available drivers
287 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
288 will need to remove r300, r600 and radeonsi from the list if you did
289 not install <application>elfutils</application> and
290 <application>LLVM</application>.
291 </para>
292
293 <para>
294 <option>--enable-r600-llvm-compiler</option>: Use this switch to
295 enable experimental R600 <application>LLVM</application> backend
296 for graphics shaders which claims to speed up the driver.
297 </para>
298
299 </sect2>
300
301 <sect2 role="content">
302 <title>Contents</title>
303
304 <segmentedlist>
305 <segtitle>Installed Programs</segtitle>
306 <segtitle>Installed Libraries</segtitle>
307 <segtitle>Installed Directories</segtitle>
308
309 <seglistitem>
310 <seg>
311 glxgears and glxinfo
312 </seg>
313 <seg>
314 libEGL.so,
315 libgbm.so,
316 libglapi.so,
317 libGLESv1_CM.so,
318 libGLESv2.so,
319 libGL.so,
320 libOSMesa.so,
321 libwayland-egl.so, and
322 libxatracker.so
323 </seg>
324 <seg>
325 /usr/include/EGL,
326 /usr/include/GL,
327 /usr/include/GLES,
328 /usr/include/GLES2,
329 /usr/include/GLES3,
330 /usr/include/KHR,
331 /usr/include/VG,
332 /usr/lib/dri,
333 /usr/lib/egl,
334 /usr/lib/gallium-pipe,
335 /usr/lib/gbm,
336 /usr/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="libOSMesa">
436 <term><filename class="libraryfile">libOSMesa.so</filename></term>
437 <listitem>
438 <para>
439 is the <application>Mesa</application> Off-screen Rendering library.
440 </para>
441 <indexterm zone="mesalib libOSMesa">
442 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="libwayland-egl">
448 <term><filename class="libraryfile">libwayland-egl.so</filename></term>
449 <listitem>
450 <para>
451 is the <application>Wayland</application> specific EGL library.
452 </para>
453 <indexterm zone="mesalib libwayland-egl">
454 <primary sortas="c-libwayland-egl">libwayland-egl.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.