source: x/installing/mesalib.xml@ ea16306

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 ea16306 was eb425b4, checked in by Krejzi <krejzi@…>, 12 years ago

MesaLib 8.0.4

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

  • Property mode set to 100644
File size: 10.3 KB
RevLine 
[868c7c2]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[868c7c2]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[358cbee6]7 <!ENTITY mesalib-download-http " ">
8 <!ENTITY mesalib-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
[eb425b4]9 <!ENTITY mesalib-md5sum "d546f988adfdf986cff45b1efa2d8a46">
[bad6be19]10 <!ENTITY mesalib-size "5.5 MB">
[eb425b4]11 <!ENTITY mesalib-buildsize "485 MB">
12 <!ENTITY mesalib-time "4.2 SBU">
[868c7c2]13]>
14
[4a1f001]15<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
[868c7c2]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
[d8838ed5]25 <indexterm zone="mesalib">
[868c7c2]26 <primary sortas="a-MesaLib">MesaLib</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to MesaLib</title>
31
[eb425b4]32 <para>
33 <application>Mesa</application> is an OpenGL compatible 3D graphics
34 library.
35 </para>
[868c7c2]36
[121d292]37 &lfs71_checked;
[ca0c29cc]38
[868c7c2]39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[de938a4e]42 <para>
43 Download (HTTP): <ulink url="&mesalib-download-http;"/>
44 </para>
[868c7c2]45 </listitem>
46 <listitem>
[de938a4e]47 <para>
48 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
49 </para>
[868c7c2]50 </listitem>
51 <listitem>
[de938a4e]52 <para>
53 Download MD5 sum: &mesalib-md5sum;
54 </para>
[868c7c2]55 </listitem>
56 <listitem>
[de938a4e]57 <para>
58 Download size: &mesalib-size;
59 </para>
[868c7c2]60 </listitem>
61 <listitem>
[de938a4e]62 <para>
63 Estimated disk space required: &mesalib-buildsize;
64 </para>
[868c7c2]65 </listitem>
66 <listitem>
[de938a4e]67 <para>
68 Estimated build time: &mesalib-time;
69 </para>
[868c7c2]70 </listitem>
71 </itemizedlist>
72
[eeb29511]73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
[eb425b4]76 <para>
77 Required patch:
78 <ulink url="&patch-root;/MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch"/>
79 </para>
80 <para>
81 Recommended patch:
82 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-2.patch"/>
83 (Needed if testing the Xorg installation per BLFS instructions)
[ace536a]84 </para>
[eeb29511]85 </listitem>
86 </itemizedlist>
87
[868c7c2]88 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Required</bridgehead>
[7b74537e]91 <para role="required">
92 <xref linkend="expat"/>,
93 <xref linkend="libdrm"/>,
[60bcf481]94 <xref linkend="libxml2"/>,
[88e0d96]95 <xref linkend="makedepend"/> and
[7b74537e]96 <xref linkend="xorg7-lib"/>
[eb425b4]97 </para>
[868c7c2]98
[eb425b4]99 <bridgehead renderas="sect4">Recommended</bridgehead>
100 <para role="recommended">
[60bcf481]101 <xref linkend="llvm"/>
102 </para>
103
104 <note>
[eb425b4]105 <para>
106 The <application>libxml2</application>
107 <application>Python</application> module must have been built
108 during the installation of <application>libxml2</application>
109 or else <application>MesaLib</application> build will fail.
110 </para>
[60bcf481]111 </note>
112
[c5c2654]113 <para condition="html" role="usernotes">User Notes:
114 <ulink url="&blfs-wiki;/mesalib"/></para>
115
[868c7c2]116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of MesaLib</title>
120
[eb425b4]121 <note>
122 <para>
123 Unlike other packages, the
124 <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
125 archive will extract to the
126 <filename class="directory">Mesa-&mesalib-version;</filename>
127 directory.
128 </para>
129 </note>
[38476a9]130
[eb425b4]131 <para>
132 Install <application>MesaLib</application> by running the following
133 commands:
134 </para>
[868c7c2]135
[91859cf]136<screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &amp;&amp;
137patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-2.patch &amp;&amp;
138patch -Np1 -i ../MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch &amp;&amp;
139./configure --prefix=$XORG_PREFIX \
[eb425b4]140 --enable-texture-float \
141 --enable-gles1 \
142 --enable-gles2 \
[91859cf]143 --enable-xa \
[eb425b4]144 --enable-shared-glapi \
145 --enable-shared-dricore \
146 --enable-glx-tls \
147 --with-gallium-drivers="nouveau,r300,r600,svga,swrast" &amp;&amp;
[1199613]148make</userinput></screen>
[868c7c2]149
[eb425b4]150 <para>
151 This package does not come with a test suite.
152 </para>
[ff55539b]153
[eb425b4]154 <para>
155 Now, as the <systemitem class="username">root</systemitem> user:
156 </para>
[ff55539b]157
[1e8765e]158<screen role="root"><userinput>make install &amp;&amp;
[60bcf481]159mkdir -pv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &amp;&amp;
[eb425b4]160cp -rfv docs/* ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen>
161
162 <para>
163 Finally, if installing to any prefix other than
164 <filename class="directory">/usr</filename>, you should create symlinks
165 to the GL headers in <filename class="directory">/usr/include</filename>.
166 Execute the following command as the
167 <systemitem class="username">root</systemitem> user:
168 </para>
[91859cf]169
[eb425b4]170<screen role="root"><userinput>for GLHEADER in EGL GL GLES GLES2 KHR xa_composite.h xa_context.h xa_tracker.h
[bad6be19]171do
[eb425b4]172 ln -sfv ${XORG_PREFIX}/include/${GLHEADER} /usr/include/${GLHEADER}
[bad6be19]173done</userinput></screen>
[5a883bc4]174
[868c7c2]175 </sect2>
176
[371ff30]177 <sect2 role="commands">
178 <title>Command Explanations</title>
179
[eb425b4]180 <para>
181 <command>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure</command>: by default,
182 Mesa builds with debugging symbols. Remove the -g switch from both
183 <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> with this command.
184 </para>
185
186 <para>
187 <option>--enable-texture-float</option>: This switch enables
188 floating-point textures and renderbuffers. Please consult
189 <filename>docs/patents.txt</filename> to see if there are
190 any legal issues if you use this feature.
191 </para>
192
193 <para>
194 <option>--enable-gles1</option>: This switch enables support for
195 OpenGL ES 1.x API.
196 </para>
197
198 <para>
199 <option>--enable-gles2</option>: This switch enables support for
200 OpenGL ES 2.x API.
201 </para>
[9b3b6a4]202
[eb425b4]203 <para>
204 <option>--enable-xa</option>: This switch enables building of the
205 XA X Acceleration API (Required for VMware 3D Driver).
206 </para>
207
208 <para>
209 <option>--enable-shared-glapi</option>: This switch enables building
210 of the shared glapi library.
211 </para>
[bad6be19]212
[eb425b4]213 <para>
214 <option>--enable-shared-dricore</option>: This switch enables linking
215 of the DRI modules with shared core DRI routines.
216 </para>
[9b3b6a4]217
[eb425b4]218 <para>
219 <option>--enable-glx-tls</option>: This switch enables TLS support
220 in GLX.
221 </para>
222
223 <para>
224 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
225 controls which Gallium drivers should be built. Available drivers are:
226 i915, nouveau, r300, r600, swrast and svga. Note that you will need to
227 remove r300 and r600 from the list if you haven't installed
228 <xref linkend="llvm"/>.
229 </para>
[f49893b]230
[371ff30]231 </sect2>
232
[868c7c2]233 <sect2 role="content">
234 <title>Contents</title>
235
236 <segmentedlist>
[1e8765e]237 <segtitle>Optionally Installed Programs</segtitle>
[868c7c2]238 <segtitle>Installed Libraries</segtitle>
[ba2ac60]239 <segtitle>Installed Directories</segtitle>
[868c7c2]240
241 <seglistitem>
[eb425b4]242 <seg>
243 glxgears and glxinfo
244 </seg>
245 <seg>
246 libEGL.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so,
247 libGL.so, libGLU.so and libxatracker.so
248 </seg>
249 <seg>
250 <envar>$XORG_PREFIX</envar>/include/{EGL,GL,GLES,GLES2,KHR},
251 <envar>$XORG_PREFIX</envar>/lib/dri, and
252 <envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;
253 </seg>
[868c7c2]254 </seglistitem>
255 </segmentedlist>
[d3ef1e4]256
[4437f63]257 <variablelist>
258 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
259 <?dbfo list-presentation="list"?>
260 <?dbhtml list-presentation="table"?>
261
262 <varlistentry id="glxgears">
263 <term><filename>glxgears</filename></term>
264 <listitem>
[eb425b4]265 <para>
266 is a GL demo useful for troubleshooting graphics
267 problems.
268 </para>
[d8838ed5]269 <indexterm zone="mesalib glxgears">
[4437f63]270 <primary sortas="b-glxgears">glxgears</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="glxinfo">
276 <term><filename>glxinfo</filename></term>
277 <listitem>
[eb425b4]278 <para>
279 is a diagnostic program that displays information about the
280 graphics hardware and installed GL libraries.
281 </para>
[d8838ed5]282 <indexterm zone="mesalib glxinfo">
[4437f63]283 <primary sortas="b-glxinfo">glxinfo</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
[25f6d94]288 <varlistentry id="libEGL">
289 <term><filename class='libraryfile'>libEGL.so</filename></term>
290 <listitem>
[eb425b4]291 <para>
292 provides a native platform graphics interface as defined by
293 the EGL-1.4 specification.
294 </para>
[25f6d94]295 <indexterm zone="mesalib libEGL">
296 <primary sortas="c-libGL">libEGL.so</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
[ba2ac60]301 <varlistentry id="libGL">
302 <term><filename class='libraryfile'>libGL.so</filename></term>
303 <listitem>
[eb425b4]304 <para>
305 is the main OpenGL library.
306 </para>
[ba2ac60]307 <indexterm zone="mesalib libGL">
308 <primary sortas="c-libGL">libGL.so</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="libGLU">
314 <term><filename class='libraryfile'>libGLU.so</filename></term>
315 <listitem>
[eb425b4]316 <para>
317 is the OpenGL Utility library.
318 </para>
[ba2ac60]319 <indexterm zone="mesalib libGLU">
320 <primary sortas="c-libGLU">libGLU.so</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
[bad6be19]325 <varlistentry id="libxatracker">
326 <term><filename class='libraryfile'>libxatracker.so</filename></term>
[ba2ac60]327 <listitem>
[eb425b4]328 <para>
329 is the library that provides XA X Acceleration API.
330 </para>
[bad6be19]331 <indexterm zone="mesalib libxatracker">
332 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]333 </indexterm>
334 </listitem>
335 </varlistentry>
[4437f63]336 </variablelist>
337
[868c7c2]338 </sect2>
[d3ef1e4]339
[868c7c2]340</sect1>
Note: See TracBrowser for help on using the repository browser.