source: x/installing/mesalib.xml@ b92661e

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

Archive Mako and Setuptools.

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

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