source: x/installing/mesalib-systemd.xml@ 4ffc987

systemd-11177
Last change on this file since 4ffc987 was 4ffc987, checked in by Krejzi <krejzi@…>, 10 years ago

Modify Cairo and MesaLib for Weston. Install MesaLib into /usr, because even though it depends on Xorg, it's not part of Xorg and other projects beside Xorg rely on it.

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