source: x/installing/mesalib.xml@ 233a4949

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 233a4949 was 233a4949, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Update to Berkeley DB 6.1.26.
Update to mesa-10.5.8.
Update to epiphany-3.16.2.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16162 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">
[233a4949]9 <!ENTITY mesalib-md5sum "5332a3576c5e3a0c3947ee6668dd4157">
[39dd48b]10 <!ENTITY mesalib-size "6.7 MB">
[d3635da]11 <!ENTITY mesalib-buildsize "284 MB (with checks and documentation)">
[233a4949]12 <!ENTITY mesalib-time "8.4 SBU (with checks and documentation)">
[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
[b65fc76c]148<screen><userinput>./configure CFLAGS='-O2' CXXFLAGS='-O2' \
[5f26d66f]149 --prefix=$XORG_PREFIX \
[a07e9eb]150 --sysconfdir=/etc \
151 --enable-texture-float \
152 --enable-gles1 \
153 --enable-gles2 \
[2993b2f]154 --enable-osmesa \
[a07e9eb]155 --enable-xa \
156 --enable-gbm \
157 --enable-glx-tls \
158 --with-egl-platforms="drm,x11" \
[1f44775e]159 --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[1199613]160make</userinput></screen>
[868c7c2]161
[a07e9eb]162 <para>
[7dd7061]163 If you have applied the xdemos patch, build the demo programs by
[a07e9eb]164 running the following command:
165 </para>
166
[5f26d66f]167<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
[a07e9eb]168
[eb425b4]169 <para>
[d983952]170 To test the results, issue: <command>make check</command>.
[eb425b4]171 </para>
[ff55539b]172
[eb425b4]173 <para>
174 Now, as the <systemitem class="username">root</systemitem> user:
175 </para>
[ff55539b]176
[dae25ca5]177<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]178
179 <para>
[5f91dfd]180 If you have built the demo programs, install them by running the
[a07e9eb]181 following command as the
182 <systemitem class="username">root</systemitem> user:
183 </para>
184
[5f26d66f]185<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
[a07e9eb]186
[eb425b4]187 <para>
[a07e9eb]188 If desired, install the optional documentation by running
189 the following commands as the
[eb425b4]190 <systemitem class="username">root</systemitem> user:
191 </para>
[91859cf]192
[39dd48b]193<screen role="root"><userinput>install -v -dm755 /usr/share/doc/mesa-&mesalib-version; &amp;&amp;
194cp -rfv docs/* /usr/share/doc/mesa-&mesalib-version;</userinput></screen>
[5a883bc4]195
[868c7c2]196 </sect2>
197
[a07e9eb]198 <sect2 role="commands">
199 <title>Command Explanations</title>
200
[95e8211]201 <para>
202 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
203 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
204 "-g -O2". That results in binaries and libraries being built with
[fd2f9a2]205 debugging symbols which make them bigger. Override the default
[4d92247]206 flags to omit -g compiler flag so the final libraries are smaller.
[95e8211]207 </para>
208
[eb425b4]209 <para>
[6825eb89]210 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]211 floating-point textures and render buffers. Please consult
[eb425b4]212 <filename>docs/patents.txt</filename> to see if there are
213 any legal issues if you use this feature.
214 </para>
215
216 <para>
[6825eb89]217 <parameter>--enable-gles1</parameter>: This switch enables support for
[eb425b4]218 OpenGL ES 1.x API.
219 </para>
220
221 <para>
[6825eb89]222 <parameter>--enable-gles2</parameter>: This switch enables support for
[eb425b4]223 OpenGL ES 2.x API.
224 </para>
[9b3b6a4]225
[2993b2f]226 <para>
[6825eb89]227 <parameter>--enable-osmesa</parameter>: This switch enables building of
[abdc2e6]228 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]229 </para>
230
[eb425b4]231 <para>
[6825eb89]232 <parameter>--enable-xa</parameter>: This switch enables building of the
[eb425b4]233 XA X Acceleration API (Required for VMware 3D Driver).
234 </para>
235
236 <para>
[6825eb89]237 <parameter>--enable-gbm</parameter>: This switch enables building of the
[a07e9eb]238 <application>Mesa</application> Graphics Buffer Manager library.
239 </para>
240
[eb425b4]241 <para>
[6825eb89]242 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]243 Storage) support in GLX.
[eb425b4]244 </para>
245
[a07e9eb]246 <para>
247 <parameter>--with-egl-platforms="..."</parameter>: This parameter
248 controls for which platforms EGL should be built. Available
249 platforms are drm, x11 and wayland.
250 </para>
251
[eb425b4]252 <para>
253 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[5e60392]254 controls which Gallium3D drivers should be built. Available drivers
[dae25ca5]255 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
[5e60392]256 will need to remove r300 and radeonsi from the list if you did
[dae25ca5]257 not install <application>elfutils</application> and
258 <application>LLVM</application>.
[eb425b4]259 </para>
[f49893b]260
[1f44775e]261 <para>
[dae25ca5]262 <option>--enable-r600-llvm-compiler</option>: Use this switch to
263 enable experimental R600 <application>LLVM</application> backend
264 for graphics shaders which claims to speed up the driver.
[1f44775e]265 </para>
266
[625079b6]267 <para>
268 <option>--enable-sysfs</option>: Use this switch to enable simple PCI
269 identification method, required for building DRI on systems without udev.
270 </para>
271
[371ff30]272 </sect2>
273
[868c7c2]274 <sect2 role="content">
275 <title>Contents</title>
276
277 <segmentedlist>
[1263ab1e]278 <segtitle>Installed Programs</segtitle>
[868c7c2]279 <segtitle>Installed Libraries</segtitle>
[ba2ac60]280 <segtitle>Installed Directories</segtitle>
[868c7c2]281
282 <seglistitem>
[eb425b4]283 <seg>
284 glxgears and glxinfo
285 </seg>
286 <seg>
[ed6d075]287 libEGL.so,
[c5f6157a]288 libgbm.so,
289 libglapi.so,
[ed6d075]290 libGLESv1_CM.so,
[5a14a19]291 libGLESv2.so,
[c5f6157a]292 libGL.so,
[a640d58]293 libOSMesa.so,
[b3be1cd]294 libxatracker.so,
[a640d58]295 libXvMCnouveau.so,
296 and libXvMCr600.so
[eb425b4]297 </seg>
298 <seg>
[880727e]299 $XORG_PREFIX/{include/{EGL,GL,GLES,GLES2,GLES3,KHR},lib/{dri,vdpau}}
300 and
[39dd48b]301 /usr/share/doc/mesa-&mesalib-version; (optional)
[eb425b4]302 </seg>
[868c7c2]303 </seglistitem>
304 </segmentedlist>
[d3ef1e4]305
[4437f63]306 <variablelist>
307 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
308 <?dbfo list-presentation="list"?>
309 <?dbhtml list-presentation="table"?>
310
311 <varlistentry id="glxgears">
[eb50ddde]312 <term><command>glxgears</command></term>
[4437f63]313 <listitem>
[eb425b4]314 <para>
315 is a GL demo useful for troubleshooting graphics
316 problems.
317 </para>
[d8838ed5]318 <indexterm zone="mesalib glxgears">
[4437f63]319 <primary sortas="b-glxgears">glxgears</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="glxinfo">
[eb50ddde]325 <term><command>glxinfo</command></term>
[4437f63]326 <listitem>
[eb425b4]327 <para>
328 is a diagnostic program that displays information about the
329 graphics hardware and installed GL libraries.
330 </para>
[d8838ed5]331 <indexterm zone="mesalib glxinfo">
[4437f63]332 <primary sortas="b-glxinfo">glxinfo</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
[25f6d94]337 <varlistentry id="libEGL">
[a07e9eb]338 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]339 <listitem>
[eb425b4]340 <para>
[a07e9eb]341 provides a native platform graphics interface as
342 defined by the EGL-1.4 specification.
[eb425b4]343 </para>
[25f6d94]344 <indexterm zone="mesalib libEGL">
345 <primary sortas="c-libGL">libEGL.so</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
[a07e9eb]350 <varlistentry id="libgbm">
351 <term><filename class="libraryfile">libgbm.so</filename></term>
352 <listitem>
353 <para>
354 is the <application>Mesa</application> Graphics Buffer
[0d7900a]355 Manager library.
[a07e9eb]356 </para>
357 <indexterm zone="mesalib libgbm">
358 <primary sortas="c-libgbm">libgbm.so</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
363 <varlistentry id="libGLESv1_CM">
364 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
365 <listitem>
366 <para>
367 is the <application>Mesa</application> OpenGL ES 1.1 library.
368 </para>
369 <indexterm zone="mesalib libGLESv1_CM">
370 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
371 </indexterm>
372 </listitem>
373 </varlistentry>
374
375 <varlistentry id="libGLES2">
376 <term><filename class="libraryfile">libGLES2.so</filename></term>
377 <listitem>
378 <para>
379 is the <application>Mesa</application> OpenGL ES 2.0 library.
380 </para>
381 <indexterm zone="mesalib libGLES2">
382 <primary sortas="c-libGLES2">libGLES2.so</primary>
383 </indexterm>
384 </listitem>
385 </varlistentry>
386
[ba2ac60]387 <varlistentry id="libGL">
[a07e9eb]388 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]389 <listitem>
[eb425b4]390 <para>
[a07e9eb]391 is the main <application>Mesa</application> OpenGL library.
[eb425b4]392 </para>
[ba2ac60]393 <indexterm zone="mesalib libGL">
394 <primary sortas="c-libGL">libGL.so</primary>
395 </indexterm>
396 </listitem>
397 </varlistentry>
398
[2993b2f]399 <varlistentry id="libOSMesa">
400 <term><filename class="libraryfile">libOSMesa.so</filename></term>
401 <listitem>
402 <para>
403 is the <application>Mesa</application> Off-screen Rendering library.
404 </para>
405 <indexterm zone="mesalib libOSMesa">
406 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
[bad6be19]411 <varlistentry id="libxatracker">
[a07e9eb]412 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]413 <listitem>
[eb425b4]414 <para>
[a07e9eb]415 is the Xorg Gallium3D acceleration library.
[eb425b4]416 </para>
[bad6be19]417 <indexterm zone="mesalib libxatracker">
418 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]419 </indexterm>
420 </listitem>
421 </varlistentry>
[4437f63]422 </variablelist>
423
[868c7c2]424 </sect2>
[d3ef1e4]425
[868c7c2]426</sect1>
Note: See TracBrowser for help on using the repository browser.