source: x/installing/mesalib.xml@ d441522d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 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 d441522d was d441522d, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Mesa-10.4.3: Revert previous modification and modify the instructions,
simplifying the page and solving problem with libtool older than 2.4.4.
Thanks Bruce for the wise decision.

Update to php-5.6.5.

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

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