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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 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 8b5769f was b4994ec, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to mesa-17.0.4.
Update to XML-Simple-2.24 (Perl Module).
Update to sshfs-2.9.

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

  • Property mode set to 100644
File size: 15.5 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
[c0a8c0dc]7 <!ENTITY mesa-download-http "https://mesa.freedesktop.org/archive/mesa-&mesa-version;.tar.xz">
8 <!ENTITY mesa-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/mesa-&mesa-version;.tar.xz">
[b4994ec]9 <!ENTITY mesa-md5sum "4a16cfc1c6d034cc17314b866eada628">
[0cc9262]10 <!ENTITY mesa-size "9.0 MB">
[b4994ec]11 <!ENTITY mesa-buildsize "310 MB (with demos and docs, add 49 MB for tests)">
12 <!ENTITY mesa-time "3.7 SBU (using parallelism=4 with demos and docs, add 0.6 SBU for tests)">
[868c7c2]13]>
14
[7a395d1]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
[7a395d1]23 <title>Mesa-&mesa-version;</title>
[868c7c2]24
[7a395d1]25 <indexterm zone="mesa">
26 <primary sortas="a-Mesa">Mesa</primary>
[868c7c2]27 </indexterm>
28
29 <sect2 role="package">
[7a395d1]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
[8b0eef4]37 &lfs80_checked;
[ca0c29cc]38
[868c7c2]39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[de938a4e]42 <para>
[7a395d1]43 Download (HTTP): <ulink url="&mesa-download-http;"/>
[de938a4e]44 </para>
[868c7c2]45 </listitem>
46 <listitem>
[de938a4e]47 <para>
[7a395d1]48 Download (FTP): <ulink url="&mesa-download-ftp;"/>
[de938a4e]49 </para>
[868c7c2]50 </listitem>
51 <listitem>
[de938a4e]52 <para>
[7a395d1]53 Download MD5 sum: &mesa-md5sum;
[de938a4e]54 </para>
[868c7c2]55 </listitem>
56 <listitem>
[de938a4e]57 <para>
[7a395d1]58 Download size: &mesa-size;
[de938a4e]59 </para>
[868c7c2]60 </listitem>
61 <listitem>
[de938a4e]62 <para>
[7a395d1]63 Estimated disk space required: &mesa-buildsize;
[de938a4e]64 </para>
[868c7c2]65 </listitem>
66 <listitem>
[de938a4e]67 <para>
[7a395d1]68 Estimated build time: &mesa-time;
[de938a4e]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
[27747668]79 url="&patch-root;/mesa-&mesa-version;-add_xdemos-1.patch"/>
[7a395d1]80 (installs 2 demo programs for testing Mesa - 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
[7a395d1]87 <bridgehead renderas="sect3">Mesa Dependencies</bridgehead>
[868c7c2]88
89 <bridgehead renderas="sect4">Required</bridgehead>
[7b74537e]90 <para role="required">
[df343952]91 <xref linkend="xorg7-lib"/>,
92 <xref linkend="libdrm"/>, and
93 <xref linkend="python2"/>
[eb425b4]94 </para>
[868c7c2]95
[606dfd4]96 <bridgehead renderas="sect4">Recommended</bridgehead>
[eb425b4]97 <para role="recommended">
[973dabe9]98 <xref linkend="elfutils"/> (required for the radeonsi driver),
99
[df343952]100 <phrase revision="systemd"><xref linkend="libva"/> (to build drivers for
101 supported hardware, note that there is a circular dependency. You must
102 build <application>libva</application> first without EGL and GLX support,
103 install this package, and rebuild <application>libva</application>.),</phrase>
[973dabe9]104
[9065a56b]105 <xref linkend="libvdpau"/> (to build VDPAU drivers),
[973dabe9]106
[8a154834]107 <xref linkend="llvm"/> (required for Gallium3D, r300, and radeonsi
[a85e5ce]108 drivers and for the llvmpipe software rasterizer. See <ulink
109 url="http://www.mesa3d.org/systems.html"/> for more information)<phrase
110 revision="systemd">, and
111 <xref linkend="wayland"/> (required for <xref linkend='plasma5-build'/>,
112 <xref linkend='lxqt'/>, and GNOME)</phrase>
[606dfd4]113 </para>
[60bcf481]114
[07584d8]115 <bridgehead renderas="sect4">Optional</bridgehead>
116 <para role="optional">
[57bcce9]117 <xref linkend="libgcrypt"/>,
118 <xref linkend="nettle"/>,
[a85e5ce]119 <phrase revision="sysv"><xref linkend="wayland"/> (required for
120 <xref linkend='plasma5-build'/> and <xref linkend='lxqt'/>),</phrase>
[973dabe9]121
[58720a7b]122 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
[1cdb1f7]123 (provides more than 300 extra demos to test
[973dabe9]124 <application>Mesa</application>; this includes the same programs added by
125 the patch above), and
126
[c18b8f23]127 <ulink url="http://omxil.sourceforge.net/">Bellagio OpenMAX Integration
[f3429309]128 Layer</ulink> (for mobile platforms)
[07584d8]129 </para>
130
[9065a56b]131 <note>
[fd2f9a2]132 <para>
[dae25ca5]133 The instructions below assume that <application>elfutils</application>
[df343952]134 and <application>LLVM</application> with the r600/amdgpu and host
135 backends are installed. You will need to modify the instructions if you
[973dabe9]136 choose not to install them. For an explanation of Gallium3D see
[e83a3bb]137 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"/>.
[fd2f9a2]138 </para>
[9065a56b]139 </note>
[fd2f9a2]140
[c5c2654]141 <para condition="html" role="usernotes">User Notes:
[7a395d1]142 <ulink url="&blfs-wiki;/mesa"/>
[2993b2f]143 </para>
[868c7c2]144 </sect2>
145
146 <sect2 role="installation">
[7a395d1]147 <title>Installation of Mesa</title>
[868c7c2]148
[a07e9eb]149 <para>
[51c08f3]150 If you have downloaded the xdemos patch (needed if testing the Xorg
151 installation per BLFS instructions), apply it by running the following
152 command:
[a07e9eb]153 </para>
154
[27747668]155<screen><userinput>patch -Np1 -i ../mesa-&mesa-version;-add_xdemos-1.patch</userinput></screen>
[a07e9eb]156
[054e926]157 <!-- Note that freedreno, vc4, and virgl all need special support from
158 libdrm - renodr -->
[f9f0ea92]159 <para>Now, select the drivers you wish to install. The available drivers
160 are i915, ilo, nouveau, r300, r600, radeonsi, freedreno, svga, swrast, vc4,
161 and virgl. If the Gallium drivers are not specified, the default is
162 'r300,r600,svga,swrast'. Modify the command below for any desired drivers.
163 The listed drivers below will cover most modern video cards. For help in
164 selecting drivers see
165 <ulink url='http://www.mesa3d.org/systems.html'/>.</para>
[973dabe9]166
[f2afe02]167<screen><userinput>GLL_DRV="i915,r600,nouveau,radeonsi,svga,swrast"</userinput></screen>
[973dabe9]168
[eb425b4]169 <para>
[7a395d1]170 Install <application>Mesa</application> by running the following
[eb425b4]171 commands:
172 </para>
[868c7c2]173
[a85e5ce]174 <note revision="sysv">
[4e845a4]175 <para>
176 Add wayland to the <parameter>--with-egl-platforms</parameter> switch
177 below if you plan on building
[a85e5ce]178 <xref linkend='plasma5-build'/> or <xref linkend='lxqt'/>.
[4e845a4]179 </para>
[f97d5f6]180 </note>
181
[a85e5ce]182<screen revision="sysv"><userinput>sed -i "/pthread_stubs_possible=/s/yes/no/" configure.ac &amp;&amp;
[8a154834]183
[b3b7e36]184./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
[5ee1266]185 --prefix=$XORG_PREFIX \
186 --sysconfdir=/etc \
187 --enable-texture-float \
188 --enable-osmesa \
189 --enable-xa \
190 --enable-glx-tls \
191 --with-egl-platforms="drm,x11" \
192 --with-gallium-drivers=$GLL_DRV &amp;&amp;
193
194unset GLL_DRV &amp;&amp;
195
[a85e5ce]196make</userinput></screen>
197<screen revision="systemd"><userinput>sed -i "/pthread_stubs_possible=/s/yes/no/" configure.ac &amp;&amp;
198
199./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
200 --prefix=$XORG_PREFIX \
201 --sysconfdir=/etc \
202 --enable-texture-float \
203 --enable-osmesa \
204 --enable-xa \
205 --enable-glx-tls \
206 --with-egl-platforms="drm,x11,wayland" \
207 --with-gallium-drivers=$GLL_DRV &amp;&amp;
208
209unset GLL_DRV &amp;&amp;
210
[1199613]211make</userinput></screen>
[868c7c2]212
[a07e9eb]213 <para>
[7dd7061]214 If you have applied the xdemos patch, build the demo programs by
[a07e9eb]215 running the following command:
216 </para>
217
[5f26d66f]218<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
[a07e9eb]219
[eb425b4]220 <para>
[6ec7963]221 To test the results, issue: <command>make check</command>.
[eb425b4]222 </para>
[ff55539b]223
[eb425b4]224 <para>
225 Now, as the <systemitem class="username">root</systemitem> user:
226 </para>
[ff55539b]227
[dae25ca5]228<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]229
230 <para>
[5f91dfd]231 If you have built the demo programs, install them by running the
[a07e9eb]232 following command as the
233 <systemitem class="username">root</systemitem> user:
234 </para>
235
[5f26d66f]236<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
[a07e9eb]237
[eb425b4]238 <para>
[a07e9eb]239 If desired, install the optional documentation by running
240 the following commands as the
[eb425b4]241 <systemitem class="username">root</systemitem> user:
242 </para>
[91859cf]243
[7a395d1]244<screen role="root"><userinput>install -v -dm755 /usr/share/doc/mesa-&mesa-version; &amp;&amp;
245cp -rfv docs/* /usr/share/doc/mesa-&mesa-version;</userinput></screen>
[5a883bc4]246
[868c7c2]247 </sect2>
248
[a07e9eb]249 <sect2 role="commands">
250 <title>Command Explanations</title>
251
[df343952]252 <para>
[9d11b8a5]253 <command>sed -i ... configure.ac</command>: This sed removes a dependency
254 on the <application>libpthread-stubs</application> package which is
255 useless on Linux.
[df343952]256 </para>
257
[95e8211]258 <para>
259 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
260 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
261 "-g -O2". That results in binaries and libraries being built with
[fd2f9a2]262 debugging symbols which make them bigger. Override the default
[8b5a6f57]263 flags to omit the -g compiler flag so the final libraries are smaller.
[95e8211]264 </para>
265
[eb425b4]266 <para>
[6825eb89]267 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]268 floating-point textures and render buffers. Please consult
[eb425b4]269 <filename>docs/patents.txt</filename> to see if there are
270 any legal issues if you use this feature.
271 </para>
272
[2993b2f]273 <para>
[df343952]274 <parameter>--enable-osmesa</parameter>: This switch enables building
[abdc2e6]275 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]276 </para>
277
[eb425b4]278 <para>
[8b5a6f57]279 <parameter>--enable-xa</parameter>: This switch enables building the
[eb425b4]280 XA X Acceleration API (Required for VMware 3D Driver).
281 </para>
282
283 <para>
[8b5a6f57]284 <parameter>--enable-gbm</parameter>: This switch enables building the
[a07e9eb]285 <application>Mesa</application> Graphics Buffer Manager library.
286 </para>
287
[eb425b4]288 <para>
[6825eb89]289 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]290 Storage) support in GLX.
[eb425b4]291 </para>
292
[a07e9eb]293 <para>
294 <parameter>--with-egl-platforms="..."</parameter>: This parameter
[e56f38b]295 controls which platforms EGL will be built for. Available
[a07e9eb]296 platforms are drm, x11 and wayland.
297 </para>
298
[eb425b4]299 <para>
300 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[973dabe9]301 controls which Gallium3D drivers should be built.
[1f44775e]302 </para>
303
[df343952]304 <para revision="sysv">
[625079b6]305 <option>--enable-sysfs</option>: Use this switch to enable simple PCI
306 identification method, required for building DRI on systems without udev.
307 </para>
308
[371ff30]309 </sect2>
310
[868c7c2]311 <sect2 role="content">
312 <title>Contents</title>
313
314 <segmentedlist>
[1263ab1e]315 <segtitle>Installed Programs</segtitle>
[868c7c2]316 <segtitle>Installed Libraries</segtitle>
[ba2ac60]317 <segtitle>Installed Directories</segtitle>
[868c7c2]318
319 <seglistitem>
[eb425b4]320 <seg>
321 glxgears and glxinfo
322 </seg>
323 <seg>
[ed6d075]324 libEGL.so,
[c5f6157a]325 libgbm.so,
326 libglapi.so,
[ed6d075]327 libGLESv1_CM.so,
[5a14a19]328 libGLESv2.so,
[c5f6157a]329 libGL.so,
[a640d58]330 libOSMesa.so,
[464f030]331<!-- Those libraries are associated with the "swr" gallium driver,
332 which has been removed at r17757. Keeping as a comment in case we
333 reintroduce that driver.
[df343952]334 libswrAVX.so,
[464f030]335 libswrAVX2.so,-->
[8b5a6f57]336 libwayland-egl.so (if built with <application>Wayland</application>)
[b3be1cd]337 libxatracker.so,
[a640d58]338 libXvMCnouveau.so,
339 and libXvMCr600.so
[eb425b4]340 </seg>
341 <seg>
[880727e]342 $XORG_PREFIX/{include/{EGL,GL,GLES,GLES2,GLES3,KHR},lib/{dri,vdpau}}
343 and
[7a395d1]344 /usr/share/doc/mesa-&mesa-version; (optional)
[eb425b4]345 </seg>
[868c7c2]346 </seglistitem>
347 </segmentedlist>
[d3ef1e4]348
[4437f63]349 <variablelist>
350 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
351 <?dbfo list-presentation="list"?>
352 <?dbhtml list-presentation="table"?>
353
354 <varlistentry id="glxgears">
[eb50ddde]355 <term><command>glxgears</command></term>
[4437f63]356 <listitem>
[eb425b4]357 <para>
358 is a GL demo useful for troubleshooting graphics
359 problems.
360 </para>
[7a395d1]361 <indexterm zone="mesa glxgears">
[4437f63]362 <primary sortas="b-glxgears">glxgears</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
366
367 <varlistentry id="glxinfo">
[eb50ddde]368 <term><command>glxinfo</command></term>
[4437f63]369 <listitem>
[eb425b4]370 <para>
371 is a diagnostic program that displays information about the
372 graphics hardware and installed GL libraries.
373 </para>
[7a395d1]374 <indexterm zone="mesa glxinfo">
[4437f63]375 <primary sortas="b-glxinfo">glxinfo</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
[25f6d94]380 <varlistentry id="libEGL">
[a07e9eb]381 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]382 <listitem>
[eb425b4]383 <para>
[a07e9eb]384 provides a native platform graphics interface as
385 defined by the EGL-1.4 specification.
[eb425b4]386 </para>
[7a395d1]387 <indexterm zone="mesa libEGL">
[25f6d94]388 <primary sortas="c-libGL">libEGL.so</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
[a07e9eb]393 <varlistentry id="libgbm">
394 <term><filename class="libraryfile">libgbm.so</filename></term>
395 <listitem>
396 <para>
397 is the <application>Mesa</application> Graphics Buffer
[0d7900a]398 Manager library.
[a07e9eb]399 </para>
[7a395d1]400 <indexterm zone="mesa libgbm">
[a07e9eb]401 <primary sortas="c-libgbm">libgbm.so</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 <varlistentry id="libGLESv1_CM">
407 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
408 <listitem>
409 <para>
410 is the <application>Mesa</application> OpenGL ES 1.1 library.
411 </para>
[7a395d1]412 <indexterm zone="mesa libGLESv1_CM">
[a07e9eb]413 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
418 <varlistentry id="libGLES2">
419 <term><filename class="libraryfile">libGLES2.so</filename></term>
420 <listitem>
421 <para>
422 is the <application>Mesa</application> OpenGL ES 2.0 library.
423 </para>
[7a395d1]424 <indexterm zone="mesa libGLES2">
[a07e9eb]425 <primary sortas="c-libGLES2">libGLES2.so</primary>
426 </indexterm>
427 </listitem>
428 </varlistentry>
429
[ba2ac60]430 <varlistentry id="libGL">
[a07e9eb]431 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]432 <listitem>
[eb425b4]433 <para>
[a07e9eb]434 is the main <application>Mesa</application> OpenGL library.
[eb425b4]435 </para>
[7a395d1]436 <indexterm zone="mesa libGL">
[ba2ac60]437 <primary sortas="c-libGL">libGL.so</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
441
[2993b2f]442 <varlistentry id="libOSMesa">
443 <term><filename class="libraryfile">libOSMesa.so</filename></term>
444 <listitem>
445 <para>
446 is the <application>Mesa</application> Off-screen Rendering library.
447 </para>
[7a395d1]448 <indexterm zone="mesa libOSMesa">
[2993b2f]449 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
[bad6be19]454 <varlistentry id="libxatracker">
[a07e9eb]455 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]456 <listitem>
[eb425b4]457 <para>
[a07e9eb]458 is the Xorg Gallium3D acceleration library.
[eb425b4]459 </para>
[7a395d1]460 <indexterm zone="mesa libxatracker">
[bad6be19]461 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]462 </indexterm>
463 </listitem>
464 </varlistentry>
[4437f63]465 </variablelist>
466
[868c7c2]467 </sect2>
[d3ef1e4]468
[868c7c2]469</sect1>
Note: See TracBrowser for help on using the repository browser.