source: x/installing/mesa.xml@ 8ee0429

systemd-13485
Last change on this file since 8ee0429 was 8ee0429, checked in by Douglas R. Reno <renodr@…>, 8 years ago

(systemd) LFS79 Tags
(systemd) Tons of GCC6 Tags

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

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