mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-02 22:07:15 +08:00
ca0c29cc93
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8224 af4574ff-66df-0310-9fd7-8a98e5e911e0
248 lines
8.4 KiB
XML
248 lines
8.4 KiB
XML
<?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 "8c75f90cd0303cfac9e4b6d54f6759ca">
|
|
<!ENTITY mesalib-size "4.7 MB">
|
|
<!ENTITY mesalib-buildsize "222 MB">
|
|
<!ENTITY mesalib-time "3.0 SBU">
|
|
|
|
<!ENTITY mesademos-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaDemos-&mesalib-version;.tar.bz2">
|
|
<!ENTITY mesademos-md5sum "0ede7adf217951acd90dbe4551210c07">
|
|
<!ENTITY mesademos-size "1.5 MB">
|
|
|
|
]>
|
|
|
|
<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>
|
|
|
|
&lfs65_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 (including recommended download):
|
|
&mesalib-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time (including recommended download):
|
|
&mesalib-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Additional Download</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
<title>Recommended demonstration and diagnostic utilities for
|
|
verifying OpenGL operation</title>
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&mesademos-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &mesademos-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &mesademos-size;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<!--
|
|
<note><para>Mesa's GLUT library is not released under a free software
|
|
license, and is no longer tested by the BLFS developers. Permission
|
|
is granted by the copyright holder of MesaGLUT for its use within the Mesa
|
|
distribution. <xref linkend="freeglut"/> is recommended over Mesa's GLUT
|
|
library.</para></note>
|
|
-->
|
|
|
|
<bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required"><xref linkend="xorg7-lib"/>,
|
|
<xref linkend="xorg7-util"/>,
|
|
<xref linkend="libdrm"/>, and
|
|
<xref linkend="expat"/></para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional"><xref linkend="libxcb"/> and
|
|
<xref linkend="lesstif"/></para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/mesalib"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of MesaLib</title>
|
|
|
|
<para>Extract both tarballs from the same top-level directory as both
|
|
will extract to the
|
|
<filename class="directory">Mesa-&mesalib-version;</filename>
|
|
directory.</para>
|
|
|
|
<para>Install <application>MesaLib</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
|
|
./configure $XORG_CONFIG &&
|
|
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</userinput></screen>
|
|
|
|
<para>If you built the demo programs, install them using the following
|
|
command as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>install -v -m755 progs/xdemos/glx{info,gears} ${XORG_PREFIX}/bin</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>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs (optional)</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>/lib/modules/dri 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>
|