source: x/installing/mesalib.xml@ 5e8be1c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 5e8be1c was 5e8be1c, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

XML tags fixes on Xorg7 pages.

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

  • Property mode set to 100644
File size: 8.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY mesalib-download-http "http://prdownloads.sourceforge.net/mesa3d/MesaLib-&mesalib-version;.tar.bz2">
8 <!ENTITY mesalib-download-ftp " ">
9 <!ENTITY mesalib-md5sum "61beda590bfc5b4a12e979d5f2d70d7a">
10 <!ENTITY mesalib-size "3.3 MB">
11 <!ENTITY mesalib-buildsize "823 MB">
12 <!ENTITY mesalib-time "1.7 SBU">
13]>
14
15<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
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
25 <indexterm zone="mesalib">
26 <primary sortas="a-MesaLib">MesaLib</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to MesaLib</title>
31
32 <para><application>Mesa</application> is an OpenGL compatible 3-D graphics
33 library.</para>
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>Download (HTTP): <ulink url="&mesalib-download-http;"/></para>
39 </listitem>
40 <listitem>
41 <para>Download (FTP): <ulink url="&mesalib-download-ftp;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download MD5 sum: &mesalib-md5sum;</para>
45 </listitem>
46 <listitem>
47 <para>Download size (including recommended download):
48 &mesalib-size;</para>
49 </listitem>
50 <listitem>
51 <para>Estimated disk space required (including recommended download):
52 &mesalib-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time (including recommended download):
56 &mesalib-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Required</bridgehead>
63 <para role="required"><xref linkend="xorg7-lib"/>,
64 <xref linkend="xorg7-util"/>, and
65 <xref linkend="libdrm"/></para>
66
67 <note>
68 <para>It is not recomended to build a newer version of
69 <application>Mesa</application> with <xref linkend="xfree86"/> or
70 <xref linkend="xorg"/>.</para>
71 </note>
72
73 <bridgehead renderas="sect3">Recommended Download</bridgehead>
74 <para><ulink
75 url="http://prdownloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2">MesaDemos-&mesalib-version;</ulink>
76 provides a demo and a diagnostic program to verify that GL is working
77 properly.</para>
78
79 <bridgehead renderas="sect3">Optional Download</bridgehead>
80 <para><ulink
81 url="http://prdownloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2">MesaGLUT-&mesalib-version;</ulink>
82 provides a working <filename class='libraryfile'>libglut</filename>.</para>
83
84 <note>
85 <para>You should extract all three tarballs from the same toplevel
86 directory. All three files will extract to the
87 <filename class="directory">Mesa-&mesalib-version;</filename>
88 directory.</para>
89 </note>
90
91 <para condition="html" role="usernotes">User Notes:
92 <ulink url="&blfs-wiki;/mesalib"/></para>
93
94 </sect2>
95
96 <sect2 role="installation">
97 <title>Installation of MesaLib</title>
98
99 <para>You will need to adjust the commands below to reflect the
100 installation prefix of the X Window System. First, correct several
101 hard coded directories in the source files with the following
102 commands:</para>
103
104<screen><userinput>find . -type f -exec sed -i "s@/usr/X11R6@$XORG_PREFIX@g" {} \; &amp;&amp;
105sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c &amp;&amp;
106sed -i 's@lib/modules@lib/X11/modules@' src/mesa/drivers/dri/Makefile.template</userinput></screen>
107
108 <para>Build <application>MesaLib</application>
109 by running the following command:</para>
110
111<screen><userinput>make linux-dri</userinput></screen>
112
113 <para>This package does not come with a test suite.</para>
114
115 <para>Now, as the <systemitem class="username">root</systemitem> user,
116 issue the following commands to install
117 <application>MesaLib</application>:</para>
118
119<screen role="root"><userinput>bin/installmesa $XORG_PREFIX</userinput></screen>
120
121 <para>While still the root user, install the modules for
122 Xorg-&xorg7-version; with the following commands.</para>
123
124<screen role="root"><userinput>mkdir -v -p $XORG_PREFIX/lib/X11/modules/dri &amp;&amp;
125install -v -m755 lib/*dri* $XORG_PREFIX/lib/X11/modules/dri</userinput></screen>
126
127 <para>If you've extracted the Demos package as well, then
128 build the test programs with the following commands:</para>
129
130<screen><userinput>sed -i 's@-l$(GLUT_LIB)@@g' configs/default &amp;&amp;
131cd progs/xdemos &amp;&amp;
132make PROGS='glxinfo glxgears'</userinput></screen>
133
134 <para>Install the demos as the
135 <systemitem class="username">root</systemitem> user:</para>
136
137<screen role="root"><userinput>install -v -m755 glxinfo glxgears $XORG_PREFIX/bin</userinput></screen>
138
139 <note>
140 <para>Do not remove the Mesa source tree yet, it will be required to
141 build the <xref linkend="xorg7-server"/>.</para>
142 </note>
143
144 <para>Finally, if installing to any prefix other than
145 <filename class="directory">/usr</filename>, you should create symlinks
146 to the GL headers in <filename class="directory">/usr/include</filename>.
147 Execute the following command as the
148 <systemitem class="username">root</systemitem> user:</para>
149
150<screen role="root"><userinput>ln -s -v $XORG_PREFIX/include/GL /usr/include</userinput></screen>
151
152 </sect2>
153
154 <sect2 role="commands">
155 <title>Command Explanations</title>
156
157 <para><command>find...sed -i
158 "s@/usr/X11R6@$XORG_PREFIX@"...</command>:
159 This command corrects several hard coded references to the X11R6 default
160 installation path.</para>
161
162 <para><command>sed -i 's@lib/modules@lib/X11/modules@'
163 src/glx/x11/dri_glx.c</command>: This command corrects a hard coded
164 reference to the module directory.</para>
165
166 <para><command>bin/installmesa</command>: Mesa uses a custom installation
167 script as opposed to the normal <parameter>install</parameter> make
168 target.</para>
169
170 <para><command>install -v -m755 lib/*dri*
171 $XORG_PREFIX/lib/X11/modules/dri</command>:
172 installs the DRI modules.</para>
173
174 <para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
175 disables linking against GLUT libraries for the demo programs.</para>
176
177 <para><command>make PROGS='glxinfo glxgears'</command>: build only
178 the glxinfo and glxgears programs.</para>
179
180 <para><command>install -v -m755 glxinfo glxgears
181 $XORG_PREFIX/bin</command>:
182 Installs only the glxinfo and glxgears programs.</para>
183
184 </sect2>
185
186 <sect2 role="content">
187 <title>Contents</title>
188
189 <segmentedlist>
190 <segtitle>Installed Programs</segtitle>
191 <segtitle>Installed Libraries</segtitle>
192 <segtitle>Installed Directories</segtitle>
193
194 <seglistitem>
195 <seg>glxgears and glxinfo</seg>
196 <seg>libGL.{so,a}, libGLU.{so,a}, libGLw.{so,a}, libglut.{so,a} and
197 *_dri.so</seg>
198 <seg>$XORG_PREFIX/lib/modules/dri</seg>
199 </seglistitem>
200 </segmentedlist>
201
202 <variablelist>
203 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
204 <?dbfo list-presentation="list"?>
205 <?dbhtml list-presentation="table"?>
206
207 <varlistentry id="glxgears">
208 <term><filename>glxgears</filename></term>
209 <listitem>
210 <para>a GL demo useful for troubleshooting graphics problems.</para>
211 <indexterm zone="mesalib glxgears">
212 <primary sortas="b-glxgears">glxgears</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="glxinfo">
218 <term><filename>glxinfo</filename></term>
219 <listitem>
220 <para>a diagnostic program that displays information about the
221 graphics hardware and installed GL libraries.</para>
222 <indexterm zone="mesalib glxinfo">
223 <primary sortas="b-glxinfo">glxinfo</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 </variablelist>
229
230 </sect2>
231
232</sect1>
Note: See TracBrowser for help on using the repository browser.