source: x/installing/mesalib.xml@ cc8ccd9

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 cc8ccd9 was cc8ccd9, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Typos and fix to mesa

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

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