source: x/installing/mesa.xml@ 9d11b8a5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 9d11b8a5 was 9d11b8a5, checked in by Ken Moffat <ken@…>, 8 years ago

Change sed for mesa, including Bruce's suggestion, and add sed to xine-lib to fix build with libxcb-1.12.

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

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