source: x/installing/mesalib.xml@ d7f908d5

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 d7f908d5 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
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 " ">
[d443361]8 <!ENTITY mesalib-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/mesa-&mesalib-version;.tar.xz">
9 <!ENTITY mesalib-md5sum "26644437b6447fb3dbae50714a019797">
[39dd48b]10 <!ENTITY mesalib-size "6.7 MB">
[cc8ccd9]11 <!ENTITY mesalib-buildsize "188 MB">
12 <!ENTITY mesalib-time "6.2 SBU">
[a07e9eb]13
[868c7c2]14]>
15
[4a1f001]16<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
[868c7c2]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
[d8838ed5]26 <indexterm zone="mesalib">
[868c7c2]27 <primary sortas="a-MesaLib">MesaLib</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to MesaLib</title>
32
[eb425b4]33 <para>
34 <application>Mesa</application> is an OpenGL compatible 3D graphics
35 library.
36 </para>
[868c7c2]37
[07ad28a]38 &lfs77_checked; &gcc5_checked;
[ca0c29cc]39
[868c7c2]40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[de938a4e]43 <para>
44 Download (HTTP): <ulink url="&mesalib-download-http;"/>
45 </para>
[868c7c2]46 </listitem>
47 <listitem>
[de938a4e]48 <para>
49 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
50 </para>
[868c7c2]51 </listitem>
52 <listitem>
[de938a4e]53 <para>
54 Download MD5 sum: &mesalib-md5sum;
55 </para>
[868c7c2]56 </listitem>
57 <listitem>
[de938a4e]58 <para>
59 Download size: &mesalib-size;
60 </para>
[868c7c2]61 </listitem>
62 <listitem>
[de938a4e]63 <para>
64 Estimated disk space required: &mesalib-buildsize;
65 </para>
[868c7c2]66 </listitem>
67 <listitem>
[de938a4e]68 <para>
69 Estimated build time: &mesalib-time;
70 </para>
[868c7c2]71 </listitem>
72 </itemizedlist>
73
[625079b6]74 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[a07e9eb]75 <itemizedlist spacing="compact">
76 <listitem>
[eb425b4]77 <para>
78 Recommended patch:
[39dd48b]79 <ulink
80 url="&patch-root;/mesa-&mesalib-version;-add_xdemos-1.patch"/>
[1cdb1f7]81 (installs 2 demo programs for testing MesaLib - not needed if you
[39dd48b]82 install the <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">
83 mesa-demos</ulink> package)
[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">
[880727e]92 <xref linkend="xorg7-lib"/> and
93 <xref linkend="libdrm"/>
[eb425b4]94 </para>
[868c7c2]95
[606dfd4]96 <bridgehead renderas="sect4">Recommended</bridgehead>
[eb425b4]97 <para role="recommended">
[7be98fa1]98 <xref linkend="elfutils"/> (required for Gallium3D radeonsi driver),
[9065a56b]99 <xref linkend="libvdpau"/> (to build VDPAU drivers),
[5e60392]100 <xref linkend="llvm"/> (required for Gallium3D r300 and radeonsi drivers and also for
[9065a56b]101 llvmpipe which is intended to be the fastest of the three sw rasterizers,
[3a225a0]102 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink> )
[606dfd4]103 </para>
[60bcf481]104
[07584d8]105 <bridgehead renderas="sect4">Optional</bridgehead>
106 <para role="optional">
[58720a7b]107 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
[1cdb1f7]108 (provides more than 300 extra demos to test
109 <application>MesaLib</application>; this includes the same programs
[d443361]110 added by the patch above) and
[07584d8]111 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
112 </para>
113
[9065a56b]114 <note>
[fd2f9a2]115 <para>
[dae25ca5]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>
[a640d58]121 for Gallium3D r300 and radeonsi drivers. For an explanation of
122 Gallium3D please see
[9065a56b]123 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"></ulink>.
[fd2f9a2]124 </para>
[9065a56b]125 </note>
[fd2f9a2]126
[c5c2654]127 <para condition="html" role="usernotes">User Notes:
[2993b2f]128 <ulink url="&blfs-wiki;/mesalib"/>
129 </para>
[868c7c2]130 </sect2>
131
132 <sect2 role="installation">
133 <title>Installation of MesaLib</title>
134
[a07e9eb]135 <para>
[51c08f3]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:
[a07e9eb]139 </para>
140
[39dd48b]141<screen><userinput>patch -Np1 -i ../mesa-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
[a07e9eb]142
[eb425b4]143 <para>
144 Install <application>MesaLib</application> by running the following
145 commands:
146 </para>
[868c7c2]147
[cc8ccd9]148<screen><userinput>autoreconf -fiv &amp;&amp;
149./configure CFLAGS='-O2' CXXFLAGS='-O2' \
[5f26d66f]150 --prefix=$XORG_PREFIX \
[a07e9eb]151 --sysconfdir=/etc \
152 --enable-texture-float \
153 --enable-gles1 \
154 --enable-gles2 \
[2993b2f]155 --enable-osmesa \
[a07e9eb]156 --enable-xa \
157 --enable-gbm \
158 --enable-glx-tls \
159 --with-egl-platforms="drm,x11" \
[1f44775e]160 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[1199613]161make</userinput></screen>
[868c7c2]162
[a07e9eb]163 <para>
[7dd7061]164 If you have applied the xdemos patch, build the demo programs by
[a07e9eb]165 running the following command:
166 </para>
167
[5f26d66f]168<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
[a07e9eb]169
[eb425b4]170 <para>
[d9839520]171 To test the results, issue: <command>make check</command>.
[eb425b4]172 </para>
[ff55539b]173
[eb425b4]174 <para>
175 Now, as the <systemitem class="username">root</systemitem> user:
176 </para>
[ff55539b]177
[dae25ca5]178<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]179
180 <para>
[5f91dfd]181 If you have built the demo programs, install them by running the
[a07e9eb]182 following command as the
183 <systemitem class="username">root</systemitem> user:
184 </para>
185
[5f26d66f]186<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
[a07e9eb]187
[eb425b4]188 <para>
[a07e9eb]189 If desired, install the optional documentation by running
190 the following commands as the
[eb425b4]191 <systemitem class="username">root</systemitem> user:
192 </para>
[91859cf]193
[39dd48b]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>
[5a883bc4]196
[868c7c2]197 </sect2>
198
[a07e9eb]199 <sect2 role="commands">
200 <title>Command Explanations</title>
201
[95e8211]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
[fd2f9a2]206 debugging symbols which make them bigger. Override the default
[4d92247]207 flags to omit -g compiler flag so the final libraries are smaller.
[95e8211]208 </para>
209
[eb425b4]210 <para>
[6825eb89]211 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]212 floating-point textures and render buffers. Please consult
[eb425b4]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>
[6825eb89]218 <parameter>--enable-gles1</parameter>: This switch enables support for
[eb425b4]219 OpenGL ES 1.x API.
220 </para>
221
222 <para>
[6825eb89]223 <parameter>--enable-gles2</parameter>: This switch enables support for
[eb425b4]224 OpenGL ES 2.x API.
225 </para>
[9b3b6a4]226
[2993b2f]227 <para>
[6825eb89]228 <parameter>--enable-osmesa</parameter>: This switch enables building of
[abdc2e6]229 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]230 </para>
231
[eb425b4]232 <para>
[6825eb89]233 <parameter>--enable-xa</parameter>: This switch enables building of the
[eb425b4]234 XA X Acceleration API (Required for VMware 3D Driver).
235 </para>
236
237 <para>
[6825eb89]238 <parameter>--enable-gbm</parameter>: This switch enables building of the
[a07e9eb]239 <application>Mesa</application> Graphics Buffer Manager library.
240 </para>
241
[eb425b4]242 <para>
[6825eb89]243 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]244 Storage) support in GLX.
[eb425b4]245 </para>
246
[a07e9eb]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
[eb425b4]253 <para>
254 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[5e60392]255 controls which Gallium3D drivers should be built. Available drivers
[dae25ca5]256 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
[5e60392]257 will need to remove r300 and radeonsi from the list if you did
[dae25ca5]258 not install <application>elfutils</application> and
259 <application>LLVM</application>.
[eb425b4]260 </para>
[f49893b]261
[1f44775e]262 <para>
[dae25ca5]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.
[1f44775e]266 </para>
267
[625079b6]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
[371ff30]273 </sect2>
274
[868c7c2]275 <sect2 role="content">
276 <title>Contents</title>
277
278 <segmentedlist>
[1263ab1e]279 <segtitle>Installed Programs</segtitle>
[868c7c2]280 <segtitle>Installed Libraries</segtitle>
[ba2ac60]281 <segtitle>Installed Directories</segtitle>
[868c7c2]282
283 <seglistitem>
[eb425b4]284 <seg>
285 glxgears and glxinfo
286 </seg>
287 <seg>
[ed6d075]288 libEGL.so,
[c5f6157a]289 libgbm.so,
290 libglapi.so,
[ed6d075]291 libGLESv1_CM.so,
[5a14a19]292 libGLESv2.so,
[c5f6157a]293 libGL.so,
[a640d58]294 libOSMesa.so,
[b3be1cd]295 libxatracker.so,
[a640d58]296 libXvMCnouveau.so,
297 and libXvMCr600.so
[eb425b4]298 </seg>
299 <seg>
[880727e]300 $XORG_PREFIX/{include/{EGL,GL,GLES,GLES2,GLES3,KHR},lib/{dri,vdpau}}
301 and
[39dd48b]302 /usr/share/doc/mesa-&mesalib-version; (optional)
[eb425b4]303 </seg>
[868c7c2]304 </seglistitem>
305 </segmentedlist>
[d3ef1e4]306
[4437f63]307 <variablelist>
308 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
309 <?dbfo list-presentation="list"?>
310 <?dbhtml list-presentation="table"?>
311
312 <varlistentry id="glxgears">
[eb50ddde]313 <term><command>glxgears</command></term>
[4437f63]314 <listitem>
[eb425b4]315 <para>
316 is a GL demo useful for troubleshooting graphics
317 problems.
318 </para>
[d8838ed5]319 <indexterm zone="mesalib glxgears">
[4437f63]320 <primary sortas="b-glxgears">glxgears</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 <varlistentry id="glxinfo">
[eb50ddde]326 <term><command>glxinfo</command></term>
[4437f63]327 <listitem>
[eb425b4]328 <para>
329 is a diagnostic program that displays information about the
330 graphics hardware and installed GL libraries.
331 </para>
[d8838ed5]332 <indexterm zone="mesalib glxinfo">
[4437f63]333 <primary sortas="b-glxinfo">glxinfo</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
[25f6d94]338 <varlistentry id="libEGL">
[a07e9eb]339 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]340 <listitem>
[eb425b4]341 <para>
[a07e9eb]342 provides a native platform graphics interface as
343 defined by the EGL-1.4 specification.
[eb425b4]344 </para>
[25f6d94]345 <indexterm zone="mesalib libEGL">
346 <primary sortas="c-libGL">libEGL.so</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
[a07e9eb]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
[0d7900a]356 Manager library.
[a07e9eb]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
[ba2ac60]388 <varlistentry id="libGL">
[a07e9eb]389 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]390 <listitem>
[eb425b4]391 <para>
[a07e9eb]392 is the main <application>Mesa</application> OpenGL library.
[eb425b4]393 </para>
[ba2ac60]394 <indexterm zone="mesalib libGL">
395 <primary sortas="c-libGL">libGL.so</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
[2993b2f]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
[bad6be19]412 <varlistentry id="libxatracker">
[a07e9eb]413 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]414 <listitem>
[eb425b4]415 <para>
[a07e9eb]416 is the Xorg Gallium3D acceleration library.
[eb425b4]417 </para>
[bad6be19]418 <indexterm zone="mesalib libxatracker">
419 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]420 </indexterm>
421 </listitem>
422 </varlistentry>
[4437f63]423 </variablelist>
424
[868c7c2]425 </sect2>
[d3ef1e4]426
[868c7c2]427</sect1>
Note: See TracBrowser for help on using the repository browser.