source: x/installing/mesalib.xml@ a14f8e11

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a14f8e11 was 7b273030, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Tags through Xorg

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

  • Property mode set to 100644
File size: 14.1 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">
[b3b7e36]9 <!ENTITY mesalib-md5sum "ce091e6e969392f7c63ca8c0275bbc0f">
[5ee1266]10 <!ENTITY mesalib-size "6.8 MB">
[472a89e3]11 <!ENTITY mesalib-buildsize "234 MB (without tests)">
12 <!ENTITY mesalib-time "8.0 SBU (without tests)">
[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
[7b273030]37 &lfs78_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
[625079b6]73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[a07e9eb]74 <itemizedlist spacing="compact">
[b3b7e36]75 <listitem>
76 <para>
77 Required patch:
78 <ulink
79 url="&patch-root;/mesa-&mesalib-version;-llvm_3_7-1.patch"/>
80 </para>
81 </listitem>
[a07e9eb]82 <listitem>
[eb425b4]83 <para>
84 Recommended patch:
[39dd48b]85 <ulink
86 url="&patch-root;/mesa-&mesalib-version;-add_xdemos-1.patch"/>
[1cdb1f7]87 (installs 2 demo programs for testing MesaLib - not needed if you
[39dd48b]88 install the <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">
89 mesa-demos</ulink> package)
[ace536a]90 </para>
[eeb29511]91 </listitem>
92 </itemizedlist>
93
[868c7c2]94 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
95
96 <bridgehead renderas="sect4">Required</bridgehead>
[7b74537e]97 <para role="required">
[880727e]98 <xref linkend="xorg7-lib"/> and
99 <xref linkend="libdrm"/>
[eb425b4]100 </para>
[868c7c2]101
[606dfd4]102 <bridgehead renderas="sect4">Recommended</bridgehead>
[eb425b4]103 <para role="recommended">
[7be98fa1]104 <xref linkend="elfutils"/> (required for Gallium3D radeonsi driver),
[9065a56b]105 <xref linkend="libvdpau"/> (to build VDPAU drivers),
[5e60392]106 <xref linkend="llvm"/> (required for Gallium3D r300 and radeonsi drivers and also for
[9065a56b]107 llvmpipe which is intended to be the fastest of the three sw rasterizers,
[3a225a0]108 see <ulink url="http://www.mesa3d.org/faq.html#part3"></ulink> )
[606dfd4]109 </para>
[60bcf481]110
[07584d8]111 <bridgehead renderas="sect4">Optional</bridgehead>
112 <para role="optional">
[58720a7b]113 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
[1cdb1f7]114 (provides more than 300 extra demos to test
115 <application>MesaLib</application>; this includes the same programs
[c18b8f23]116 added by the patch above),
117 <ulink url="http://omxil.sourceforge.net/">Bellagio OpenMAX Integration
118 Layer</ulink> (for mobile platforms) and
[07584d8]119 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
120 </para>
121
[9065a56b]122 <note>
[fd2f9a2]123 <para>
[dae25ca5]124 The instructions below assume that <application>elfutils</application>
125 and <application>LLVM</application> are installed. You will
126 need to modify the instructions if you choose not to install them.
127 Please note that <application>elfutils</application> and
128 <application>LLVM</application> are <emphasis>required</emphasis>
[a640d58]129 for Gallium3D r300 and radeonsi drivers. For an explanation of
130 Gallium3D please see
[9065a56b]131 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"></ulink>.
[fd2f9a2]132 </para>
[9065a56b]133 </note>
[fd2f9a2]134
[c5c2654]135 <para condition="html" role="usernotes">User Notes:
[2993b2f]136 <ulink url="&blfs-wiki;/mesalib"/>
137 </para>
[868c7c2]138 </sect2>
139
140 <sect2 role="installation">
141 <title>Installation of MesaLib</title>
142
[a07e9eb]143 <para>
[51c08f3]144 If you have downloaded the xdemos patch (needed if testing the Xorg
145 installation per BLFS instructions), apply it by running the following
146 command:
[a07e9eb]147 </para>
148
[39dd48b]149<screen><userinput>patch -Np1 -i ../mesa-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
[a07e9eb]150
[eb425b4]151 <para>
152 Install <application>MesaLib</application> by running the following
153 commands:
154 </para>
[868c7c2]155
[b3b7e36]156<screen><userinput>patch -Np1 -i ../mesa-&mesalib-version;-llvm_3_7-1.patch &amp;&amp;
157
158GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[5ee1266]159
[b3b7e36]160./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
[5ee1266]161 --prefix=$XORG_PREFIX \
162 --sysconfdir=/etc \
163 --enable-texture-float \
164 --enable-gles1 \
165 --enable-gles2 \
166 --enable-osmesa \
167 --enable-xa \
168 --enable-gbm \
169 --enable-glx-tls \
170 --with-egl-platforms="drm,x11" \
171 --with-gallium-drivers=$GLL_DRV &amp;&amp;
172
173unset GLL_DRV &amp;&amp;
174
[1199613]175make</userinput></screen>
[868c7c2]176
[a07e9eb]177 <para>
[7dd7061]178 If you have applied the xdemos patch, build the demo programs by
[a07e9eb]179 running the following command:
180 </para>
181
[5f26d66f]182<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
[a07e9eb]183
[eb425b4]184 <para>
[d9839520]185 To test the results, issue: <command>make check</command>.
[eb425b4]186 </para>
[ff55539b]187
[eb425b4]188 <para>
189 Now, as the <systemitem class="username">root</systemitem> user:
190 </para>
[ff55539b]191
[dae25ca5]192<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]193
194 <para>
[5f91dfd]195 If you have built the demo programs, install them by running the
[a07e9eb]196 following command as the
197 <systemitem class="username">root</systemitem> user:
198 </para>
199
[5f26d66f]200<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
[a07e9eb]201
[eb425b4]202 <para>
[a07e9eb]203 If desired, install the optional documentation by running
204 the following commands as the
[eb425b4]205 <systemitem class="username">root</systemitem> user:
206 </para>
[91859cf]207
[39dd48b]208<screen role="root"><userinput>install -v -dm755 /usr/share/doc/mesa-&mesalib-version; &amp;&amp;
209cp -rfv docs/* /usr/share/doc/mesa-&mesalib-version;</userinput></screen>
[5a883bc4]210
[868c7c2]211 </sect2>
212
[a07e9eb]213 <sect2 role="commands">
214 <title>Command Explanations</title>
215
[95e8211]216 <para>
217 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
218 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
219 "-g -O2". That results in binaries and libraries being built with
[fd2f9a2]220 debugging symbols which make them bigger. Override the default
[4d92247]221 flags to omit -g compiler flag so the final libraries are smaller.
[95e8211]222 </para>
223
[eb425b4]224 <para>
[6825eb89]225 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]226 floating-point textures and render buffers. Please consult
[eb425b4]227 <filename>docs/patents.txt</filename> to see if there are
228 any legal issues if you use this feature.
229 </para>
230
231 <para>
[6825eb89]232 <parameter>--enable-gles1</parameter>: This switch enables support for
[eb425b4]233 OpenGL ES 1.x API.
234 </para>
235
236 <para>
[6825eb89]237 <parameter>--enable-gles2</parameter>: This switch enables support for
[eb425b4]238 OpenGL ES 2.x API.
239 </para>
[9b3b6a45]240
[2993b2f]241 <para>
[6825eb89]242 <parameter>--enable-osmesa</parameter>: This switch enables building of
[abdc2e6]243 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]244 </para>
245
[eb425b4]246 <para>
[6825eb89]247 <parameter>--enable-xa</parameter>: This switch enables building of the
[eb425b4]248 XA X Acceleration API (Required for VMware 3D Driver).
249 </para>
250
251 <para>
[6825eb89]252 <parameter>--enable-gbm</parameter>: This switch enables building of the
[a07e9eb]253 <application>Mesa</application> Graphics Buffer Manager library.
254 </para>
255
[eb425b4]256 <para>
[6825eb89]257 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]258 Storage) support in GLX.
[eb425b4]259 </para>
260
[a07e9eb]261 <para>
262 <parameter>--with-egl-platforms="..."</parameter>: This parameter
[e56f38b]263 controls which platforms EGL will be built for. Available
[a07e9eb]264 platforms are drm, x11 and wayland.
265 </para>
266
[eb425b4]267 <para>
268 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[5e60392]269 controls which Gallium3D drivers should be built. Available drivers
[dae25ca5]270 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
[5e60392]271 will need to remove r300 and radeonsi from the list if you did
[dae25ca5]272 not install <application>elfutils</application> and
273 <application>LLVM</application>.
[eb425b4]274 </para>
[f49893b]275
[1f44775e]276 <para>
[dae25ca5]277 <option>--enable-r600-llvm-compiler</option>: Use this switch to
[e56f38b]278 enable an experimental R600 <application>LLVM</application> backend
[dae25ca5]279 for graphics shaders which claims to speed up the driver.
[1f44775e]280 </para>
281
[625079b6]282 <para>
283 <option>--enable-sysfs</option>: Use this switch to enable simple PCI
284 identification method, required for building DRI on systems without udev.
285 </para>
286
[371ff30]287 </sect2>
288
[868c7c2]289 <sect2 role="content">
290 <title>Contents</title>
291
292 <segmentedlist>
[1263ab1e]293 <segtitle>Installed Programs</segtitle>
[868c7c2]294 <segtitle>Installed Libraries</segtitle>
[ba2ac60]295 <segtitle>Installed Directories</segtitle>
[868c7c2]296
297 <seglistitem>
[eb425b4]298 <seg>
299 glxgears and glxinfo
300 </seg>
301 <seg>
[ed6d075]302 libEGL.so,
[c5f6157a]303 libgbm.so,
304 libglapi.so,
[ed6d075]305 libGLESv1_CM.so,
[5a14a19]306 libGLESv2.so,
[c5f6157a]307 libGL.so,
[a640d58]308 libOSMesa.so,
[b3be1cd]309 libxatracker.so,
[a640d58]310 libXvMCnouveau.so,
311 and libXvMCr600.so
[eb425b4]312 </seg>
313 <seg>
[880727e]314 $XORG_PREFIX/{include/{EGL,GL,GLES,GLES2,GLES3,KHR},lib/{dri,vdpau}}
315 and
[39dd48b]316 /usr/share/doc/mesa-&mesalib-version; (optional)
[eb425b4]317 </seg>
[868c7c2]318 </seglistitem>
319 </segmentedlist>
[d3ef1e4]320
[4437f63]321 <variablelist>
322 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
323 <?dbfo list-presentation="list"?>
324 <?dbhtml list-presentation="table"?>
325
326 <varlistentry id="glxgears">
[eb50ddde]327 <term><command>glxgears</command></term>
[4437f63]328 <listitem>
[eb425b4]329 <para>
330 is a GL demo useful for troubleshooting graphics
331 problems.
332 </para>
[d8838ed5]333 <indexterm zone="mesalib glxgears">
[4437f63]334 <primary sortas="b-glxgears">glxgears</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="glxinfo">
[eb50ddde]340 <term><command>glxinfo</command></term>
[4437f63]341 <listitem>
[eb425b4]342 <para>
343 is a diagnostic program that displays information about the
344 graphics hardware and installed GL libraries.
345 </para>
[d8838ed5]346 <indexterm zone="mesalib glxinfo">
[4437f63]347 <primary sortas="b-glxinfo">glxinfo</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
[25f6d94]352 <varlistentry id="libEGL">
[a07e9eb]353 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]354 <listitem>
[eb425b4]355 <para>
[a07e9eb]356 provides a native platform graphics interface as
357 defined by the EGL-1.4 specification.
[eb425b4]358 </para>
[25f6d94]359 <indexterm zone="mesalib libEGL">
360 <primary sortas="c-libGL">libEGL.so</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
[a07e9eb]365 <varlistentry id="libgbm">
366 <term><filename class="libraryfile">libgbm.so</filename></term>
367 <listitem>
368 <para>
369 is the <application>Mesa</application> Graphics Buffer
[0d7900a]370 Manager library.
[a07e9eb]371 </para>
372 <indexterm zone="mesalib libgbm">
373 <primary sortas="c-libgbm">libgbm.so</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="libGLESv1_CM">
379 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
380 <listitem>
381 <para>
382 is the <application>Mesa</application> OpenGL ES 1.1 library.
383 </para>
384 <indexterm zone="mesalib libGLESv1_CM">
385 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="libGLES2">
391 <term><filename class="libraryfile">libGLES2.so</filename></term>
392 <listitem>
393 <para>
394 is the <application>Mesa</application> OpenGL ES 2.0 library.
395 </para>
396 <indexterm zone="mesalib libGLES2">
397 <primary sortas="c-libGLES2">libGLES2.so</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
[ba2ac60]402 <varlistentry id="libGL">
[a07e9eb]403 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]404 <listitem>
[eb425b4]405 <para>
[a07e9eb]406 is the main <application>Mesa</application> OpenGL library.
[eb425b4]407 </para>
[ba2ac60]408 <indexterm zone="mesalib libGL">
409 <primary sortas="c-libGL">libGL.so</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
[2993b2f]414 <varlistentry id="libOSMesa">
415 <term><filename class="libraryfile">libOSMesa.so</filename></term>
416 <listitem>
417 <para>
418 is the <application>Mesa</application> Off-screen Rendering library.
419 </para>
420 <indexterm zone="mesalib libOSMesa">
421 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
[bad6be19]426 <varlistentry id="libxatracker">
[a07e9eb]427 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]428 <listitem>
[eb425b4]429 <para>
[a07e9eb]430 is the Xorg Gallium3D acceleration library.
[eb425b4]431 </para>
[bad6be19]432 <indexterm zone="mesalib libxatracker">
433 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]434 </indexterm>
435 </listitem>
436 </varlistentry>
[4437f63]437 </variablelist>
438
[868c7c2]439 </sect2>
[d3ef1e4]440
[868c7c2]441</sect1>
Note: See TracBrowser for help on using the repository browser.