source: x/installing/mesa.xml@ fea7a37

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

Update to libinput-1.1.8.
Update to ed-1.13.
Update to sg3_utils-1.42.
Tag Xorg dependencies.
Tag Xorg section but several drivers still neeed to be checked.

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

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