source: x/installing/mesa.xml@ c28df1a9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 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 c28df1a9 was c28df1a9, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to mesa-17.2.3.
Update to libXfont 1.5.3.
Update to libinput-1.9.0.
Update to harfbuzz-1.6.0.

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

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