source: x/installing/mesa.xml@ d203119

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 d203119 was 57bcce9, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • Update to mesa-11.1.1.
  • Update to Business-ISSN-1.001 (perl module).
  • Update to opus-1.1.2.
  • Add gsettings-desktop-schemas-3.18.1 as required dependency for Yelp-3.18.1.

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

  • Property mode set to 100644
File size: 14.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY mesa-download-http " ">
8 <!ENTITY mesa-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesa-version;/mesa-&mesa-version;.tar.xz">
9 <!ENTITY mesa-md5sum "1043dfb907beecb2a761272455960427">
10 <!ENTITY mesa-size "7.3 MB">
11 <!ENTITY mesa-buildsize "317 MB (with tests and docs)">
12 <!ENTITY mesa-time "2.8 SBU (with tests and docs - all with parallelism = 4)">
13]>
14
15<sect1 id="mesa" xreflabel="Mesa-&mesa-version;">
16 <?dbhtml filename="mesa.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Mesa-&mesa-version;</title>
24
25 <indexterm zone="mesa">
26 <primary sortas="a-Mesa">Mesa</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Mesa</title>
31
32 <para>
33 <application>Mesa</application> is an OpenGL compatible 3D graphics
34 library.
35 </para>
36
37 &lfs78_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&mesa-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&mesa-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &mesa-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &mesa-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &mesa-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &mesa-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Recommended patch:
78 <ulink
79 url="&patch-root;/mesa-&mesa-version;-add_xdemos-1.patch"/>
80 (installs 2 demo programs for testing Mesa - not needed if you
81 install the <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">
82 mesa-demos</ulink> package)
83 </para>
84 </listitem>
85 </itemizedlist>
86
87 <bridgehead renderas="sect3">Mesa Dependencies</bridgehead>
88
89 <bridgehead renderas="sect4">Required</bridgehead>
90 <para role="required">
91 <xref linkend="xorg7-lib"/> and
92 <xref linkend="libdrm"/>
93 </para>
94
95 <bridgehead renderas="sect4">Recommended</bridgehead>
96 <para role="recommended">
97 <xref linkend="elfutils"/> (required for Gallium3D radeonsi driver),
98 <xref linkend="libvdpau"/> (to build VDPAU drivers),
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"/>)
103 </para>
104
105 <bridgehead renderas="sect4">Optional</bridgehead>
106 <para role="optional">
107 <xref linkend="libgcrypt"/>,
108 <xref linkend="nettle"/>,
109 (<xref linkend="wayland"/> required for <xref linkend='plasma5-build'/>),
110 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
111 (provides more than 300 extra demos to test
112 <application>Mesa</application>; this includes the same programs
113 added by the patch above), and
114 <ulink url="http://omxil.sourceforge.net/">Bellagio OpenMAX Integration
115 Layer</ulink> (for mobile platforms)
116 </para>
117
118 <note>
119 <para>
120 The instructions below assume that <application>elfutils</application>
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
126 Gallium3D please see
127 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"/>.
128 </para>
129 </note>
130
131 <para condition="html" role="usernotes">User Notes:
132 <ulink url="&blfs-wiki;/mesa"/>
133 </para>
134 </sect2>
135
136 <sect2 role="installation">
137 <title>Installation of Mesa</title>
138
139 <para>
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:
143 </para>
144
145<screen><userinput>patch -Np1 -i ../mesa-&mesa-version;-add_xdemos-1.patch</userinput></screen>
146
147 <para>
148 Install <application>Mesa</application> by running the following
149 commands:
150 </para>
151
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
157<screen><userinput>GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
158
159./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
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
174make</userinput></screen>
175
176 <para>
177 If you have applied the xdemos patch, build the demo programs by
178 running the following command:
179 </para>
180
181<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
182
183 <para>
184 To test the results, issue: <command>make check</command>. Some sub-tests
185 may fail for unknown reasons.
186 </para>
187
188 <para>
189 Now, as the <systemitem class="username">root</systemitem> user:
190 </para>
191
192<screen role="root"><userinput>make install</userinput></screen>
193
194 <para>
195 If you have built the demo programs, install them by running the
196 following command as the
197 <systemitem class="username">root</systemitem> user:
198 </para>
199
200<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
201
202 <para>
203 If desired, install the optional documentation by running
204 the following commands as the
205 <systemitem class="username">root</systemitem> user:
206 </para>
207
208<screen role="root"><userinput>install -v -dm755 /usr/share/doc/mesa-&mesa-version; &amp;&amp;
209cp -rfv docs/* /usr/share/doc/mesa-&mesa-version;</userinput></screen>
210
211 </sect2>
212
213 <sect2 role="commands">
214 <title>Command Explanations</title>
215
216 <para>
217 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
218 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
219 "-g -O2". That results in binaries and libraries being built with
220 debugging symbols which make them bigger. Override the default
221 flags to omit -g compiler flag so the final libraries are smaller.
222 </para>
223
224 <para>
225 <parameter>--enable-texture-float</parameter>: This switch enables
226 floating-point textures and render buffers. Please consult
227 <filename>docs/patents.txt</filename> to see if there are
228 any legal issues if you use this feature.
229 </para>
230
231 <para>
232 <parameter>--enable-gles1</parameter>: This switch enables support for
233 OpenGL ES 1.x API.
234 </para>
235
236 <para>
237 <parameter>--enable-gles2</parameter>: This switch enables support for
238 OpenGL ES 2.x API.
239 </para>
240
241 <para>
242 <parameter>--enable-osmesa</parameter>: This switch enables building of
243 the <filename class="libraryfile">libOSMesa</filename> library.
244 </para>
245
246 <para>
247 <parameter>--enable-xa</parameter>: This switch enables building of the
248 XA X Acceleration API (Required for VMware 3D Driver).
249 </para>
250
251 <para>
252 <parameter>--enable-gbm</parameter>: This switch enables building of the
253 <application>Mesa</application> Graphics Buffer Manager library.
254 </para>
255
256 <para>
257 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
258 Storage) support in GLX.
259 </para>
260
261 <para>
262 <parameter>--with-egl-platforms="..."</parameter>: This parameter
263 controls which platforms EGL will be built for. Available
264 platforms are drm, x11 and wayland.
265 </para>
266
267 <para>
268 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
269 controls which Gallium3D drivers should be built. Available drivers
270 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
271 will need to remove r300, r600 and radeonsi from the list if you did
272 not install <application>elfutils</application> and
273 <application>LLVM</application> with the r600/amdgpu backend.
274 </para>
275
276 <para>
277 <option>--enable-r600-llvm-compiler</option>: Use this switch to
278 enable an experimental R600 <application>LLVM</application> backend
279 for graphics shaders which claims to speed up the driver.
280 </para>
281
282 <para>
283 <option>--enable-sysfs</option>: Use this switch to enable simple PCI
284 identification method, required for building DRI on systems without udev.
285 </para>
286
287 </sect2>
288
289 <sect2 role="content">
290 <title>Contents</title>
291
292 <segmentedlist>
293 <segtitle>Installed Programs</segtitle>
294 <segtitle>Installed Libraries</segtitle>
295 <segtitle>Installed Directories</segtitle>
296
297 <seglistitem>
298 <seg>
299 glxgears and glxinfo
300 </seg>
301 <seg>
302 libEGL.so,
303 libgbm.so,
304 libglapi.so,
305 libGLESv1_CM.so,
306 libGLESv2.so,
307 libGL.so,
308 libOSMesa.so,
309 libxatracker.so,
310 libXvMCnouveau.so,
311 and libXvMCr600.so
312 </seg>
313 <seg>
314 $XORG_PREFIX/{include/{EGL,GL,GLES,GLES2,GLES3,KHR},lib/{dri,vdpau}}
315 and
316 /usr/share/doc/mesa-&mesa-version; (optional)
317 </seg>
318 </seglistitem>
319 </segmentedlist>
320
321 <variablelist>
322 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
323 <?dbfo list-presentation="list"?>
324 <?dbhtml list-presentation="table"?>
325
326 <varlistentry id="glxgears">
327 <term><command>glxgears</command></term>
328 <listitem>
329 <para>
330 is a GL demo useful for troubleshooting graphics
331 problems.
332 </para>
333 <indexterm zone="mesa glxgears">
334 <primary sortas="b-glxgears">glxgears</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="glxinfo">
340 <term><command>glxinfo</command></term>
341 <listitem>
342 <para>
343 is a diagnostic program that displays information about the
344 graphics hardware and installed GL libraries.
345 </para>
346 <indexterm zone="mesa glxinfo">
347 <primary sortas="b-glxinfo">glxinfo</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
352 <varlistentry id="libEGL">
353 <term><filename class="libraryfile">libEGL.so</filename></term>
354 <listitem>
355 <para>
356 provides a native platform graphics interface as
357 defined by the EGL-1.4 specification.
358 </para>
359 <indexterm zone="mesa libEGL">
360 <primary sortas="c-libGL">libEGL.so</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="libgbm">
366 <term><filename class="libraryfile">libgbm.so</filename></term>
367 <listitem>
368 <para>
369 is the <application>Mesa</application> Graphics Buffer
370 Manager library.
371 </para>
372 <indexterm zone="mesa libgbm">
373 <primary sortas="c-libgbm">libgbm.so</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="libGLESv1_CM">
379 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
380 <listitem>
381 <para>
382 is the <application>Mesa</application> OpenGL ES 1.1 library.
383 </para>
384 <indexterm zone="mesa libGLESv1_CM">
385 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="libGLES2">
391 <term><filename class="libraryfile">libGLES2.so</filename></term>
392 <listitem>
393 <para>
394 is the <application>Mesa</application> OpenGL ES 2.0 library.
395 </para>
396 <indexterm zone="mesa libGLES2">
397 <primary sortas="c-libGLES2">libGLES2.so</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="libGL">
403 <term><filename class="libraryfile">libGL.so</filename></term>
404 <listitem>
405 <para>
406 is the main <application>Mesa</application> OpenGL library.
407 </para>
408 <indexterm zone="mesa libGL">
409 <primary sortas="c-libGL">libGL.so</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="libOSMesa">
415 <term><filename class="libraryfile">libOSMesa.so</filename></term>
416 <listitem>
417 <para>
418 is the <application>Mesa</application> Off-screen Rendering library.
419 </para>
420 <indexterm zone="mesa libOSMesa">
421 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="libxatracker">
427 <term><filename class="libraryfile">libxatracker.so</filename></term>
428 <listitem>
429 <para>
430 is the Xorg Gallium3D acceleration library.
431 </para>
432 <indexterm zone="mesa libxatracker">
433 <primary sortas="c-libxatracker">libxatracker.so</primary>
434 </indexterm>
435 </listitem>
436 </varlistentry>
437 </variablelist>
438
439 </sect2>
440
441</sect1>
Note: See TracBrowser for help on using the repository browser.