source: x/installing/mesalib.xml@ 59030c9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 59030c9 was 59030c9, checked in by Igor Živković <igor@…>, 9 years ago

Update to mesa-10.4.3.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15389 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.2 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
[c5f6157a]9 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
[59030c9]10 <!ENTITY mesalib-md5sum "be86c4ee226f8ca28b7d4c728c350b01">
11 <!ENTITY mesalib-size "7.2 MB">
[10c4f1f]12 <!ENTITY mesalib-buildsize "0.2 GB (additional 2 MB for the docs)">
[59030c9]13 <!ENTITY mesalib-time "6.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
[59d9079]39 &lfs76_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
[625079b6]75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[a07e9eb]76 <itemizedlist spacing="compact">
77 <listitem>
[eb425b4]78 <para>
79 Recommended patch:
[a748a00]80 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
[1cdb1f7]81 (installs 2 demo programs for testing MesaLib - not needed if you
82 install the
83 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
84 package)
[ace536a]85 </para>
[eeb29511]86 </listitem>
87 </itemizedlist>
88
[868c7c2]89 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
90
91 <bridgehead renderas="sect4">Required</bridgehead>
[7b74537e]92 <para role="required">
[5bee197]93 <xref linkend="xorg7-lib"/>,
94 <xref linkend="libdrm"/>, and
95 <xref linkend="python2"/>
[eb425b4]96 </para>
[868c7c2]97
[606dfd4]98 <bridgehead renderas="sect4">Recommended</bridgehead>
[eb425b4]99 <para role="recommended">
[7be98fa1]100 <xref linkend="elfutils"/> (required for Gallium3D radeonsi driver),
[9065a56b]101 <xref linkend="libvdpau"/> (to build VDPAU drivers),
[5e60392]102 <xref linkend="llvm"/> (required for Gallium3D r300 and radeonsi drivers and also for
[9065a56b]103 llvmpipe which is intended to be the fastest of the three sw rasterizers,
[3a225a0]104 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink> )
[606dfd4]105 </para>
[60bcf481]106
[07584d8]107 <bridgehead renderas="sect4">Optional</bridgehead>
108 <para role="optional">
[58720a7b]109 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
[1cdb1f7]110 (provides more than 300 extra demos to test
111 <application>MesaLib</application>; this includes the same programs
112 added by the patch above), and
[07584d8]113 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
114 </para>
115
[9065a56b]116 <note>
[fd2f9a2]117 <para>
[dae25ca5]118 The instructions below assume that <application>elfutils</application>
119 and <application>LLVM</application> are installed. You will
120 need to modify the instructions if you choose not to install them.
121 Please note that <application>elfutils</application> and
122 <application>LLVM</application> are <emphasis>required</emphasis>
[5e60392]123 for Gallium3D r300 and radeonsi drivers. For an explanation of Gallium3D please see
[9065a56b]124 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"></ulink>.
[fd2f9a2]125 </para>
[9065a56b]126 </note>
[fd2f9a2]127
[c5c2654]128 <para condition="html" role="usernotes">User Notes:
[2993b2f]129 <ulink url="&blfs-wiki;/mesalib"/>
130 </para>
[868c7c2]131 </sect2>
132
133 <sect2 role="installation">
134 <title>Installation of MesaLib</title>
135
[eb425b4]136 <note>
137 <para>
138 Unlike other packages, the
139 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
140 archive will extract to the
141 <filename class="directory">Mesa-&mesalib-version;</filename>
142 directory.
143 </para>
144 </note>
[38476a9]145
[a07e9eb]146 <para>
[51c08f3]147 If you have downloaded the xdemos patch (needed if testing the Xorg
148 installation per BLFS instructions), apply it by running the following
149 command:
[a07e9eb]150 </para>
151
[a748a00]152<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
[a07e9eb]153
[eb425b4]154 <para>
155 Install <application>MesaLib</application> by running the following
156 commands:
157 </para>
[868c7c2]158
[625079b6]159<screen><userinput>./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" \
[5f26d66f]160 --prefix=$XORG_PREFIX \
[a07e9eb]161 --sysconfdir=/etc \
162 --enable-texture-float \
163 --enable-gles1 \
164 --enable-gles2 \
[2993b2f]165 --enable-osmesa \
[a07e9eb]166 --enable-xa \
167 --enable-gbm \
168 --enable-glx-tls \
169 --with-egl-platforms="drm,x11" \
[1f44775e]170 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[1199613]171make</userinput></screen>
[868c7c2]172
[a07e9eb]173 <para>
[7dd7061]174 If you have applied the xdemos patch, build the demo programs by
[a07e9eb]175 running the following command:
176 </para>
177
[5f26d66f]178<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</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
[5f26d66f]196<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX 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
[eb425b4]220 <para>
[6825eb89]221 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]222 floating-point textures and render buffers. Please consult
[eb425b4]223 <filename>docs/patents.txt</filename> to see if there are
224 any legal issues if you use this feature.
225 </para>
226
227 <para>
[6825eb89]228 <parameter>--enable-gles1</parameter>: This switch enables support for
[eb425b4]229 OpenGL ES 1.x API.
230 </para>
231
232 <para>
[6825eb89]233 <parameter>--enable-gles2</parameter>: This switch enables support for
[eb425b4]234 OpenGL ES 2.x API.
235 </para>
[9b3b6a45]236
[2993b2f]237 <para>
[6825eb89]238 <parameter>--enable-osmesa</parameter>: This switch enables building of
[abdc2e6]239 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]240 </para>
241
[eb425b4]242 <para>
[6825eb89]243 <parameter>--enable-xa</parameter>: This switch enables building of the
[eb425b4]244 XA X Acceleration API (Required for VMware 3D Driver).
245 </para>
246
247 <para>
[6825eb89]248 <parameter>--enable-gbm</parameter>: This switch enables building of the
[a07e9eb]249 <application>Mesa</application> Graphics Buffer Manager library.
250 </para>
251
[eb425b4]252 <para>
[6825eb89]253 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]254 Storage) support in GLX.
[eb425b4]255 </para>
256
[a07e9eb]257 <para>
258 <parameter>--with-egl-platforms="..."</parameter>: This parameter
259 controls for which platforms EGL should be built. Available
260 platforms are drm, x11 and wayland.
261 </para>
262
[eb425b4]263 <para>
264 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[5e60392]265 controls which Gallium3D drivers should be built. Available drivers
[dae25ca5]266 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
[5e60392]267 will need to remove r300 and radeonsi from the list if you did
[dae25ca5]268 not install <application>elfutils</application> and
269 <application>LLVM</application>.
[eb425b4]270 </para>
[f49893b]271
[1f44775e]272 <para>
[dae25ca5]273 <option>--enable-r600-llvm-compiler</option>: Use this switch to
274 enable experimental R600 <application>LLVM</application> backend
275 for graphics shaders which claims to speed up the driver.
[1f44775e]276 </para>
277
[625079b6]278 <para>
279 <option>--enable-sysfs</option>: Use this switch to enable simple PCI
280 identification method, required for building DRI on systems without udev.
281 </para>
282
[371ff30]283 </sect2>
284
[868c7c2]285 <sect2 role="content">
286 <title>Contents</title>
287
288 <segmentedlist>
[1263ab1e]289 <segtitle>Installed Programs</segtitle>
[868c7c2]290 <segtitle>Installed Libraries</segtitle>
[ba2ac60]291 <segtitle>Installed Directories</segtitle>
[868c7c2]292
293 <seglistitem>
[eb425b4]294 <seg>
295 glxgears and glxinfo
296 </seg>
297 <seg>
[ed6d075]298 libEGL.so,
[c5f6157a]299 libgbm.so,
300 libglapi.so,
[ed6d075]301 libGLESv1_CM.so,
[5a14a19]302 libGLESv2.so,
[c5f6157a]303 libGL.so,
304 libOSMesa.so, and
[ed6d075]305 libxatracker.so
306 <!--libXvMCnouveau.so and libXvMCr600.so-->
[eb425b4]307 </seg>
308 <seg>
[5f26d66f]309 $XORG_PREFIX/include/EGL,
[177e2f9]310 $XORG_PREFIX/include/GL,
[5f26d66f]311 $XORG_PREFIX/include/GLES,
312 $XORG_PREFIX/include/GLES2,
313 $XORG_PREFIX/include/GLES3,
314 $XORG_PREFIX/include/KHR,
315 $XORG_PREFIX/lib/dri,
[3eb09b31]316 $XORG_PREFIX/lib/vdpau, and
[3a225a0]317 /usr/share/doc/MesaLib-&mesalib-version; (optional)
[eb425b4]318 </seg>
[868c7c2]319 </seglistitem>
320 </segmentedlist>
[d3ef1e4]321
[4437f63]322 <variablelist>
323 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
324 <?dbfo list-presentation="list"?>
325 <?dbhtml list-presentation="table"?>
326
327 <varlistentry id="glxgears">
[eb50ddde]328 <term><command>glxgears</command></term>
[4437f63]329 <listitem>
[eb425b4]330 <para>
331 is a GL demo useful for troubleshooting graphics
332 problems.
333 </para>
[d8838ed5]334 <indexterm zone="mesalib glxgears">
[4437f63]335 <primary sortas="b-glxgears">glxgears</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="glxinfo">
[eb50ddde]341 <term><command>glxinfo</command></term>
[4437f63]342 <listitem>
[eb425b4]343 <para>
344 is a diagnostic program that displays information about the
345 graphics hardware and installed GL libraries.
346 </para>
[d8838ed5]347 <indexterm zone="mesalib glxinfo">
[4437f63]348 <primary sortas="b-glxinfo">glxinfo</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
[25f6d94]353 <varlistentry id="libEGL">
[a07e9eb]354 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]355 <listitem>
[eb425b4]356 <para>
[a07e9eb]357 provides a native platform graphics interface as
358 defined by the EGL-1.4 specification.
[eb425b4]359 </para>
[25f6d94]360 <indexterm zone="mesalib libEGL">
361 <primary sortas="c-libGL">libEGL.so</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
[a07e9eb]366 <varlistentry id="libgbm">
367 <term><filename class="libraryfile">libgbm.so</filename></term>
368 <listitem>
369 <para>
370 is the <application>Mesa</application> Graphics Buffer
[0d7900a]371 Manager library.
[a07e9eb]372 </para>
373 <indexterm zone="mesalib libgbm">
374 <primary sortas="c-libgbm">libgbm.so</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="libGLESv1_CM">
380 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
381 <listitem>
382 <para>
383 is the <application>Mesa</application> OpenGL ES 1.1 library.
384 </para>
385 <indexterm zone="mesalib libGLESv1_CM">
386 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="libGLES2">
392 <term><filename class="libraryfile">libGLES2.so</filename></term>
393 <listitem>
394 <para>
395 is the <application>Mesa</application> OpenGL ES 2.0 library.
396 </para>
397 <indexterm zone="mesalib libGLES2">
398 <primary sortas="c-libGLES2">libGLES2.so</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
[ba2ac60]403 <varlistentry id="libGL">
[a07e9eb]404 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]405 <listitem>
[eb425b4]406 <para>
[a07e9eb]407 is the main <application>Mesa</application> OpenGL library.
[eb425b4]408 </para>
[ba2ac60]409 <indexterm zone="mesalib libGL">
410 <primary sortas="c-libGL">libGL.so</primary>
411 </indexterm>
412 </listitem>
413 </varlistentry>
414
[2993b2f]415 <varlistentry id="libOSMesa">
416 <term><filename class="libraryfile">libOSMesa.so</filename></term>
417 <listitem>
418 <para>
419 is the <application>Mesa</application> Off-screen Rendering library.
420 </para>
421 <indexterm zone="mesalib libOSMesa">
422 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
[bad6be19]427 <varlistentry id="libxatracker">
[a07e9eb]428 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]429 <listitem>
[eb425b4]430 <para>
[a07e9eb]431 is the Xorg Gallium3D acceleration library.
[eb425b4]432 </para>
[bad6be19]433 <indexterm zone="mesalib libxatracker">
434 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]435 </indexterm>
436 </listitem>
437 </varlistentry>
[4437f63]438 </variablelist>
439
[868c7c2]440 </sect2>
[d3ef1e4]441
[868c7c2]442</sect1>
Note: See TracBrowser for help on using the repository browser.