2006-02-26 12:27:07 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2006-02-26 12:27:07 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2009-11-01 00:50:02 +08:00
|
|
|
<!ENTITY mesalib-download-http " ">
|
|
|
|
<!ENTITY mesalib-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
|
2012-03-22 06:52:12 +08:00
|
|
|
<!ENTITY mesalib-md5sum "a368104e5700707048dc3e8691a9a7a1">
|
2012-03-17 18:17:30 +08:00
|
|
|
<!ENTITY mesalib-size "5.5 MB">
|
|
|
|
<!ENTITY mesalib-buildsize "460 MB">
|
|
|
|
<!ENTITY mesalib-time "3.0 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>
|
|
|
|
|
2012-03-17 18:17:30 +08:00
|
|
|
<para><application>Mesa</application> is an OpenGL compatible 3D graphics
|
2006-02-26 12:27:07 +08:00
|
|
|
library.</para>
|
|
|
|
|
2012-05-17 00:46:55 +08:00
|
|
|
&lfs71_checked;
|
2010-01-26 11:53:56 +08:00
|
|
|
|
2006-02-26 12:27:07 +08:00
|
|
|
<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>
|
2009-08-25 12:50:25 +08:00
|
|
|
<para>Download size:
|
2006-02-26 12:27:07 +08:00
|
|
|
&mesalib-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2011-01-23 12:30:42 +08:00
|
|
|
<para>Estimated disk space required:
|
2006-02-26 12:27:07 +08:00
|
|
|
&mesalib-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2011-01-23 12:30:42 +08:00
|
|
|
<para>Estimated build time:
|
2006-02-26 12:27:07 +08:00
|
|
|
&mesalib-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2011-01-24 06:58:10 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Recommended patch: <ulink
|
2011-12-11 07:42:19 +08:00
|
|
|
url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-2.patch"/>
|
2011-01-24 06:58:10 +08:00
|
|
|
(Needed if testing the Xorg installation per BLFS instructions)</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2006-02-26 12:27:07 +08:00
|
|
|
<bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2011-12-10 09:21:48 +08:00
|
|
|
<para role="required">
|
|
|
|
<xref linkend="expat"/>,
|
|
|
|
<xref linkend="libdrm"/>,
|
2012-03-22 06:52:12 +08:00
|
|
|
<xref linkend="libxml2"/>,
|
2011-12-10 09:21:48 +08:00
|
|
|
<xref linkend="makedepend"/>,
|
|
|
|
<xref linkend="talloc"/>, and
|
|
|
|
<xref linkend="xorg7-lib"/>
|
|
|
|
</para>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2012-03-22 06:52:12 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="llvm"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>The <application>libxml2</application>
|
|
|
|
<application>Python</application> module must have been built
|
|
|
|
during the installation of <application>libxml2</application>
|
|
|
|
or else <application>MesaLib</application> build will fail.</para>
|
|
|
|
</note>
|
|
|
|
|
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>
|
|
|
|
|
2011-01-23 12:30:42 +08:00
|
|
|
<note><para>Unlike other packages, the
|
|
|
|
<filename>MesaLib-&mesalib-version;.tar.bz2</filename>
|
|
|
|
archive will extract to the
|
2007-02-14 16:11:15 +08:00
|
|
|
<filename class="directory">Mesa-&mesalib-version;</filename>
|
2011-01-23 12:30:42 +08:00
|
|
|
directory.</para></note>
|
2006-09-04 11:15:35 +08:00
|
|
|
|
2008-11-27 05:57:09 +08:00
|
|
|
<para>Install <application>MesaLib</application> by running the following
|
2008-11-26 11:56:17 +08:00
|
|
|
commands:</para>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2008-11-26 11:56:17 +08:00
|
|
|
<screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
|
2011-12-11 07:42:19 +08:00
|
|
|
patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-2.patch &&
|
2012-03-17 18:17:30 +08:00
|
|
|
./configure --prefix=$XORG_PREFIX --enable-shared-dricore --enable-xa \
|
2012-03-22 06:52:12 +08:00
|
|
|
--with-gallium-drivers="nouveau,svga,swrast" &&
|
2008-11-26 11:56:17 +08:00
|
|
|
make</userinput></screen>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
2007-02-14 16:11:15 +08:00
|
|
|
<para>This package does not come with a test suite.</para>
|
2006-05-11 13:21:21 +08:00
|
|
|
|
2007-02-14 16:11:15 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
2006-05-11 13:21:21 +08:00
|
|
|
|
2010-11-09 21:42:05 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2012-03-22 06:52:12 +08:00
|
|
|
mkdir -pv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &&
|
|
|
|
cp -rv docs/* ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;
|
|
|
|
</userinput></screen>
|
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>
|
|
|
|
|
2011-12-11 07:42:19 +08:00
|
|
|
<screen role="root"><userinput>ln -s -v ${XORG_PREFIX}/include/GL /usr/include &&
|
|
|
|
ln -s -v ${XORG_PREFIX}/include/EGL /usr/include &&
|
2012-03-17 18:17:30 +08:00
|
|
|
ln -s -v ${XORG_PREFIX}/include/KHR /usr/include &&
|
|
|
|
for HEADER in xa_{composite,context,tracker}.h
|
|
|
|
do
|
2012-04-24 05:07:49 +08:00
|
|
|
ln -s -v ${XORG_PREFIX}/include/$HEADER /usr/include
|
2012-03-17 18:17:30 +08:00
|
|
|
done</userinput></screen>
|
2007-02-14 16:19:07 +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>
|
|
|
|
|
2008-11-26 11:56:17 +08:00
|
|
|
<para><command>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure</command>: by
|
|
|
|
default, Mesa builds with debugging symbols. Remove the -g switch from
|
|
|
|
both <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> with this
|
|
|
|
command.</para>
|
2007-02-14 16:11:15 +08:00
|
|
|
|
2012-03-17 18:17:30 +08:00
|
|
|
<para><command>--enable-shared-dricore</command>: link DRI modules with
|
|
|
|
shared core DRI routines.</para>
|
|
|
|
|
|
|
|
<para><command>--enable-xa</command>: enables building of the XA X
|
|
|
|
Acceleration API (Required for VMware 3D Driver).</para>
|
2007-02-14 16:11:15 +08:00
|
|
|
|
2012-03-22 06:52:12 +08:00
|
|
|
<para><command>--with-gallium-drivers="..."</command>: controls building
|
|
|
|
of gallium drivers. Available drivers are: i915, nouveau, r300, r600,
|
|
|
|
swrast and svga. Note that r300 and r600 require <xref linkend="llvm"/>
|
|
|
|
to be installed.</para>
|
2008-11-27 07:04:24 +08:00
|
|
|
|
2006-03-03 14:41:25 +08:00
|
|
|
</sect2>
|
|
|
|
|
2006-02-26 12:27:07 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2010-11-09 21:42:05 +08:00
|
|
|
<segtitle>Optionally Installed Programs</segtitle>
|
2006-02-26 12:27:07 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
2007-05-26 06:09:36 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
2006-02-26 12:27:07 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
2006-02-26 20:07:51 +08:00
|
|
|
<seg>glxgears and glxinfo</seg>
|
2012-03-17 18:17:30 +08:00
|
|
|
<seg>libEGL.so, libGL.so, libGLU.so, libxatracker.so, and *_dri.so</seg>
|
|
|
|
<seg><envar>$XORG_PREFIX</envar>/include/{EGL,GL,KHR},
|
|
|
|
<envar>$XORG_PREFIX</envar>/lib/dri, and
|
2007-05-26 06:09:36 +08:00
|
|
|
<envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;</seg>
|
2006-02-26 12:27:07 +08:00
|
|
|
</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>
|
2007-02-14 16:11:15 +08:00
|
|
|
<para>is 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>
|
2007-02-14 16:11:15 +08:00
|
|
|
<para>is 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>
|
|
|
|
|
2009-08-25 12:50:25 +08:00
|
|
|
<varlistentry id="libEGL">
|
|
|
|
<term><filename class='libraryfile'>libEGL.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>provides a native platform graphics interface as defined by
|
|
|
|
the EGL-1.4 specification.</para>
|
|
|
|
<indexterm zone="mesalib libEGL">
|
|
|
|
<primary sortas="c-libGL">libEGL.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-05-26 06:09:36 +08:00
|
|
|
<varlistentry id="libGL">
|
|
|
|
<term><filename class='libraryfile'>libGL.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is the main OpenGL library.</para>
|
|
|
|
<indexterm zone="mesalib libGL">
|
|
|
|
<primary sortas="c-libGL">libGL.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libGLU">
|
|
|
|
<term><filename class='libraryfile'>libGLU.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is the OpenGL Utility library.</para>
|
|
|
|
<indexterm zone="mesalib libGLU">
|
|
|
|
<primary sortas="c-libGLU">libGLU.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-03-17 18:17:30 +08:00
|
|
|
<varlistentry id="libxatracker">
|
|
|
|
<term><filename class='libraryfile'>libxatracker.so</filename></term>
|
2007-05-26 06:09:36 +08:00
|
|
|
<listitem>
|
2012-03-17 18:17:30 +08:00
|
|
|
<para>is the XA X Acceleration API library.</para>
|
|
|
|
<indexterm zone="mesalib libxatracker">
|
|
|
|
<primary sortas="c-libxatracker">libxatracker.so</primary>
|
2007-05-26 06:09:36 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2006-03-02 14:10:46 +08:00
|
|
|
</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>
|