2006-02-26 12:27:07 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY mesalib-download-http "http://prdownloads.sourceforge.net/mesa3d/MesaLib-&mesalib-version;.tar.bz2">
|
|
|
|
<!ENTITY mesalib-download-ftp " ">
|
2006-05-25 14:52:00 +08:00
|
|
|
<!ENTITY mesalib-md5sum "61beda590bfc5b4a12e979d5f2d70d7a">
|
|
|
|
<!ENTITY mesalib-size "3.3 MB">
|
|
|
|
<!ENTITY mesalib-buildsize "823 MB">
|
|
|
|
<!ENTITY mesalib-time "1.7 SBU">
|
2006-02-26 12:27:07 +08:00
|
|
|
]>
|
|
|
|
|
2006-03-27 11:03:32 +08:00
|
|
|
<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
|
2006-02-26 12:27:07 +08:00
|
|
|
<?dbhtml filename="mesalib.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>MesaLib-&mesalib-version;</title>
|
|
|
|
|
2006-03-27 21:07:21 +08:00
|
|
|
<indexterm zone="mesalib">
|
2006-02-26 12:27:07 +08:00
|
|
|
<primary sortas="a-MesaLib">MesaLib</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to MesaLib</title>
|
|
|
|
|
|
|
|
<para><application>Mesa</application> is an OpenGL compatible 3-D graphics
|
|
|
|
library.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&mesalib-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&mesalib-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &mesalib-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2006-05-25 14:52:00 +08:00
|
|
|
<para>Download size (including recommended download):
|
2006-02-26 12:27:07 +08:00
|
|
|
&mesalib-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2006-05-25 14:52:00 +08:00
|
|
|
<para>Estimated disk space required (including recommended download):
|
2006-02-26 12:27:07 +08:00
|
|
|
&mesalib-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2006-05-25 14:52:00 +08:00
|
|
|
<para>Estimated build time (including recommended download):
|
2006-02-26 12:27:07 +08:00
|
|
|
&mesalib-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2006-05-26 00:58:15 +08:00
|
|
|
<para role="required"><xref linkend="xorg7-lib"/>,
|
2006-05-17 14:26:27 +08:00
|
|
|
<xref linkend="xorg7-util"/>, and
|
|
|
|
<xref linkend="libdrm"/></para>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-05-12 11:52:52 +08:00
|
|
|
<note>
|
2006-05-26 00:58:15 +08:00
|
|
|
<para>It is not recomended to build a newer version of
|
2006-05-12 11:52:52 +08:00
|
|
|
<application>Mesa</application> with <xref linkend="xfree86"/> or
|
|
|
|
<xref linkend="xorg"/>.</para>
|
|
|
|
</note>
|
|
|
|
|
2006-05-05 15:01:37 +08:00
|
|
|
<bridgehead renderas="sect3">Recommended Download</bridgehead>
|
2006-02-26 20:07:51 +08:00
|
|
|
<para><ulink
|
2006-05-25 14:52:00 +08:00
|
|
|
url="http://prdownloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2">MesaDemos-&mesalib-version;</ulink>
|
2006-03-15 23:04:26 +08:00
|
|
|
provides a demo and a diagnostic program to verify that GL is working
|
2006-03-02 14:10:46 +08:00
|
|
|
properly.</para>
|
2006-02-26 20:07:51 +08:00
|
|
|
|
2006-05-05 15:01:37 +08:00
|
|
|
<bridgehead renderas="sect3">Optional Download</bridgehead>
|
|
|
|
<para><ulink
|
2006-05-25 14:52:00 +08:00
|
|
|
url="http://prdownloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2">MesaGLUT-&mesalib-version;</ulink>
|
2006-05-05 15:01:37 +08:00
|
|
|
provides a working <filename class='libraryfile'>libglut</filename>.</para>
|
|
|
|
|
2006-02-26 20:07:51 +08:00
|
|
|
<note>
|
|
|
|
<para>You should extract all three tarballs from the same toplevel
|
2006-03-15 23:04:26 +08:00
|
|
|
directory. All three files will extract to the
|
2006-02-26 20:07:51 +08:00
|
|
|
<filename class="directory">Mesa-&mesalib-version;</filename>
|
|
|
|
directory.</para>
|
|
|
|
</note>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-04-11 02:39:30 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/mesalib"/></para>
|
|
|
|
|
2006-02-26 12:27:07 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of MesaLib</title>
|
|
|
|
|
2006-05-11 13:05:10 +08:00
|
|
|
<para>You will need to adjust the commands below to reflect the
|
2006-05-26 00:58:15 +08:00
|
|
|
installation prefix of the X Window System. First, correct several
|
|
|
|
hard coded directories in the source files with the following
|
2006-05-12 11:52:52 +08:00
|
|
|
commands:</para>
|
2006-05-11 13:05:10 +08:00
|
|
|
|
2006-05-18 13:36:34 +08:00
|
|
|
<screen><userinput>find . -type f -exec sed -i "s@/usr/X11R6@$XORG_PREFIX@g" {} \; &&
|
2006-05-25 14:52:00 +08:00
|
|
|
sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c &&
|
|
|
|
sed -i 's@lib/modules@lib/X11/modules@' src/mesa/drivers/dri/Makefile.template</userinput></screen>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-05-05 15:01:37 +08:00
|
|
|
<para>Build <application>MesaLib</application>
|
2006-02-26 20:07:51 +08:00
|
|
|
by running the following command:</para>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
|
|
|
<screen><userinput>make linux-dri</userinput></screen>
|
|
|
|
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
|
2006-05-05 15:01:37 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user,
|
2006-05-26 00:58:15 +08:00
|
|
|
issue the following commands to install
|
2006-05-12 11:52:52 +08:00
|
|
|
<application>MesaLib</application>:</para>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-05-18 13:36:34 +08:00
|
|
|
<screen role="root"><userinput>bin/installmesa $XORG_PREFIX</userinput></screen>
|
2006-05-11 13:21:21 +08:00
|
|
|
|
2006-05-26 00:58:15 +08:00
|
|
|
<para>While still the root user, install the modules for
|
2006-05-11 13:21:21 +08:00
|
|
|
Xorg-&xorg7-version; with the following commands.</para>
|
|
|
|
|
2006-05-18 13:36:34 +08:00
|
|
|
<screen role="root"><userinput>mkdir -v -p $XORG_PREFIX/lib/X11/modules/dri &&
|
|
|
|
install -v -m755 lib/*dri* $XORG_PREFIX/lib/X11/modules/dri</userinput></screen>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-03-28 14:44:03 +08:00
|
|
|
<para>If you've extracted the Demos package as well, then
|
2006-02-26 12:27:07 +08:00
|
|
|
build the test programs with the following commands:</para>
|
|
|
|
|
2006-03-28 14:44:03 +08:00
|
|
|
<screen><userinput>sed -i 's@-l$(GLUT_LIB)@@g' configs/default &&
|
|
|
|
cd progs/xdemos &&
|
2006-02-26 12:27:07 +08:00
|
|
|
make PROGS='glxinfo glxgears'</userinput></screen>
|
|
|
|
|
2006-02-26 20:07:51 +08:00
|
|
|
<para>Install the demos as the
|
2006-05-12 11:52:52 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-05-18 13:36:34 +08:00
|
|
|
<screen role="root"><userinput>install -v -m755 glxinfo glxgears $XORG_PREFIX/bin</userinput></screen>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-02-26 20:07:51 +08:00
|
|
|
<note>
|
2006-05-26 00:58:15 +08:00
|
|
|
<para>Do not remove the Mesa source tree yet, it will be required to
|
2006-05-12 11:52:52 +08:00
|
|
|
build the <xref linkend="xorg7-server"/>.</para>
|
2006-02-26 20:07:51 +08:00
|
|
|
</note>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-03-15 23:04:26 +08:00
|
|
|
<para>Finally, if installing to any prefix other than
|
2006-03-03 11:51:21 +08:00
|
|
|
<filename class="directory">/usr</filename>, you should create symlinks
|
|
|
|
to the GL headers in <filename class="directory">/usr/include</filename>.
|
|
|
|
Execute the following command as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2006-08-15 21:20:49 +08:00
|
|
|
<screen role="root"><userinput>ln -s -v $XORG_PREFIX/include/GL /usr/include</userinput></screen>
|
2006-03-03 11:51:21 +08:00
|
|
|
|
2006-02-26 12:27:07 +08:00
|
|
|
</sect2>
|
|
|
|
|
2006-03-03 14:41:25 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2006-05-26 00:58:15 +08:00
|
|
|
<para><command>find...sed -i
|
|
|
|
"s@/usr/X11R6@$XORG_PREFIX@"...</command>:
|
2006-05-11 13:05:10 +08:00
|
|
|
This command corrects several hard coded references to the X11R6 default
|
2006-03-03 14:41:25 +08:00
|
|
|
installation path.</para>
|
|
|
|
|
2006-03-15 23:04:26 +08:00
|
|
|
<para><command>sed -i 's@lib/modules@lib/X11/modules@'
|
2006-03-03 14:41:25 +08:00
|
|
|
src/glx/x11/dri_glx.c</command>: This command corrects a hard coded
|
|
|
|
reference to the module directory.</para>
|
|
|
|
|
|
|
|
<para><command>bin/installmesa</command>: Mesa uses a custom installation
|
2006-03-15 23:04:26 +08:00
|
|
|
script as opposed to the normal <parameter>install</parameter> make
|
2006-03-03 14:41:25 +08:00
|
|
|
target.</para>
|
|
|
|
|
2006-03-15 23:04:26 +08:00
|
|
|
<para><command>install -v -m755 lib/*dri*
|
2006-05-26 00:58:15 +08:00
|
|
|
$XORG_PREFIX/lib/X11/modules/dri</command>:
|
2006-05-11 13:05:10 +08:00
|
|
|
installs the DRI modules.</para>
|
2006-03-03 14:41:25 +08:00
|
|
|
|
2006-03-28 14:44:03 +08:00
|
|
|
<para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
|
|
|
|
disables linking against GLUT libraries for the demo programs.</para>
|
|
|
|
|
2006-03-03 14:41:25 +08:00
|
|
|
<para><command>make PROGS='glxinfo glxgears'</command>: build only
|
|
|
|
the glxinfo and glxgears programs.</para>
|
|
|
|
|
2006-05-26 00:58:15 +08:00
|
|
|
<para><command>install -v -m755 glxinfo glxgears
|
2006-05-18 13:36:34 +08:00
|
|
|
$XORG_PREFIX/bin</command>:
|
2006-03-03 14:41:25 +08:00
|
|
|
Installs only the glxinfo and glxgears programs.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2006-02-26 12:27:07 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2006-02-26 20:07:51 +08:00
|
|
|
<seg>glxgears and glxinfo</seg>
|
2006-04-11 02:39:30 +08:00
|
|
|
<seg>libGL.{so,a}, libGLU.{so,a}, libGLw.{so,a}, libglut.{so,a} and
|
2006-02-26 12:27:07 +08:00
|
|
|
*_dri.so</seg>
|
|
|
|
<seg>$XORG_PREFIX/lib/modules/dri</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2006-02-26 20:07:51 +08:00
|
|
|
|
2006-03-02 14:10:46 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="glxgears">
|
|
|
|
<term><filename>glxgears</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>a GL demo useful for troubleshooting graphics problems.</para>
|
2006-03-27 21:07:21 +08:00
|
|
|
<indexterm zone="mesalib glxgears">
|
2006-03-02 14:10:46 +08:00
|
|
|
<primary sortas="b-glxgears">glxgears</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="glxinfo">
|
|
|
|
<term><filename>glxinfo</filename></term>
|
|
|
|
<listitem>
|
2006-03-15 23:04:26 +08:00
|
|
|
<para>a diagnostic program that displays information about the
|
2006-03-02 14:10:46 +08:00
|
|
|
graphics hardware and installed GL libraries.</para>
|
2006-03-27 21:07:21 +08:00
|
|
|
<indexterm zone="mesalib glxinfo">
|
2006-03-02 14:10:46 +08:00
|
|
|
<primary sortas="b-glxinfo">glxinfo</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
2006-02-26 12:27:07 +08:00
|
|
|
</sect2>
|
2006-02-26 20:07:51 +08:00
|
|
|
|
2006-02-26 12:27:07 +08:00
|
|
|
</sect1>
|