source: x/installing/mesalib-systemd.xml@ 647017d

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

Merged mesalib changes from trunk.

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

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