source: x/installing/mesa.xml@ 1d615c21

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 1d615c21 was 8b5a6f57, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to pango-1.40.3
Update to mesa-12.0.3
Bump acpid version to 2.0.28
Make a minor modification to the GNOME Platform introduction page

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17769 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
[7a395d1]7 <!ENTITY mesa-download-http " ">
8 <!ENTITY mesa-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesa-version;/mesa-&mesa-version;.tar.xz">
[8b5a6f57]9 <!ENTITY mesa-md5sum "1113699c714042d8c4df4766be8c57d8">
[df343952]10 <!ENTITY mesa-size "8.2 MB">
[8b5a6f57]11 <!ENTITY mesa-buildsize "348 MB (with tests and docs)">
12 <!ENTITY mesa-time "3.7 SBU (with tests and docs - all with parallelism = 4),">
[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
[00610e5]37 &lfs7a_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">
[7be98fa1]98 <xref linkend="elfutils"/> (required for Gallium3D radeonsi driver),
[df343952]99 <phrase revision="systemd"><xref linkend="libva"/> (to build drivers for
100 supported hardware, note that there is a circular dependency. You must
101 build <application>libva</application> first without EGL and GLX support,
102 install this package, and rebuild <application>libva</application>.),</phrase>
[9065a56b]103 <xref linkend="libvdpau"/> (to build VDPAU drivers),
[e83a3bb]104 <xref linkend="llvm"/> (required for Gallium3D r300, r600 and radeonsi
105 drivers and also for llvmpipe which is intended to be the fastest of the
106 three sw rasterizers, see
[4e845a4]107 <ulink url="http://www.mesa3d.org/systems.html"/>)
[606dfd4]108 </para>
[60bcf481]109
[07584d8]110 <bridgehead renderas="sect4">Optional</bridgehead>
111 <para role="optional">
[57bcce9]112 <xref linkend="libgcrypt"/>,
113 <xref linkend="nettle"/>,
[8b5a6f57]114 <xref linkend="wayland"/> (required for
[4e845a4]115 <xref linkend='plasma5-build'/><phrase revision="systemd">,</phrase>
116 <phrase revision="sysv">and</phrase>
117 <xref linkend='lxqt'/><phrase revision="systemd">, and GNOME</phrase>),
[58720a7b]118 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
[1cdb1f7]119 (provides more than 300 extra demos to test
[7a395d1]120 <application>Mesa</application>; this includes the same programs
[f97d5f6]121 added by the patch above), and
[c18b8f23]122 <ulink url="http://omxil.sourceforge.net/">Bellagio OpenMAX Integration
[f3429309]123 Layer</ulink> (for mobile platforms)
[07584d8]124 </para>
125
[9065a56b]126 <note>
[fd2f9a2]127 <para>
[dae25ca5]128 The instructions below assume that <application>elfutils</application>
[df343952]129 and <application>LLVM</application> with the r600/amdgpu and host
130 backends are installed. You will need to modify the instructions if you
131 choose not to install them. Please note that
132 <application>elfutils</application> and <application>LLVM</application>
133 are <emphasis>required</emphasis> for the Gallium3D r300, r600,
134 radeonsi, and SWR drivers. For an explanation of Gallium3D please see
[e83a3bb]135 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"/>.
[fd2f9a2]136 </para>
[9065a56b]137 </note>
[fd2f9a2]138
[c5c2654]139 <para condition="html" role="usernotes">User Notes:
[7a395d1]140 <ulink url="&blfs-wiki;/mesa"/>
[2993b2f]141 </para>
[868c7c2]142 </sect2>
143
144 <sect2 role="installation">
[7a395d1]145 <title>Installation of Mesa</title>
[868c7c2]146
[a07e9eb]147 <para>
[51c08f3]148 If you have downloaded the xdemos patch (needed if testing the Xorg
149 installation per BLFS instructions), apply it by running the following
150 command:
[a07e9eb]151 </para>
152
[27747668]153<screen><userinput>patch -Np1 -i ../mesa-&mesa-version;-add_xdemos-1.patch</userinput></screen>
[a07e9eb]154
[eb425b4]155 <para>
[7a395d1]156 Install <application>Mesa</application> by running the following
[eb425b4]157 commands:
158 </para>
[868c7c2]159
[f97d5f6]160 <note>
[4e845a4]161 <para>
162 Add wayland to the <parameter>--with-egl-platforms</parameter> switch
163 below if you plan on building
164 <xref linkend='plasma5-build'/><phrase revision="systemd">,</phrase>
165 <phrase revision="sysv">or</phrase>
166 <xref linkend='lxqt'/><phrase revision="systemd">, or GNOME</phrase>.
167 </para>
[f97d5f6]168 </note>
169
[4e845a4]170<screen><userinput>GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[5ee1266]171
[df343952]172sed -i "/pthread-stubs/d" configure.ac &amp;&amp;
[9d11b8a5]173sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh &amp;&amp;
[b3b7e36]174./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
[5ee1266]175 --prefix=$XORG_PREFIX \
176 --sysconfdir=/etc \
177 --enable-texture-float \
178 --enable-gles1 \
179 --enable-gles2 \
180 --enable-osmesa \
181 --enable-xa \
182 --enable-gbm \
183 --enable-glx-tls \
184 --with-egl-platforms="drm,x11" \
185 --with-gallium-drivers=$GLL_DRV &amp;&amp;
186
187unset GLL_DRV &amp;&amp;
188
[1199613]189make</userinput></screen>
[868c7c2]190
[a07e9eb]191 <para>
[7dd7061]192 If you have applied the xdemos patch, build the demo programs by
[a07e9eb]193 running the following command:
194 </para>
195
[5f26d66f]196<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
[a07e9eb]197
[eb425b4]198 <para>
[6ec7963]199 To test the results, issue: <command>make check</command>.
[eb425b4]200 </para>
[ff55539b]201
[eb425b4]202 <para>
203 Now, as the <systemitem class="username">root</systemitem> user:
204 </para>
[ff55539b]205
[dae25ca5]206<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]207
208 <para>
[5f91dfd]209 If you have built the demo programs, install them by running the
[a07e9eb]210 following command as the
211 <systemitem class="username">root</systemitem> user:
212 </para>
213
[5f26d66f]214<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
[a07e9eb]215
[eb425b4]216 <para>
[a07e9eb]217 If desired, install the optional documentation by running
218 the following commands as the
[eb425b4]219 <systemitem class="username">root</systemitem> user:
220 </para>
[91859cf]221
[7a395d1]222<screen role="root"><userinput>install -v -dm755 /usr/share/doc/mesa-&mesa-version; &amp;&amp;
223cp -rfv docs/* /usr/share/doc/mesa-&mesa-version;</userinput></screen>
[5a883bc4]224
[868c7c2]225 </sect2>
226
[a07e9eb]227 <sect2 role="commands">
228 <title>Command Explanations</title>
229
[df343952]230 <para>
[9d11b8a5]231 <command>sed -i ... configure.ac</command>: This sed removes a dependency
232 on the <application>libpthread-stubs</application> package which is
233 useless on Linux.
[df343952]234 </para>
235
[d278ced]236 <para>
[9d11b8a5]237 <command>sed -i ... bin/ltmain.sh</command>: This sed silences several
[d278ced]238 useless and annoying warnings from libtool.
239 </para>
240
[95e8211]241 <para>
242 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
243 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
244 "-g -O2". That results in binaries and libraries being built with
[fd2f9a2]245 debugging symbols which make them bigger. Override the default
[8b5a6f57]246 flags to omit the -g compiler flag so the final libraries are smaller.
[95e8211]247 </para>
248
[eb425b4]249 <para>
[6825eb89]250 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]251 floating-point textures and render buffers. Please consult
[eb425b4]252 <filename>docs/patents.txt</filename> to see if there are
253 any legal issues if you use this feature.
254 </para>
255
256 <para>
[6825eb89]257 <parameter>--enable-gles1</parameter>: This switch enables support for
[df343952]258 the OpenGL ES 1.x API.
[eb425b4]259 </para>
260
261 <para>
[6825eb89]262 <parameter>--enable-gles2</parameter>: This switch enables support for
[df343952]263 the OpenGL ES 2.x API.
[eb425b4]264 </para>
[9b3b6a4]265
[2993b2f]266 <para>
[df343952]267 <parameter>--enable-osmesa</parameter>: This switch enables building
[abdc2e6]268 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]269 </para>
270
[eb425b4]271 <para>
[8b5a6f57]272 <parameter>--enable-xa</parameter>: This switch enables building the
[eb425b4]273 XA X Acceleration API (Required for VMware 3D Driver).
274 </para>
275
276 <para>
[8b5a6f57]277 <parameter>--enable-gbm</parameter>: This switch enables building the
[a07e9eb]278 <application>Mesa</application> Graphics Buffer Manager library.
279 </para>
280
[eb425b4]281 <para>
[6825eb89]282 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]283 Storage) support in GLX.
[eb425b4]284 </para>
285
[a07e9eb]286 <para>
287 <parameter>--with-egl-platforms="..."</parameter>: This parameter
[e56f38b]288 controls which platforms EGL will be built for. Available
[a07e9eb]289 platforms are drm, x11 and wayland.
290 </para>
291
[eb425b4]292 <para>
293 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[5e60392]294 controls which Gallium3D drivers should be built. Available drivers
[df343952]295 are: i915, ilo, nouveau, r300, r600, radeonsi, svga, swrast, and swr. You
296 will need to remove r300, r600, radeonsi, and swr from the list if you did
[dae25ca5]297 not install <application>elfutils</application> and
[df343952]298 <application>LLVM</application> with the r600/amdgpu and host backends.
[4e845a4]299 Note that swr is in an early development stage, and the BLFS team does
300 not recommend building it.
[eb425b4]301 </para>
[f49893b]302
[1f44775e]303 <para>
[dae25ca5]304 <option>--enable-r600-llvm-compiler</option>: Use this switch to
[e56f38b]305 enable an experimental R600 <application>LLVM</application> backend
[dae25ca5]306 for graphics shaders which claims to speed up the driver.
[1f44775e]307 </para>
308
[df343952]309 <para revision="sysv">
[625079b6]310 <option>--enable-sysfs</option>: Use this switch to enable simple PCI
311 identification method, required for building DRI on systems without udev.
312 </para>
313
[371ff30]314 </sect2>
315
[868c7c2]316 <sect2 role="content">
317 <title>Contents</title>
318
319 <segmentedlist>
[1263ab1e]320 <segtitle>Installed Programs</segtitle>
[868c7c2]321 <segtitle>Installed Libraries</segtitle>
[ba2ac60]322 <segtitle>Installed Directories</segtitle>
[868c7c2]323
324 <seglistitem>
[eb425b4]325 <seg>
326 glxgears and glxinfo
327 </seg>
328 <seg>
[ed6d075]329 libEGL.so,
[c5f6157a]330 libgbm.so,
331 libglapi.so,
[ed6d075]332 libGLESv1_CM.so,
[5a14a19]333 libGLESv2.so,
[c5f6157a]334 libGL.so,
[a640d58]335 libOSMesa.so,
[df343952]336 libswrAVX.so,
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.