source: x/installing/mesalib-systemd.xml@ 70eab9cd

krejzi/svn
Last change on this file since 70eab9cd was 5b5c0e9, checked in by Krejzi <krejzi@…>, 10 years ago

Convert xorg installing section.

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

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