glfs/x/installing/mesalib.xml

234 lines
8.0 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY mesalib-download-http " ">
<!ENTITY mesalib-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
<!ENTITY mesalib-md5sum "0837c52698fe3252369c3fdb5195afcc">
<!ENTITY mesalib-size "6.0 MB">
<!ENTITY mesalib-buildsize "356 MB">
<!ENTITY mesalib-time "4.0 SBU">
]>
<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
<?dbhtml filename="mesalib.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</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>
&lfs70_checked;
<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:
&mesalib-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required:
&mesalib-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time:
&mesalib-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Recommended patch: <ulink
url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
(Needed if testing the Xorg installation per BLFS instructions)</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required"><xref linkend="xorg7-lib"/>,
<xref linkend="makedepend"/>,
<xref linkend="libdrm"/>,
<xref linkend="expat"/>,
<xref linkend="talloc"/>, and
<ulink url="http://llvm.org">LLVM</ulink></para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional"><xref linkend="lesstif"/> (required to build motif
widgets)</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/mesalib"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of MesaLib</title>
<note><para>Unlike other packages, the
<filename>MesaLib-&mesalib-version;.tar.bz2</filename>
archive will extract to the
<filename class="directory">Mesa-&mesalib-version;</filename>
directory.</para></note>
<para>Install <application>MesaLib</application> by running the following
commands:</para>
<screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &amp;&amp;
patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch &amp;&amp;
./configure $XORG_CONFIG --enable-xcb &amp;&amp;
make</userinput></screen>
<para>This package does not come with a test suite.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install &amp;&amp;
install -v -m755 -d ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &amp;&amp;
install -v -m644 docs/* \
${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen>
<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 role="root"><userinput>ln -s -v ${XORG_PREFIX}/include/GL /usr/include</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<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>
<para><option>--enable-xcb</option>: use the XCB backend instead of the
default XLib backend for GLX.</para>
<para><option>--enable-motif</option>: build motif widgets into the
GL widgets library (requires <application>lesstif</application>).</para>
<para><option>--with-gallium-driver=...</option>: build additional gallium
drivers. Defaults to r300, r600, and swrast. You must specify i9xx and
nouveau drivers.</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Optionally Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>glxgears and glxinfo</seg>
<seg>libEGL.so, libGL.so, libGLU.so, libGLw.so, and *_dri.so</seg>
<seg><envar>$XORG_PREFIX</envar>/include/{EGL,KHR},
<envar>$XORG_PREFIX</envar>/lib/{dri,egl}, and
<envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;</seg>
</seglistitem>
</segmentedlist>
<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>is 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>is 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>
<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>
<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>
<varlistentry id="libGLw">
<term><filename class='libraryfile'>libGLw.so</filename></term>
<listitem>
<para>is the Xt/Motif OpenGL drawing area widget library.</para>
<indexterm zone="mesalib libGLw">
<primary sortas="c-libGLw">libGLw.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>