source: x/installing/mesa.xml@ f97d5f6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 f97d5f6 was f97d5f6, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Add libinput, wayland, and libpwquality for KDE Plasma5.
Add preliminary Plasma5 instructions. Packages build, but the
desktop does not yet run properly.

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

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