source: x/installing/mesalib-systemd.xml@ ec218155

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

Properly merge missing changes.

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

  • Property mode set to 100644
File size: 15.1 KB
RevLine 
[868c7c2]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[868c7c2]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[358cbee6]7 <!ENTITY mesalib-download-http " ">
[5cac005]8 <!ENTITY mesalib-download-ftp
[b245940]9 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
[3eb09b31]10 <!ENTITY mesalib-md5sum "11d3542da1b703618634be840a87b0b2">
[58720a7b]11 <!ENTITY mesalib-size "6.9 MB">
[3eb09b31]12 <!ENTITY mesalib-buildsize "313 MB (additional 1.6 MB for the docs)">
13 <!ENTITY mesalib-time "4.4 SBU">
[a07e9eb]14
[868c7c2]15]>
16
[4a1f001]17<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
[868c7c2]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
[d8838ed5]27 <indexterm zone="mesalib">
[868c7c2]28 <primary sortas="a-MesaLib">MesaLib</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to MesaLib</title>
33
[eb425b4]34 <para>
35 <application>Mesa</application> is an OpenGL compatible 3D graphics
36 library.
37 </para>
[868c7c2]38
[1aa6f05]39 &lfs75_checked;
[ca0c29cc]40
[868c7c2]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[de938a4e]44 <para>
45 Download (HTTP): <ulink url="&mesalib-download-http;"/>
46 </para>
[868c7c2]47 </listitem>
48 <listitem>
[de938a4e]49 <para>
50 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
51 </para>
[868c7c2]52 </listitem>
53 <listitem>
[de938a4e]54 <para>
55 Download MD5 sum: &mesalib-md5sum;
56 </para>
[868c7c2]57 </listitem>
58 <listitem>
[de938a4e]59 <para>
60 Download size: &mesalib-size;
61 </para>
[868c7c2]62 </listitem>
63 <listitem>
[de938a4e]64 <para>
65 Estimated disk space required: &mesalib-buildsize;
66 </para>
[868c7c2]67 </listitem>
68 <listitem>
[de938a4e]69 <para>
70 Estimated build time: &mesalib-time;
71 </para>
[868c7c2]72 </listitem>
73 </itemizedlist>
74
[58720a7b]75 <bridgehead renderas="sect3">Additional Patch</bridgehead>
[a07e9eb]76 <itemizedlist spacing="compact">
77 <listitem>
[eb425b4]78 <para>
79 Recommended patch:
[fd2f9a2]80 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
[a07e9eb]81 (Needed if testing the Xorg installation per BLFS instructions).
[ace536a]82 </para>
[eeb29511]83 </listitem>
84 </itemizedlist>
85
[868c7c2]86 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
87
88 <bridgehead renderas="sect4">Required</bridgehead>
[7b74537e]89 <para role="required">
[1e5a4c26]90 <xref linkend="libxml2"/>,
[56605b9]91 <xref linkend="xorg7-lib"/>, and
92 <xref linkend="libdrm"/>
[eb425b4]93 </para>
[868c7c2]94
[606dfd4]95 <bridgehead renderas="sect4">Recommended</bridgehead>
[eb425b4]96 <para role="recommended">
[b245940]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
[9065a56b]100 llvmpipe which is intended to be the fastest of the three sw rasterizers,
[b245940]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>)
[606dfd4]105 </para>
[60bcf481]106
[07584d8]107 <bridgehead renderas="sect4">Optional</bridgehead>
108 <para role="optional">
[b245940]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)
[07584d8]113 </para>
114
[9065a56b]115 <note>
[fd2f9a2]116 <para>
[dae25ca5]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>
[b245940]122 for Radeon 3D drivers. For an explanation of gallium please see
[9065a56b]123 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"></ulink>.
[fd2f9a2]124 </para>
[9065a56b]125 </note>
[fd2f9a2]126
[60bcf481]127 <note>
[eb425b4]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>
[60bcf481]134 </note>
135
[c5c2654]136 <para condition="html" role="usernotes">User Notes:
[2993b2f]137 <ulink url="&blfs-wiki;/mesalib"/>
138 </para>
[868c7c2]139 </sect2>
140
141 <sect2 role="installation">
142 <title>Installation of MesaLib</title>
143
[eb425b4]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>
[38476a9]153
[a07e9eb]154 <para>
[5f91dfd]155 If you have downloaded the recommended patch, apply it by running the
[a07e9eb]156 following command:
157 </para>
158
[fd2f9a2]159<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
[a07e9eb]160
[eb425b4]161 <para>
162 Install <application>MesaLib</application> by running the following
163 commands:
164 </para>
[868c7c2]165
[b245940]166<screen><userinput>./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
167 --prefix=/usr \
168 --sysconfdir=/etc \
[dff133f]169 --disable-gallium-egl \
[b245940]170 --enable-texture-float \
171 --enable-gles1 \
172 --enable-gles2 \
173 --enable-osmesa \
174 --enable-xa \
175 --enable-gbm \
176 --enable-gallium-gbm \
177 --enable-glx-tls \
178 --with-egl-platforms="drm,x11,wayland" \
179 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[1199613]180make</userinput></screen>
[868c7c2]181
[a07e9eb]182 <para>
[5f91dfd]183 If you have applied the recommended patch, build the demo programs by
[a07e9eb]184 running the following command:
185 </para>
186
[b245940]187<screen><userinput>make -C xdemos DEMOS_PREFIX=/usr</userinput></screen>
[a07e9eb]188
[eb425b4]189 <para>
190 This package does not come with a test suite.
191 </para>
[ff55539b]192
[eb425b4]193 <para>
194 Now, as the <systemitem class="username">root</systemitem> user:
195 </para>
[ff55539b]196
[dae25ca5]197<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]198
199 <para>
[5f91dfd]200 If you have built the demo programs, install them by running the
[a07e9eb]201 following command as the
202 <systemitem class="username">root</systemitem> user:
203 </para>
204
[b245940]205<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=/usr install</userinput></screen>
[a07e9eb]206
[eb425b4]207 <para>
[a07e9eb]208 If desired, install the optional documentation by running
209 the following commands as the
[eb425b4]210 <systemitem class="username">root</systemitem> user:
211 </para>
[91859cf]212
[0d7900a]213<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
[a07e9eb]214cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
[5a883bc4]215
[868c7c2]216 </sect2>
217
[a07e9eb]218 <sect2 role="commands">
219 <title>Command Explanations</title>
220
[95e8211]221 <para>
222 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
223 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
224 "-g -O2". That results in binaries and libraries being built with
[fd2f9a2]225 debugging symbols which make them bigger. Override the default
[4d92247]226 flags to omit -g compiler flag so the final libraries are smaller.
[95e8211]227 </para>
228
[dff133f]229 <para>
230 <parameter>--disable-gallium-egl</parameter>: This switch disables
231 the egl_gallium loader in favor of egl_dri2 loader which supports
232 both DRI and Gallium drivers.
233 </para>
234
[eb425b4]235 <para>
[6825eb89]236 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]237 floating-point textures and render buffers. Please consult
[eb425b4]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>
[6825eb89]243 <parameter>--enable-gles1</parameter>: This switch enables support for
[eb425b4]244 OpenGL ES 1.x API.
245 </para>
246
247 <para>
[6825eb89]248 <parameter>--enable-gles2</parameter>: This switch enables support for
[eb425b4]249 OpenGL ES 2.x API.
250 </para>
[9b3b6a45]251
[2993b2f]252 <para>
[6825eb89]253 <parameter>--enable-osmesa</parameter>: This switch enables building of
[abdc2e6]254 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]255 </para>
256
[eb425b4]257 <para>
[6825eb89]258 <parameter>--enable-xa</parameter>: This switch enables building of the
[eb425b4]259 XA X Acceleration API (Required for VMware 3D Driver).
260 </para>
261
262 <para>
[6825eb89]263 <parameter>--enable-gbm</parameter>: This switch enables building of the
[a07e9eb]264 <application>Mesa</application> Graphics Buffer Manager library.
265 </para>
266
[eb425b4]267 <para>
[6825eb89]268 <parameter>--enable-gallium-gbm</parameter>: This switch enables optional
[a07e9eb]269 GBM state tracker for Gallium.
270 </para>
271
[eb425b4]272 <para>
[6825eb89]273 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]274 Storage) support in GLX.
[eb425b4]275 </para>
276
[a07e9eb]277 <para>
278 <parameter>--with-egl-platforms="..."</parameter>: This parameter
279 controls for which platforms EGL should be built. Available
[b245940]280 platforms are drm, x11 and wayland. Remove <option>wayland</option>
281 from the list if you have not installed
282 <application>Wayland</application>.
[a07e9eb]283 </para>
284
[eb425b4]285 <para>
286 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[a07e9eb]287 controls which Gallium drivers should be built. Available drivers
[dae25ca5]288 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
289 will need to remove r300, r600 and radeonsi from the list if you did
290 not install <application>elfutils</application> and
291 <application>LLVM</application>.
[eb425b4]292 </para>
[f49893b]293
[1f44775e]294 <para>
[dae25ca5]295 <option>--enable-r600-llvm-compiler</option>: Use this switch to
296 enable experimental R600 <application>LLVM</application> backend
297 for graphics shaders which claims to speed up the driver.
[1f44775e]298 </para>
299
[371ff30]300 </sect2>
301
[868c7c2]302 <sect2 role="content">
303 <title>Contents</title>
304
305 <segmentedlist>
[1263ab1e]306 <segtitle>Installed Programs</segtitle>
[868c7c2]307 <segtitle>Installed Libraries</segtitle>
[ba2ac60]308 <segtitle>Installed Directories</segtitle>
[868c7c2]309
310 <seglistitem>
[eb425b4]311 <seg>
312 glxgears and glxinfo
313 </seg>
314 <seg>
[b245940]315 libEGL.so,
316 libgbm.so,
317 libglapi.so,
318 libGLESv1_CM.so,
[5a14a19]319 libGLESv2.so,
[b245940]320 libGL.so,
321 libOSMesa.so,
322 libwayland-egl.so, and
323 libxatracker.so
[eb425b4]324 </seg>
325 <seg>
[b245940]326 /usr/include/EGL,
327 /usr/include/GL,
328 /usr/include/GLES,
329 /usr/include/GLES2,
330 /usr/include/GLES3,
331 /usr/include/KHR,
332 /usr/include/VG,
333 /usr/lib/dri,
334 /usr/lib/egl,
335 /usr/lib/gallium-pipe,
336 /usr/lib/gbm,
337 /usr/lib/vdpau, and
[3a225a0]338 /usr/share/doc/MesaLib-&mesalib-version; (optional)
[eb425b4]339 </seg>
[868c7c2]340 </seglistitem>
341 </segmentedlist>
[d3ef1e4]342
[4437f63]343 <variablelist>
344 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
345 <?dbfo list-presentation="list"?>
346 <?dbhtml list-presentation="table"?>
347
348 <varlistentry id="glxgears">
[eb50ddde]349 <term><command>glxgears</command></term>
[4437f63]350 <listitem>
[eb425b4]351 <para>
352 is a GL demo useful for troubleshooting graphics
353 problems.
354 </para>
[d8838ed5]355 <indexterm zone="mesalib glxgears">
[4437f63]356 <primary sortas="b-glxgears">glxgears</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="glxinfo">
[eb50ddde]362 <term><command>glxinfo</command></term>
[4437f63]363 <listitem>
[eb425b4]364 <para>
365 is a diagnostic program that displays information about the
366 graphics hardware and installed GL libraries.
367 </para>
[d8838ed5]368 <indexterm zone="mesalib glxinfo">
[4437f63]369 <primary sortas="b-glxinfo">glxinfo</primary>
370 </indexterm>
371 </listitem>
372 </varlistentry>
373
[25f6d94]374 <varlistentry id="libEGL">
[a07e9eb]375 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]376 <listitem>
[eb425b4]377 <para>
[a07e9eb]378 provides a native platform graphics interface as
379 defined by the EGL-1.4 specification.
[eb425b4]380 </para>
[25f6d94]381 <indexterm zone="mesalib libEGL">
382 <primary sortas="c-libGL">libEGL.so</primary>
383 </indexterm>
384 </listitem>
385 </varlistentry>
386
[a07e9eb]387 <varlistentry id="libgbm">
388 <term><filename class="libraryfile">libgbm.so</filename></term>
389 <listitem>
390 <para>
391 is the <application>Mesa</application> Graphics Buffer
[0d7900a]392 Manager library.
[a07e9eb]393 </para>
394 <indexterm zone="mesalib libgbm">
395 <primary sortas="c-libgbm">libgbm.so</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
400 <varlistentry id="libGLESv1_CM">
401 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
402 <listitem>
403 <para>
404 is the <application>Mesa</application> OpenGL ES 1.1 library.
405 </para>
406 <indexterm zone="mesalib libGLESv1_CM">
407 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="libGLES2">
413 <term><filename class="libraryfile">libGLES2.so</filename></term>
414 <listitem>
415 <para>
416 is the <application>Mesa</application> OpenGL ES 2.0 library.
417 </para>
418 <indexterm zone="mesalib libGLES2">
419 <primary sortas="c-libGLES2">libGLES2.so</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
[ba2ac60]424 <varlistentry id="libGL">
[a07e9eb]425 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]426 <listitem>
[eb425b4]427 <para>
[a07e9eb]428 is the main <application>Mesa</application> OpenGL library.
[eb425b4]429 </para>
[ba2ac60]430 <indexterm zone="mesalib libGL">
431 <primary sortas="c-libGL">libGL.so</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
[dff133f]436 <varlistentry id="libOSMesa">
437 <term><filename class="libraryfile">libOSMesa.so</filename></term>
[a07e9eb]438 <listitem>
439 <para>
[dff133f]440 is the <application>Mesa</application> Off-screen Rendering library.
[a07e9eb]441 </para>
[dff133f]442 <indexterm zone="mesalib libOSMesa">
443 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
[a07e9eb]444 </indexterm>
445 </listitem>
446 </varlistentry>
447
[dff133f]448 <varlistentry id="libwayland-egl">
449 <term><filename class="libraryfile">libwayland-egl.so</filename></term>
[2993b2f]450 <listitem>
451 <para>
[dff133f]452 is the <application>Wayland</application> specific EGL library.
[2993b2f]453 </para>
[dff133f]454 <indexterm zone="mesalib libwayland-egl">
455 <primary sortas="c-libwayland-egl">libwayland-egl.so</primary>
[2993b2f]456 </indexterm>
457 </listitem>
458 </varlistentry>
459
[bad6be19]460 <varlistentry id="libxatracker">
[a07e9eb]461 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]462 <listitem>
[eb425b4]463 <para>
[a07e9eb]464 is the Xorg Gallium3D acceleration library.
[eb425b4]465 </para>
[bad6be19]466 <indexterm zone="mesalib libxatracker">
467 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]468 </indexterm>
469 </listitem>
470 </varlistentry>
[4437f63]471 </variablelist>
472
[868c7c2]473 </sect2>
[d3ef1e4]474
[868c7c2]475</sect1>
Note: See TracBrowser for help on using the repository browser.