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 " ">
|
|
|
|
<!ENTITY mesalib-md5sum "7674d2c603b5834259e4e5a820cefd5b">
|
|
|
|
<!ENTITY mesalib-size "3.9 MB">
|
|
|
|
<!ENTITY mesalib-buildsize "672 MB">
|
2006-02-26 20:07:51 +08:00
|
|
|
<!ENTITY mesalib-time "2.2 SBU">
|
2006-02-26 12:27:07 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="MesaLib" xreflabel="MesaLib-&mesalib-version;">
|
|
|
|
<?dbhtml filename="mesalib.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
<keywordset>
|
|
|
|
<keyword role="package">MesaLib-&mesalib-version;.tar</keyword>
|
|
|
|
<keyword role="ftpdir">MesaLib</keyword>
|
|
|
|
</keywordset>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>MesaLib-&mesalib-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="MesaLib">
|
|
|
|
<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>
|
|
|
|
<para>Download size (including Recommended downloads):
|
|
|
|
&mesalib-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required (including Recommended downloads):
|
|
|
|
&mesalib-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time (including Recommended downloads):
|
|
|
|
&mesalib-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2006-02-26 20:07:51 +08:00
|
|
|
<para>X (<xref linkend="xorg"/>, <xref linkend="xfree86"/>, or
|
2006-03-02 15:11:49 +08:00
|
|
|
<xref linkend="xorg7"/> Libs and Utilities), and
|
2006-02-26 12:27:07 +08:00
|
|
|
<xref linkend="libdrm"/></para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Recommended Downloads</bridgehead>
|
2006-02-26 20:07:51 +08:00
|
|
|
<para><ulink
|
|
|
|
url="http://prdownloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2"/>
|
|
|
|
provides a working <filename class='libraryfile'>libglut</filename>
|
|
|
|
(needed for the demos).</para>
|
|
|
|
|
|
|
|
<para><ulink
|
|
|
|
url="http://prdownloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2"/>
|
2006-03-02 14:10:46 +08:00
|
|
|
provides a demo and a diagnostic program to verify that GL is working
|
|
|
|
properly.</para>
|
2006-02-26 20:07:51 +08:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>You should extract all three tarballs from the same toplevel
|
|
|
|
directory. All three files will extract to the
|
|
|
|
<filename class="directory">Mesa-&mesalib-version;</filename>
|
|
|
|
directory.</para>
|
|
|
|
</note>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of MesaLib</title>
|
|
|
|
|
2006-02-26 20:07:51 +08:00
|
|
|
<para>If you've installed the X Window System into any prefix other than
|
2006-03-02 14:10:46 +08:00
|
|
|
<filename class="directory">/usr</filename>, then you'll need to adjust the
|
|
|
|
commands below for your system. Correct several hard coded directories
|
|
|
|
in the source files with the following command:</para>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-03-02 14:10:46 +08:00
|
|
|
<screen><userinput>find . -type f -exec sed -i 's@/usr/X11R6@/usr@g' {} \;</userinput></screen>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
|
|
|
<para>Install <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>
|
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2006-03-02 14:10:46 +08:00
|
|
|
<screen role="root"><userinput>bin/installmesa /usr &&
|
|
|
|
mkdir -v -p /usr/lib/modules/dri &&
|
|
|
|
install -v -m755 lib/*dri* /usr/lib/modules/dri</userinput></screen>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-02-26 20:07:51 +08:00
|
|
|
<para>If you've extracted the GLUT and Demos packages as well, then
|
2006-02-26 12:27:07 +08:00
|
|
|
build the test programs with the following commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput>cd progs/xdemos &&
|
|
|
|
make PROGS='glxinfo glxgears'</userinput></screen>
|
|
|
|
|
2006-02-26 20:07:51 +08:00
|
|
|
<para>Install the demos as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-03-02 14:10:46 +08:00
|
|
|
<screen role="root"><userinput>install -v -m755 glxinfo glxgears /usr/bin</userinput></screen>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-02-26 20:07:51 +08:00
|
|
|
<note>
|
2006-03-03 11:51:21 +08:00
|
|
|
<para>If building <xref linkend="xorg7"/>, do not
|
2006-02-26 20:07:51 +08:00
|
|
|
remove the Mesa source tree yet, it will be required to build the
|
|
|
|
X server.</para>
|
|
|
|
</note>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2006-03-03 11:51:21 +08:00
|
|
|
<para>Finally, if installing to any prefix other than
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<screen><userinput role="root">ln -s -v <replaceable>[/usr/X11]</replaceable>/include/GL /usr/include</userinput></screen>
|
|
|
|
|
2006-02-26 12:27:07 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<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-02-26 12:27:07 +08:00
|
|
|
<seg>libGL.[so,a], libGLU.[so,a], libGLw.[so,a], libglut.[so,a] and
|
|
|
|
*_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>
|
|
|
|
<indexterm zone="MesaLib glxgears">
|
|
|
|
<primary sortas="b-glxgears">glxgears</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="glxinfo">
|
|
|
|
<term><filename>glxinfo</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>a diagnostic program that displays information about the
|
|
|
|
graphics hardware and installed GL libraries.</para>
|
|
|
|
<indexterm zone="MesaLib glxinfo">
|
|
|
|
<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>
|