source: x/installing/mesalib.xml@ b3b7e36

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 b3b7e36 was b3b7e36, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • Update to llvm-3.7.0.
  • Update to mesa-10.6.6.

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

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