source: x/installing/mesalib.xml@ 0e5e1219

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0e5e1219 was d9839520, checked in by Pierre Labastie <pieere@…>, 10 years ago

Update to Mesa-10.5.2

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

  • Property mode set to 100644
File size: 14.0 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
[39dd48b]9 "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/mesa-&mesalib-version;.tar.xz">
[d9839520]10 <!ENTITY mesalib-md5sum "528b3b0c0ff330766b9788da04a9fabd">
[39dd48b]11 <!ENTITY mesalib-size "6.7 MB">
[d9839520]12 <!ENTITY mesalib-buildsize "230 MB (additional 2 MB for the docs)">
13 <!ENTITY mesalib-time "6.2 SBU (additional 0.5 SBU for tests)">
[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
[863f350]39 &lfs77_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:
[39dd48b]80 <ulink
81 url="&patch-root;/mesa-&mesalib-version;-add_xdemos-1.patch"/>
[1cdb1f7]82 (installs 2 demo programs for testing MesaLib - not needed if you
[39dd48b]83 install the <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">
84 mesa-demos</ulink> 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"/>,
[70113bec]94 <xref linkend="libdrm"/>,
95 <xref linkend="mako"/>, and
[5bee197]96 <xref linkend="python2"/>
[eb425b4]97 </para>
[868c7c2]98
[606dfd4]99 <bridgehead renderas="sect4">Recommended</bridgehead>
[eb425b4]100 <para role="recommended">
[7be98fa1]101 <xref linkend="elfutils"/> (required for Gallium3D radeonsi driver),
[9065a56b]102 <xref linkend="libvdpau"/> (to build VDPAU drivers),
[5e60392]103 <xref linkend="llvm"/> (required for Gallium3D r300 and radeonsi drivers and also for
[9065a56b]104 llvmpipe which is intended to be the fastest of the three sw rasterizers,
[3a225a0]105 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink> )
[606dfd4]106 </para>
[60bcf481]107
[07584d8]108 <bridgehead renderas="sect4">Optional</bridgehead>
109 <para role="optional">
[58720a7b]110 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
[1cdb1f7]111 (provides more than 300 extra demos to test
112 <application>MesaLib</application>; this includes the same programs
113 added by the patch above), and
[07584d8]114 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
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>
[a640d58]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:
[2993b2f]131 <ulink url="&blfs-wiki;/mesalib"/>
132 </para>
[868c7c2]133 </sect2>
134
135 <sect2 role="installation">
136 <title>Installation of MesaLib</title>
137
[a07e9eb]138 <para>
[51c08f3]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
[39dd48b]144<screen><userinput>patch -Np1 -i ../mesa-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
[a07e9eb]145
[eb425b4]146 <para>
147 Install <application>MesaLib</application> by running the following
148 commands:
149 </para>
[868c7c2]150
[d441522d]151<screen><userinput>autoreconf -f -i &amp;&amp;
152./configure CFLAGS='-O2' CXXFLAGS='-O2' \
[5f26d66f]153 --prefix=$XORG_PREFIX \
[a07e9eb]154 --sysconfdir=/etc \
155 --enable-texture-float \
156 --enable-gles1 \
157 --enable-gles2 \
[2993b2f]158 --enable-osmesa \
[a07e9eb]159 --enable-xa \
160 --enable-gbm \
161 --enable-glx-tls \
162 --with-egl-platforms="drm,x11" \
[1f44775e]163 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[1199613]164make</userinput></screen>
[868c7c2]165
[a07e9eb]166 <para>
[7dd7061]167 If you have applied the xdemos patch, build the demo programs by
[a07e9eb]168 running the following command:
169 </para>
170
[5f26d66f]171<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
[a07e9eb]172
[eb425b4]173 <para>
[d9839520]174 To test the results, issue: <command>make check</command>.
[eb425b4]175 </para>
[ff55539b]176
[eb425b4]177 <para>
178 Now, as the <systemitem class="username">root</systemitem> user:
179 </para>
[ff55539b]180
[dae25ca5]181<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]182
183 <para>
[5f91dfd]184 If you have built the demo programs, install them by running the
[a07e9eb]185 following command as the
186 <systemitem class="username">root</systemitem> user:
187 </para>
188
[5f26d66f]189<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
[a07e9eb]190
[eb425b4]191 <para>
[a07e9eb]192 If desired, install the optional documentation by running
193 the following commands as the
[eb425b4]194 <systemitem class="username">root</systemitem> user:
195 </para>
[91859cf]196
[39dd48b]197<screen role="root"><userinput>install -v -dm755 /usr/share/doc/mesa-&mesalib-version; &amp;&amp;
198cp -rfv docs/* /usr/share/doc/mesa-&mesalib-version;</userinput></screen>
[5a883bc4]199
[868c7c2]200 </sect2>
201
[a07e9eb]202 <sect2 role="commands">
203 <title>Command Explanations</title>
204
[95e8211]205 <para>
206 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
207 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
208 "-g -O2". That results in binaries and libraries being built with
[fd2f9a2]209 debugging symbols which make them bigger. Override the default
[4d92247]210 flags to omit -g compiler flag so the final libraries are smaller.
[95e8211]211 </para>
212
[eb425b4]213 <para>
[6825eb89]214 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]215 floating-point textures and render buffers. Please consult
[eb425b4]216 <filename>docs/patents.txt</filename> to see if there are
217 any legal issues if you use this feature.
218 </para>
219
220 <para>
[6825eb89]221 <parameter>--enable-gles1</parameter>: This switch enables support for
[eb425b4]222 OpenGL ES 1.x API.
223 </para>
224
225 <para>
[6825eb89]226 <parameter>--enable-gles2</parameter>: This switch enables support for
[eb425b4]227 OpenGL ES 2.x API.
228 </para>
[9b3b6a45]229
[2993b2f]230 <para>
[6825eb89]231 <parameter>--enable-osmesa</parameter>: This switch enables building of
[abdc2e6]232 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]233 </para>
234
[eb425b4]235 <para>
[6825eb89]236 <parameter>--enable-xa</parameter>: This switch enables building of the
[eb425b4]237 XA X Acceleration API (Required for VMware 3D Driver).
238 </para>
239
240 <para>
[6825eb89]241 <parameter>--enable-gbm</parameter>: This switch enables building of the
[a07e9eb]242 <application>Mesa</application> Graphics Buffer Manager library.
243 </para>
244
[eb425b4]245 <para>
[6825eb89]246 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]247 Storage) support in GLX.
[eb425b4]248 </para>
249
[a07e9eb]250 <para>
251 <parameter>--with-egl-platforms="..."</parameter>: This parameter
252 controls for which platforms EGL should be built. Available
253 platforms are drm, x11 and wayland.
254 </para>
255
[eb425b4]256 <para>
257 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[5e60392]258 controls which Gallium3D drivers should be built. Available drivers
[dae25ca5]259 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
[5e60392]260 will need to remove r300 and radeonsi from the list if you did
[dae25ca5]261 not install <application>elfutils</application> and
262 <application>LLVM</application>.
[eb425b4]263 </para>
[f49893b]264
[1f44775e]265 <para>
[dae25ca5]266 <option>--enable-r600-llvm-compiler</option>: Use this switch to
267 enable experimental R600 <application>LLVM</application> backend
268 for graphics shaders which claims to speed up the driver.
[1f44775e]269 </para>
270
[625079b6]271 <para>
272 <option>--enable-sysfs</option>: Use this switch to enable simple PCI
273 identification method, required for building DRI on systems without udev.
274 </para>
275
[371ff30]276 </sect2>
277
[868c7c2]278 <sect2 role="content">
279 <title>Contents</title>
280
281 <segmentedlist>
[1263ab1e]282 <segtitle>Installed Programs</segtitle>
[868c7c2]283 <segtitle>Installed Libraries</segtitle>
[ba2ac60]284 <segtitle>Installed Directories</segtitle>
[868c7c2]285
286 <seglistitem>
[eb425b4]287 <seg>
288 glxgears and glxinfo
289 </seg>
290 <seg>
[ed6d075]291 libEGL.so,
[c5f6157a]292 libgbm.so,
293 libglapi.so,
[ed6d075]294 libGLESv1_CM.so,
[5a14a19]295 libGLESv2.so,
[c5f6157a]296 libGL.so,
[a640d58]297 libOSMesa.so,
[b3be1cd]298 libxatracker.so,
[a640d58]299 libXvMCnouveau.so,
300 and libXvMCr600.so
[eb425b4]301 </seg>
302 <seg>
[5f26d66f]303 $XORG_PREFIX/include/EGL,
[177e2f9]304 $XORG_PREFIX/include/GL,
[5f26d66f]305 $XORG_PREFIX/include/GLES,
306 $XORG_PREFIX/include/GLES2,
307 $XORG_PREFIX/include/GLES3,
308 $XORG_PREFIX/include/KHR,
309 $XORG_PREFIX/lib/dri,
[3eb09b31]310 $XORG_PREFIX/lib/vdpau, and
[39dd48b]311 /usr/share/doc/mesa-&mesalib-version; (optional)
[eb425b4]312 </seg>
[868c7c2]313 </seglistitem>
314 </segmentedlist>
[d3ef1e4]315
[4437f63]316 <variablelist>
317 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
318 <?dbfo list-presentation="list"?>
319 <?dbhtml list-presentation="table"?>
320
321 <varlistentry id="glxgears">
[eb50ddde]322 <term><command>glxgears</command></term>
[4437f63]323 <listitem>
[eb425b4]324 <para>
325 is a GL demo useful for troubleshooting graphics
326 problems.
327 </para>
[d8838ed5]328 <indexterm zone="mesalib glxgears">
[4437f63]329 <primary sortas="b-glxgears">glxgears</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="glxinfo">
[eb50ddde]335 <term><command>glxinfo</command></term>
[4437f63]336 <listitem>
[eb425b4]337 <para>
338 is a diagnostic program that displays information about the
339 graphics hardware and installed GL libraries.
340 </para>
[d8838ed5]341 <indexterm zone="mesalib glxinfo">
[4437f63]342 <primary sortas="b-glxinfo">glxinfo</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
346
[25f6d94]347 <varlistentry id="libEGL">
[a07e9eb]348 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]349 <listitem>
[eb425b4]350 <para>
[a07e9eb]351 provides a native platform graphics interface as
352 defined by the EGL-1.4 specification.
[eb425b4]353 </para>
[25f6d94]354 <indexterm zone="mesalib libEGL">
355 <primary sortas="c-libGL">libEGL.so</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
[a07e9eb]360 <varlistentry id="libgbm">
361 <term><filename class="libraryfile">libgbm.so</filename></term>
362 <listitem>
363 <para>
364 is the <application>Mesa</application> Graphics Buffer
[0d7900a]365 Manager library.
[a07e9eb]366 </para>
367 <indexterm zone="mesalib libgbm">
368 <primary sortas="c-libgbm">libgbm.so</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="libGLESv1_CM">
374 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
375 <listitem>
376 <para>
377 is the <application>Mesa</application> OpenGL ES 1.1 library.
378 </para>
379 <indexterm zone="mesalib libGLESv1_CM">
380 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 <varlistentry id="libGLES2">
386 <term><filename class="libraryfile">libGLES2.so</filename></term>
387 <listitem>
388 <para>
389 is the <application>Mesa</application> OpenGL ES 2.0 library.
390 </para>
391 <indexterm zone="mesalib libGLES2">
392 <primary sortas="c-libGLES2">libGLES2.so</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
[ba2ac60]397 <varlistentry id="libGL">
[a07e9eb]398 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]399 <listitem>
[eb425b4]400 <para>
[a07e9eb]401 is the main <application>Mesa</application> OpenGL library.
[eb425b4]402 </para>
[ba2ac60]403 <indexterm zone="mesalib libGL">
404 <primary sortas="c-libGL">libGL.so</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
[2993b2f]409 <varlistentry id="libOSMesa">
410 <term><filename class="libraryfile">libOSMesa.so</filename></term>
411 <listitem>
412 <para>
413 is the <application>Mesa</application> Off-screen Rendering library.
414 </para>
415 <indexterm zone="mesalib libOSMesa">
416 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
[bad6be19]421 <varlistentry id="libxatracker">
[a07e9eb]422 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]423 <listitem>
[eb425b4]424 <para>
[a07e9eb]425 is the Xorg Gallium3D acceleration library.
[eb425b4]426 </para>
[bad6be19]427 <indexterm zone="mesalib libxatracker">
428 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]429 </indexterm>
430 </listitem>
431 </varlistentry>
[4437f63]432 </variablelist>
433
[868c7c2]434 </sect2>
[d3ef1e4]435
[868c7c2]436</sect1>
Note: See TracBrowser for help on using the repository browser.