source: x/installing/mesa.xml@ 0203015

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

Update to fontconfig-2.12.3.
Update to mesa-17.1.1.
Update to xterm-328.
Update to xkeyboard-config-2.21.
Update to libva/intel-vaapi-1.6.2 xorg drivers.

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