source: x/lib/mesalib.xml@ 3f72a148

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 3f72a148 was 3f72a148, checked in by DJ Lucas <dj@…>, 18 years ago

Completed X Window section changes/x7 split

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