source: x/installing/mesalib.xml@ 40b0aa7

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 40b0aa7 was 4be4babf, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to mesa-10.6.2

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

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