source: x/lib/mesalib.xml@ 25a6c5c2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 25a6c5c2 was 25a6c5c2, checked in by Randy McMurchy <randy@…>, 17 years ago

Removed the obsolete and unmaintained Xorg-6.9 package

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

  • Property mode set to 100644
File size: 9.0 KB
RevLine 
[868c7c2]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
[15b3bc29]7 <!ENTITY mesalib-download-http "http://downloads.sourceforge.net/mesa3d/MesaLib-&mesalib-version;.tar.bz2">
[868c7c2]8 <!ENTITY mesalib-download-ftp " ">
[7be99f2c]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">
[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
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>
[7be99f2c]47 <para>Download size (including recommended download):
[868c7c2]48 &mesalib-size;</para>
49 </listitem>
50 <listitem>
[7be99f2c]51 <para>Estimated disk space required (including recommended download):
[868c7c2]52 &mesalib-buildsize;</para>
53 </listitem>
54 <listitem>
[7be99f2c]55 <para>Estimated build time (including recommended download):
[868c7c2]56 &mesalib-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Required</bridgehead>
[c23b62b]63 <para role="required"><xref linkend="xorg7-lib"/>,
[2128523]64 <xref linkend="xorg7-util"/>, and
65 <xref linkend="libdrm"/></para>
[868c7c2]66
[531e09e]67 <note>
[06be400]68 <para>It is not recommended to build a newer version of
[25a6c5c2]69 <application>Mesa</application> with <xref linkend="xfree86"/>.</para>
[531e09e]70 </note>
71
[3f72a148]72 <bridgehead renderas="sect3">Recommended Download</bridgehead>
[d3ef1e4]73 <para><ulink
[15b3bc29]74 url="http://downloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2">MesaDemos-&mesalib-version;</ulink>
[d9c80e1]75 provides a demo and a diagnostic program to verify that GL is working
[4437f63]76 properly.</para>
[d3ef1e4]77
[3f72a148]78 <bridgehead renderas="sect3">Optional Download</bridgehead>
79 <para><ulink
[15b3bc29]80 url="http://downloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2">MesaGLUT-&mesalib-version;</ulink>
[3f72a148]81 provides a working <filename class='libraryfile'>libglut</filename>.</para>
82
[d3ef1e4]83 <note>
84 <para>You should extract all three tarballs from the same toplevel
[d9c80e1]85 directory. All three files will extract to the
[d3ef1e4]86 <filename class="directory">Mesa-&mesalib-version;</filename>
87 directory.</para>
88 </note>
[868c7c2]89
[c5c2654]90 <para condition="html" role="usernotes">User Notes:
91 <ulink url="&blfs-wiki;/mesalib"/></para>
92
[868c7c2]93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of MesaLib</title>
97
[38476a9]98 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
99 href="../../xincludes/xorg7-only.xml"/>
100
[78f4c3e]101 <para>You will need to adjust the commands below to reflect the
[c23b62b]102 installation prefix of the X Window System. First, correct several
103 hard coded directories in the source files with the following
[531e09e]104 commands:</para>
[78f4c3e]105
[6291d0e]106<screen><userinput>find . -type f -exec sed -i "s@/usr/X11R6@$XORG_PREFIX@g" {} \; &amp;&amp;
[7be99f2c]107sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c &amp;&amp;
[4e88613]108sed -i 's@lib/modules@lib/X11/modules@' \
109 src/mesa/drivers/dri/Makefile.template</userinput></screen>
[868c7c2]110
[864b24de]111 <para>Fix an error with output redirection if <command>/bin/sh</command>
[3a7d9e51]112 is not the <application>Bash</application> shell on your system:</para>
113
114<screen><userinput>sed -i 's%&gt;&amp; /dev/null%&gt;/dev/null%' src/mesa/drivers/dri/Makefile.template</userinput></screen>
115
[3f72a148]116 <para>Build <application>MesaLib</application>
[d3ef1e4]117 by running the following command:</para>
[868c7c2]118
[037012f]119<screen><userinput>make OPT_FLAGS="-O2 -fno-strict-aliasing" linux-dri-x86</userinput></screen>
[868c7c2]120
121 <para>This package does not come with a test suite.</para>
122
[3f72a148]123 <para>Now, as the <systemitem class="username">root</systemitem> user,
[c23b62b]124 issue the following commands to install
[531e09e]125 <application>MesaLib</application>:</para>
[868c7c2]126
[6291d0e]127<screen role="root"><userinput>bin/installmesa $XORG_PREFIX</userinput></screen>
[ff55539b]128
[c23b62b]129 <para>While still the root user, install the modules for
[ff55539b]130 Xorg-&xorg7-version; with the following commands.</para>
131
[6291d0e]132<screen role="root"><userinput>mkdir -v -p $XORG_PREFIX/lib/X11/modules/dri &amp;&amp;
133install -v -m755 lib/*dri* $XORG_PREFIX/lib/X11/modules/dri</userinput></screen>
[868c7c2]134
[a6c2aff2]135 <para>If you've extracted the Demos package as well, then
[868c7c2]136 build the test programs with the following commands:</para>
137
[a6c2aff2]138<screen><userinput>sed -i 's@-l$(GLUT_LIB)@@g' configs/default &amp;&amp;
139cd progs/xdemos &amp;&amp;
[868c7c2]140make PROGS='glxinfo glxgears'</userinput></screen>
141
[d3ef1e4]142 <para>Install the demos as the
[531e09e]143 <systemitem class="username">root</systemitem> user:</para>
[868c7c2]144
[6291d0e]145<screen role="root"><userinput>install -v -m755 glxinfo glxgears $XORG_PREFIX/bin</userinput></screen>
[868c7c2]146
[d3ef1e4]147 <note>
[c23b62b]148 <para>Do not remove the Mesa source tree yet, it will be required to
[531e09e]149 build the <xref linkend="xorg7-server"/>.</para>
[d3ef1e4]150 </note>
[868c7c2]151
[d9c80e1]152 <para>Finally, if installing to any prefix other than
[3735050]153 <filename class="directory">/usr</filename>, you should create symlinks
154 to the GL headers in <filename class="directory">/usr/include</filename>.
155 Execute the following command as the
156 <systemitem class="username">root</systemitem> user:</para>
157
[5e8be1c]158<screen role="root"><userinput>ln -s -v $XORG_PREFIX/include/GL /usr/include</userinput></screen>
[3735050]159
[868c7c2]160 </sect2>
161
[371ff30]162 <sect2 role="commands">
163 <title>Command Explanations</title>
164
[c23b62b]165 <para><command>find...sed -i
166 "s@/usr/X11R6@$XORG_PREFIX@"...</command>:
[78f4c3e]167 This command corrects several hard coded references to the X11R6 default
[371ff30]168 installation path.</para>
169
[d9c80e1]170 <para><command>sed -i 's@lib/modules@lib/X11/modules@'
[371ff30]171 src/glx/x11/dri_glx.c</command>: This command corrects a hard coded
172 reference to the module directory.</para>
173
[037012f]174 <para><command>make OPT_FLAGS=... linux-dri-x86</command>: A bug where
175 OpenGL applications are shifted to the left by 50% can be worked around
176 by adding <option>-fno-strict-aliasing</option> to the compiler flags.
177 Also, the <option>linux-dri-x86</option> target is specified to use a
178 few other helpful flags in addition to the defaults. See the other
179 targets in the <filename class="directory">configs</filename> directory
180 if your architecture is not x86.</para>
181
[371ff30]182 <para><command>bin/installmesa</command>: Mesa uses a custom installation
[d9c80e1]183 script as opposed to the normal <parameter>install</parameter> make
[371ff30]184 target.</para>
185
[d9c80e1]186 <para><command>install -v -m755 lib/*dri*
[c23b62b]187 $XORG_PREFIX/lib/X11/modules/dri</command>:
[78f4c3e]188 installs the DRI modules.</para>
[371ff30]189
[a6c2aff2]190 <para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
191 disables linking against GLUT libraries for the demo programs.</para>
192
[371ff30]193 <para><command>make PROGS='glxinfo glxgears'</command>: build only
194 the glxinfo and glxgears programs.</para>
195
[c23b62b]196 <para><command>install -v -m755 glxinfo glxgears
[6291d0e]197 $XORG_PREFIX/bin</command>:
[371ff30]198 Installs only the glxinfo and glxgears programs.</para>
199
200 </sect2>
201
[868c7c2]202 <sect2 role="content">
203 <title>Contents</title>
204
205 <segmentedlist>
206 <segtitle>Installed Programs</segtitle>
207 <segtitle>Installed Libraries</segtitle>
208 <segtitle>Installed Directories</segtitle>
209
210 <seglistitem>
[d3ef1e4]211 <seg>glxgears and glxinfo</seg>
[c5c2654]212 <seg>libGL.{so,a}, libGLU.{so,a}, libGLw.{so,a}, libglut.{so,a} and
[868c7c2]213 *_dri.so</seg>
214 <seg>$XORG_PREFIX/lib/modules/dri</seg>
215 </seglistitem>
216 </segmentedlist>
[d3ef1e4]217
[4437f63]218 <variablelist>
219 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
220 <?dbfo list-presentation="list"?>
221 <?dbhtml list-presentation="table"?>
222
223 <varlistentry id="glxgears">
224 <term><filename>glxgears</filename></term>
225 <listitem>
226 <para>a GL demo useful for troubleshooting graphics problems.</para>
[d8838ed5]227 <indexterm zone="mesalib glxgears">
[4437f63]228 <primary sortas="b-glxgears">glxgears</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="glxinfo">
234 <term><filename>glxinfo</filename></term>
235 <listitem>
[d9c80e1]236 <para>a diagnostic program that displays information about the
[4437f63]237 graphics hardware and installed GL libraries.</para>
[d8838ed5]238 <indexterm zone="mesalib glxinfo">
[4437f63]239 <primary sortas="b-glxinfo">glxinfo</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 </variablelist>
245
[868c7c2]246 </sect2>
[d3ef1e4]247
[868c7c2]248</sect1>
Note: See TracBrowser for help on using the repository browser.