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