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

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

Bump xdemos patch.

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

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