source: x/installing/mesalib-systemd.xml@ 31f08b1

kde5-14686 systemd-13485
Last change on this file since 31f08b1 was 31f08b1, checked in by Christopher Gregory <cjg@…>, 10 years ago

Remove no longer required patch from mesa-lib page.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14493 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.8 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 "bc071575596a074df2b15cac57c01ed8">
11 <!ENTITY mesalib-size "6.9 MB">
12 <!ENTITY mesalib-buildsize "181.8 MB (additional 2 MB for the docs)">
13 <!ENTITY mesalib-time "6.8 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 Patch</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="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>./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
158 --prefix=/usr \
159 --sysconfdir=/etc \
160 --disable-gallium-egl \
161 --enable-texture-float \
162 --enable-gles1 \
163 --enable-gles2 \
164 --enable-osmesa \
165 --enable-xa \
166 --enable-gbm \
167 --enable-glx-tls \
168 --with-egl-platforms="drm,x11,wayland" \
169 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
170make</userinput></screen>
171
172 <para>
173 If you have applied the recommended patch, build the demo programs by
174 running the following command:
175 </para>
176
177<screen><userinput>make -C xdemos DEMOS_PREFIX=/usr</userinput></screen>
178
179 <para>
180 This package does not come with a test suite.
181 </para>
182
183 <para>
184 Now, as the <systemitem class="username">root</systemitem> user:
185 </para>
186
187<screen role="root"><userinput>make install</userinput></screen>
188
189 <para>
190 If you have built the demo programs, install them by running the
191 following command as the
192 <systemitem class="username">root</systemitem> user:
193 </para>
194
195<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=/usr install</userinput></screen>
196
197 <para>
198 If desired, install the optional documentation by running
199 the following commands as the
200 <systemitem class="username">root</systemitem> user:
201 </para>
202
203<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
204cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
205
206 </sect2>
207
208 <sect2 role="commands">
209 <title>Command Explanations</title>
210
211 <para>
212 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
213 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
214 "-g -O2". That results in binaries and libraries being built with
215 debugging symbols which make them bigger. Override the default
216 flags to omit -g compiler flag so the final libraries are smaller.
217 </para>
218
219 <para>
220 <parameter>--disable-gallium-egl</parameter>: This switch disables
221 the egl_gallium loader in favor of egl_dri2 loader which supports
222 both DRI and Gallium drivers.
223 </para>
224
225 <para>
226 <parameter>--enable-texture-float</parameter>: This switch enables
227 floating-point textures and render buffers. Please consult
228 <filename>docs/patents.txt</filename> to see if there are
229 any legal issues if you use this feature.
230 </para>
231
232 <para>
233 <parameter>--enable-gles1</parameter>: This switch enables support for
234 OpenGL ES 1.x API.
235 </para>
236
237 <para>
238 <parameter>--enable-gles2</parameter>: This switch enables support for
239 OpenGL ES 2.x API.
240 </para>
241
242 <para>
243 <parameter>--enable-osmesa</parameter>: This switch enables building of
244 the <filename class="libraryfile">libOSMesa</filename> library.
245 </para>
246
247 <para>
248 <parameter>--enable-xa</parameter>: This switch enables building of the
249 XA X Acceleration API (Required for VMware 3D Driver).
250 </para>
251
252 <para>
253 <parameter>--enable-gbm</parameter>: This switch enables building of the
254 <application>Mesa</application> Graphics Buffer Manager library.
255 </para>
256
257 <para>
258 <parameter>--enable-gallium-gbm</parameter>: This switch enables optional
259 GBM state tracker for Gallium.
260 </para>
261
262 <para>
263 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
264 Storage) support in GLX.
265 </para>
266
267 <para>
268 <parameter>--with-egl-platforms="..."</parameter>: This parameter
269 controls for which platforms EGL should be built. Available
270 platforms are drm, x11 and wayland. Remove <option>wayland</option>
271 from the list if you have not installed
272 <application>Wayland</application>.
273 </para>
274
275 <para>
276 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
277 controls which Gallium drivers should be built. Available drivers
278 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
279 will need to remove r300, r600 and radeonsi from the list if you did
280 not install <application>elfutils</application> and
281 <application>LLVM</application>.
282 </para>
283
284 <para>
285 <option>--enable-r600-llvm-compiler</option>: Use this switch to
286 enable experimental R600 <application>LLVM</application> backend
287 for graphics shaders which claims to speed up the driver.
288 </para>
289
290 </sect2>
291
292 <sect2 role="content">
293 <title>Contents</title>
294
295 <segmentedlist>
296 <segtitle>Installed Programs</segtitle>
297 <segtitle>Installed Libraries</segtitle>
298 <segtitle>Installed Directories</segtitle>
299
300 <seglistitem>
301 <seg>
302 glxgears and glxinfo
303 </seg>
304 <seg>
305 libEGL.so,
306 libgbm.so,
307 libglapi.so,
308 libGLESv1_CM.so,
309 libGLESv2.so,
310 libGL.so,
311 libOSMesa.so,
312 libwayland-egl.so, and
313 libxatracker.so
314 </seg>
315 <seg>
316 /usr/include/EGL,
317 /usr/include/GL,
318 /usr/include/GLES,
319 /usr/include/GLES2,
320 /usr/include/GLES3,
321 /usr/include/KHR,
322 /usr/include/VG,
323 /usr/lib/dri,
324 /usr/lib/egl,
325 /usr/lib/gallium-pipe,
326 /usr/lib/gbm,
327 /usr/lib/vdpau, and
328 /usr/share/doc/MesaLib-&mesalib-version; (optional)
329 </seg>
330 </seglistitem>
331 </segmentedlist>
332
333 <variablelist>
334 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
335 <?dbfo list-presentation="list"?>
336 <?dbhtml list-presentation="table"?>
337
338 <varlistentry id="glxgears">
339 <term><command>glxgears</command></term>
340 <listitem>
341 <para>
342 is a GL demo useful for troubleshooting graphics
343 problems.
344 </para>
345 <indexterm zone="mesalib glxgears">
346 <primary sortas="b-glxgears">glxgears</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="glxinfo">
352 <term><command>glxinfo</command></term>
353 <listitem>
354 <para>
355 is a diagnostic program that displays information about the
356 graphics hardware and installed GL libraries.
357 </para>
358 <indexterm zone="mesalib glxinfo">
359 <primary sortas="b-glxinfo">glxinfo</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="libEGL">
365 <term><filename class="libraryfile">libEGL.so</filename></term>
366 <listitem>
367 <para>
368 provides a native platform graphics interface as
369 defined by the EGL-1.4 specification.
370 </para>
371 <indexterm zone="mesalib libEGL">
372 <primary sortas="c-libGL">libEGL.so</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="libgbm">
378 <term><filename class="libraryfile">libgbm.so</filename></term>
379 <listitem>
380 <para>
381 is the <application>Mesa</application> Graphics Buffer
382 Manager library.
383 </para>
384 <indexterm zone="mesalib libgbm">
385 <primary sortas="c-libgbm">libgbm.so</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="libGLESv1_CM">
391 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
392 <listitem>
393 <para>
394 is the <application>Mesa</application> OpenGL ES 1.1 library.
395 </para>
396 <indexterm zone="mesalib libGLESv1_CM">
397 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="libGLES2">
403 <term><filename class="libraryfile">libGLES2.so</filename></term>
404 <listitem>
405 <para>
406 is the <application>Mesa</application> OpenGL ES 2.0 library.
407 </para>
408 <indexterm zone="mesalib libGLES2">
409 <primary sortas="c-libGLES2">libGLES2.so</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="libGL">
415 <term><filename class="libraryfile">libGL.so</filename></term>
416 <listitem>
417 <para>
418 is the main <application>Mesa</application> OpenGL library.
419 </para>
420 <indexterm zone="mesalib libGL">
421 <primary sortas="c-libGL">libGL.so</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="libOSMesa">
427 <term><filename class="libraryfile">libOSMesa.so</filename></term>
428 <listitem>
429 <para>
430 is the <application>Mesa</application> Off-screen Rendering library.
431 </para>
432 <indexterm zone="mesalib libOSMesa">
433 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
434 </indexterm>
435 </listitem>
436 </varlistentry>
437
438 <varlistentry id="libwayland-egl">
439 <term><filename class="libraryfile">libwayland-egl.so</filename></term>
440 <listitem>
441 <para>
442 is the <application>Wayland</application> specific EGL library.
443 </para>
444 <indexterm zone="mesalib libwayland-egl">
445 <primary sortas="c-libwayland-egl">libwayland-egl.so</primary>
446 </indexterm>
447 </listitem>
448 </varlistentry>
449
450 <varlistentry id="libxatracker">
451 <term><filename class="libraryfile">libxatracker.so</filename></term>
452 <listitem>
453 <para>
454 is the Xorg Gallium3D acceleration library.
455 </para>
456 <indexterm zone="mesalib libxatracker">
457 <primary sortas="c-libxatracker">libxatracker.so</primary>
458 </indexterm>
459 </listitem>
460 </varlistentry>
461 </variablelist>
462
463 </sect2>
464
465</sect1>
Note: See TracBrowser for help on using the repository browser.