source: x/installing/mesa.xml@ a9ae025

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 a9ae025 was a9ae025, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • Update to freetype-2.6.1.
  • Update to harfbuzz-1.0.6.
  • libdrm-2.4.65 will build without Valgrind.
  • Update to elfutils-0.164.
  • Mesa-11.0.3: update to mesa-11.0.3-add_xdemos-2.patch.
  • LLVM-3.7.0: minor changes.

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

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