source: x/installing/mesalib.xml@ 5f26d66f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5f26d66f was 5f26d66f, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

LFS-7.4 tags after building Xorg

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

  • Property mode set to 100644
File size: 17.8 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;/MesaLib-&mesalib-version;.tar.bz2">
9 <!ENTITY mesalib-md5sum "443a2a352667294b53d56cb1a74114e9">
10 <!ENTITY mesalib-size "5.9 MB">
11 <!ENTITY mesalib-buildsize "335 MB">
12 <!ENTITY mesalib-time "4.7 SBU">
13
14 <!ENTITY glu-download-http " ">
15 <!ENTITY glu-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/glu/glu-&glu-version;.tar.bz2">
16 <!ENTITY glu-md5sum "be9249132ff49275461cf92039083030">
17 <!ENTITY glu-size "484 KB">
18 <!ENTITY glu-buildsize "13 MB">
19 <!ENTITY glu-time "0.2 SBU">
20]>
21
22<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
23 <?dbhtml filename="mesalib.html"?>
24
25 <sect1info>
26 <othername>$LastChangedBy$</othername>
27 <date>$Date$</date>
28 </sect1info>
29
30 <title>MesaLib-&mesalib-version;</title>
31
32 <indexterm zone="mesalib">
33 <primary sortas="a-MesaLib">MesaLib</primary>
34 </indexterm>
35
36 <sect2 role="package">
37 <title>Introduction to MesaLib</title>
38
39 <para>
40 <application>Mesa</application> is an OpenGL compatible 3D graphics
41 library.
42 </para>
43
44 &lfs74_checked;
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>
50 Download (HTTP): <ulink url="&mesalib-download-http;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download MD5 sum: &mesalib-md5sum;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Download size: &mesalib-size;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated disk space required: &mesalib-buildsize;
71 </para>
72 </listitem>
73 <listitem>
74 <para>
75 Estimated build time: &mesalib-time;
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
81 <itemizedlist spacing="compact">
82 <listitem>
83 <para>
84 GLU Download (HTTP): <ulink url="&glu-download-http;"/>
85 </para>
86 </listitem>
87 <listitem>
88 <para>
89 GLU Download (FTP): <ulink url="&glu-download-ftp;"/>
90 </para>
91 </listitem>
92 <listitem>
93 <para>
94 GLU Download MD5 sum: &glu-md5sum;
95 </para>
96 </listitem>
97 <listitem>
98 <para>
99 GLU Download size: &glu-size;
100 </para>
101 </listitem>
102 <listitem>
103 <para>
104 Estimated GLU disk space required: &glu-buildsize;
105 </para>
106 </listitem>
107 <listitem>
108 <para>
109 Estimated GLU build time: &glu-time;
110 </para>
111 </listitem>
112 </itemizedlist>
113
114 <bridgehead renderas="sect3">Additional Patches</bridgehead>
115 <itemizedlist spacing="compact">
116 <listitem>
117 <para>
118 Required patch:
119 <ulink url="&patch-root;/MesaLib-&mesalib-version;-llvm_fixes-1.patch"/>
120 </para>
121 </listitem>
122 <listitem>
123 <para>
124 Recommended patch:
125 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
126 (Needed if testing the Xorg installation per BLFS instructions).
127 </para>
128 </listitem>
129 </itemizedlist>
130
131 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
132
133 <bridgehead renderas="sect4">Required</bridgehead>
134 <para role="required">
135 <xref linkend="expat"/>,
136 <xref linkend="libdrm"/>,
137 <xref linkend="libxml2"/>,
138 <xref linkend="makedepend"/> and
139 <xref linkend="xorg7-lib"/>
140 </para>
141
142 <bridgehead renderas="sect4">Recommended</bridgehead>
143 <para role="recommended">
144 <xref linkend="llvm"/>
145 </para>
146
147 <warning>
148 <para>
149 The instructions below assume that <application>LLVM</application>
150 is installed. You will need to modify the instructions if you
151 choose not to install it. Please note that
152 <application>LLVM</application> is <emphasis>required</emphasis> for
153 Radeon 3D drivers.
154 </para>
155 </warning>
156
157 <note>
158 <para>
159 The <application>libxml2</application>
160 <application>Python</application> module must have been built
161 during the installation of <application>libxml2</application>
162 or else <application>MesaLib</application> build will fail.
163 </para>
164 </note>
165
166 <para condition="html" role="usernotes">User Notes:
167 <ulink url="&blfs-wiki;/mesalib"/>
168 </para>
169 </sect2>
170
171 <sect2 role="installation">
172 <title>Installation of MesaLib</title>
173
174 <note>
175 <para>
176 Unlike other packages, the
177 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
178 archive will extract to the
179 <filename class="directory">Mesa-&mesalib-version;</filename>
180 directory.
181 </para>
182 </note>
183
184 <para>
185 If you have downloaded the recommended patch, apply it by running the
186 following command:
187 </para>
188
189<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
190
191 <para>
192 Install <application>MesaLib</application> by running the following
193 commands:
194 </para>
195
196<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-llvm_fixes-1.patch &amp;&amp;
197sed -i "/LLVM_VERSION_INT/s:-ne:-lt:" configure.ac &amp;&amp;
198autoreconf -fi &amp;&amp;
199./configure CFLAGS="-O2" CXXFLAGS="-O2" \
200 --prefix=$XORG_PREFIX \
201 --sysconfdir=/etc \
202 --enable-texture-float \
203 --enable-gles1 \
204 --enable-gles2 \
205 --enable-openvg \
206 --enable-osmesa \
207 --enable-xa \
208 --enable-gbm \
209 --enable-gallium-egl \
210 --enable-gallium-gbm \
211 --enable-glx-tls \
212 --with-llvm-shared-libs \
213 --with-egl-platforms="drm,x11" \
214 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
215make</userinput></screen>
216
217 <para>
218 If you have applied the recommended patch, build the demo programs by
219 running the following command:
220 </para>
221
222<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
223
224 <para>
225 This package does not come with a test suite.
226 </para>
227
228 <para>
229 Now, as the <systemitem class="username">root</systemitem> user:
230 </para>
231
232<screen role="root"><userinput>make install &amp;&amp;
233install -v -m755 lib/swrast_dri.so $XORG_PREFIX/lib/dri/swrast_dri.so</userinput></screen>
234<!-- remove when mesa 9.2 gets released, llvm 3.3 breaks llvmpipe (gallium swrast
235driver which installed by default) -->
236
237 <para>
238 If you have built the demo programs, install them by running the
239 following command as the
240 <systemitem class="username">root</systemitem> user:
241 </para>
242
243<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
244
245 <para>
246 If desired, install the optional documentation by running
247 the following commands as the
248 <systemitem class="username">root</systemitem> user:
249 </para>
250
251<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
252cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
253
254 </sect2>
255
256 <sect2 role="installation">
257 <title>Installation of GLU</title>
258
259 <para>
260 Install <application>GLU</application> by running the following
261 commands:
262 </para>
263
264<screen><userinput>./configure --prefix=$XORG_PREFIX --disable-static &amp;&amp;
265make</userinput></screen>
266
267 <para>
268 This package does not come with a test suite.
269 </para>
270
271 <para>
272 Now, as the <systemitem class="username">root</systemitem> user:
273 </para>
274
275<screen role="root"><userinput>make install</userinput></screen>
276
277 </sect2>
278
279 <sect2 role="commands">
280 <title>Command Explanations</title>
281
282 <para>
283 <command>sed -i "..."</command>: This sed fixes building with
284 <application>LLVM</application> 3.3. Please note that
285 R600 LLVM Compiler and Gallium LLVMPipe driver are currently
286 broken with <application>LLVM</application> 3.3.
287 </para>
288
289 <para>
290 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
291 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
292 "-g -O2". That results in binaries and libraries being built with
293 debugging symbols which make them bigger. Override the default
294 flags to omit -g compiler flag so the final libraries are smaller.
295 </para>
296
297 <para>
298 <option>--enable-texture-float</option>: This switch enables
299 floating-point textures and render buffers. Please consult
300 <filename>docs/patents.txt</filename> to see if there are
301 any legal issues if you use this feature.
302 </para>
303
304 <para>
305 <option>--enable-gles1</option>: This switch enables support for
306 OpenGL ES 1.x API.
307 </para>
308
309 <para>
310 <option>--enable-gles2</option>: This switch enables support for
311 OpenGL ES 2.x API.
312 </para>
313
314 <para>
315 <option>--enable-openvg</option>: This switch enables support for
316 OpenVG API.
317 </para>
318
319 <para>
320 <option>--enable-osmesa</option>: This switch enables building of
321 the <filename class="libraryfile">libOSMesa</filename> library.
322 </para>
323
324 <para>
325 <option>--enable-xa</option>: This switch enables building of the
326 XA X Acceleration API (Required for VMware 3D Driver).
327 </para>
328
329 <para>
330 <option>--enable-gbm</option>: This switch enables building of the
331 <application>Mesa</application> Graphics Buffer Manager library.
332 </para>
333
334 <para>
335 <option>--enable-gallium-egl</option>: This switch enables optional
336 EGL state tracker for Gallium.
337 </para>
338
339 <para>
340 <option>--enable-gallium-gbm</option>: This switch enables optional
341 GBM state tracker for Gallium.
342 </para>
343
344 <para>
345 <option>--enable-glx-tls</option>: This switch enables TLS (Thread Local
346 Storage) support in GLX.
347 </para>
348
349 <para>
350 <option>--with-llvm-shared-libs</option>: This switch is used so
351 Gallium drivers will link against shared
352 <application>LLVM</application> libraries instead of the static
353 ones. Remove if you did not install <xref linkend="llvm"/>.
354 </para>
355
356 <para>
357 <parameter>--with-egl-platforms="..."</parameter>: This parameter
358 controls for which platforms EGL should be built. Available
359 platforms are drm, x11 and wayland.
360 </para>
361
362 <para>
363 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
364 controls which Gallium drivers should be built. Available drivers
365 are: i915, nouveau, r300, r600, radeonsi, svga and swrast. You will
366 need to remove r300, r600 and radeonsi from the list if you did not
367 install <xref linkend="llvm"/>.
368 </para>
369
370 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
371 href="../../xincludes/static-libraries.xml"/>
372
373<!-- broken with llvm 3.3
374 <para>
375 <option>- -enable-r600-llvm-compiler</option>: Use this switch to
376 enable experimental <application>LLVM</application> backend for
377 graphics shaders which claims to speed up the driver.
378 </para>
379-->
380
381 </sect2>
382
383 <sect2 role="content">
384 <title>Contents</title>
385
386 <segmentedlist>
387 <segtitle>Installed Programs</segtitle>
388 <segtitle>Installed Libraries</segtitle>
389 <segtitle>Installed Directories</segtitle>
390
391 <seglistitem>
392 <seg>
393 glxgears and glxinfo
394 </seg>
395 <seg>
396 libdricore&mesalib-version;.so, libEGL.so, libgbm.so, libglapi.so,
397 libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so,
398 libllvmradeon&mesalib-version;.so, libOpenVG.so, libOSMesa.so and
399 libxatracker.so
400 </seg>
401 <seg>
402 $XORG_PREFIX/include/EGL,
403 $XORG_PREFIX/include/GLES,
404 $XORG_PREFIX/include/GLES2,
405 $XORG_PREFIX/include/GLES3,
406 $XORG_PREFIX/include/KHR,
407 $XORG_PREFIX/include/VG,
408 $XORG_PREFIX/lib/dri,
409 $XORG_PREFIX/lib/egl,
410 $XORG_PREFIX/lib/gallium-pipe and
411 $XORG_PREFIX/lib/gbm
412 </seg>
413 </seglistitem>
414 </segmentedlist>
415
416 <variablelist>
417 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
418 <?dbfo list-presentation="list"?>
419 <?dbhtml list-presentation="table"?>
420
421 <varlistentry id="glxgears">
422 <term><command>glxgears</command></term>
423 <listitem>
424 <para>
425 is a GL demo useful for troubleshooting graphics
426 problems.
427 </para>
428 <indexterm zone="mesalib glxgears">
429 <primary sortas="b-glxgears">glxgears</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="glxinfo">
435 <term><command>glxinfo</command></term>
436 <listitem>
437 <para>
438 is a diagnostic program that displays information about the
439 graphics hardware and installed GL libraries.
440 </para>
441 <indexterm zone="mesalib glxinfo">
442 <primary sortas="b-glxinfo">glxinfo</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="libdricore">
448 <term><filename class="libraryfile">libdricore&mesalib-version;.so</filename></term>
449 <listitem>
450 <para>
451 contains common DRI routines used by <application>Mesa</application>
452 DRI drivers.
453 </para>
454 <indexterm zone="mesalib libdricore">
455 <primary sortas="c-libdricore">libdricore&mesalib-version;.so</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
460 <varlistentry id="libEGL">
461 <term><filename class="libraryfile">libEGL.so</filename></term>
462 <listitem>
463 <para>
464 provides a native platform graphics interface as
465 defined by the EGL-1.4 specification.
466 </para>
467 <indexterm zone="mesalib libEGL">
468 <primary sortas="c-libGL">libEGL.so</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry id="libgbm">
474 <term><filename class="libraryfile">libgbm.so</filename></term>
475 <listitem>
476 <para>
477 is the <application>Mesa</application> Graphics Buffer
478 Manager library.
479 </para>
480 <indexterm zone="mesalib libgbm">
481 <primary sortas="c-libgbm">libgbm.so</primary>
482 </indexterm>
483 </listitem>
484 </varlistentry>
485
486 <varlistentry id="libGLESv1_CM">
487 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
488 <listitem>
489 <para>
490 is the <application>Mesa</application> OpenGL ES 1.1 library.
491 </para>
492 <indexterm zone="mesalib libGLESv1_CM">
493 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497
498 <varlistentry id="libGLES2">
499 <term><filename class="libraryfile">libGLES2.so</filename></term>
500 <listitem>
501 <para>
502 is the <application>Mesa</application> OpenGL ES 2.0 library.
503 </para>
504 <indexterm zone="mesalib libGLES2">
505 <primary sortas="c-libGLES2">libGLES2.so</primary>
506 </indexterm>
507 </listitem>
508 </varlistentry>
509
510 <varlistentry id="libGL">
511 <term><filename class="libraryfile">libGL.so</filename></term>
512 <listitem>
513 <para>
514 is the main <application>Mesa</application> OpenGL library.
515 </para>
516 <indexterm zone="mesalib libGL">
517 <primary sortas="c-libGL">libGL.so</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
521
522 <varlistentry id="libGLU">
523 <term><filename class="libraryfile">libGLU.so</filename></term>
524 <listitem>
525 <para>
526 is the <application>Mesa</application> OpenGL
527 Utility library.
528 </para>
529 <indexterm zone="mesalib libGLU">
530 <primary sortas="c-libGLU">libGLU.so</primary>
531 </indexterm>
532 </listitem>
533 </varlistentry>
534
535 <varlistentry id="libOpenVG">
536 <term><filename class="libraryfile">libOpenVG.so</filename></term>
537 <listitem>
538 <para>
539 is the <application>Mesa</application> OpenVG 1.0 library.
540 </para>
541 <indexterm zone="mesalib libOpenVG">
542 <primary sortas="c-libOpenVG">libOpenVG.so</primary>
543 </indexterm>
544 </listitem>
545 </varlistentry>
546
547 <varlistentry id="libOSMesa">
548 <term><filename class="libraryfile">libOSMesa.so</filename></term>
549 <listitem>
550 <para>
551 is the <application>Mesa</application> Off-screen Rendering library.
552 </para>
553 <indexterm zone="mesalib libOSMesa">
554 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
555 </indexterm>
556 </listitem>
557 </varlistentry>
558
559 <varlistentry id="libxatracker">
560 <term><filename class="libraryfile">libxatracker.so</filename></term>
561 <listitem>
562 <para>
563 is the Xorg Gallium3D acceleration library.
564 </para>
565 <indexterm zone="mesalib libxatracker">
566 <primary sortas="c-libxatracker">libxatracker.so</primary>
567 </indexterm>
568 </listitem>
569 </varlistentry>
570 </variablelist>
571
572 </sect2>
573
574</sect1>
Note: See TracBrowser for help on using the repository browser.