[868c7c2] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[868c7c2] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[358cbee6] | 7 | <!ENTITY mesalib-download-http " ">
|
---|
| 8 | <!ENTITY mesalib-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
|
---|
[11ad0b0] | 9 | <!ENTITY mesalib-md5sum "82c740c49d572baa6da2b1a1eee90bca">
|
---|
| 10 | <!ENTITY mesalib-size "5.4 MB">
|
---|
| 11 | <!ENTITY mesalib-buildsize "249 MB">
|
---|
| 12 | <!ENTITY mesalib-time "3.1 SBU">
|
---|
[868c7c2] | 13 | ]>
|
---|
| 14 |
|
---|
[4a1f001] | 15 | <sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
|
---|
[868c7c2] | 16 | <?dbhtml filename="mesalib.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>MesaLib-&mesalib-version;</title>
|
---|
| 24 |
|
---|
[d8838ed5] | 25 | <indexterm zone="mesalib">
|
---|
[868c7c2] | 26 | <primary sortas="a-MesaLib">MesaLib</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to MesaLib</title>
|
---|
| 31 |
|
---|
| 32 | <para><application>Mesa</application> is an OpenGL compatible 3-D graphics
|
---|
| 33 | library.</para>
|
---|
| 34 |
|
---|
[ca0c29cc] | 35 | &lfs65_checked;
|
---|
| 36 |
|
---|
[868c7c2] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&mesalib-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&mesalib-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &mesalib-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[25f6d94] | 49 | <para>Download size:
|
---|
[868c7c2] | 50 | &mesalib-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[11ad0b0] | 53 | <para>Estimated disk space required:
|
---|
[868c7c2] | 54 | &mesalib-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[11ad0b0] | 57 | <para>Estimated build time:
|
---|
[868c7c2] | 58 | &mesalib-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
[eeb29511] | 62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 63 | <itemizedlist spacing="compact">
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Recommended patch: <ulink
|
---|
| 66 | url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
|
---|
| 67 | (Needed if testing the Xorg installation per BLFS instructions)</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
[868c7c2] | 71 | <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c23b62b] | 74 | <para role="required"><xref linkend="xorg7-lib"/>,
|
---|
[15e602c] | 75 | <xref linkend="xorg7-util"/>,
|
---|
[b8a1c6d] | 76 | <xref linkend="libdrm"/>,
|
---|
| 77 | <xref linkend="expat"/>, and
|
---|
[eeb29511] | 78 | <xref linkend="talloc"/></para>
|
---|
[868c7c2] | 79 |
|
---|
[1199613] | 80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c2629d2a] | 81 | <para role="optional"><xref linkend="lesstif"/> (required to build motif
|
---|
| 82 | widgets)</para>
|
---|
[531e09e] | 83 |
|
---|
[c5c2654] | 84 | <para condition="html" role="usernotes">User Notes:
|
---|
| 85 | <ulink url="&blfs-wiki;/mesalib"/></para>
|
---|
| 86 |
|
---|
[868c7c2] | 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="installation">
|
---|
| 90 | <title>Installation of MesaLib</title>
|
---|
| 91 |
|
---|
[11ad0b0] | 92 | <note><para>Unlike other packages, the
|
---|
| 93 | <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
|
---|
| 94 | archive will extract to the
|
---|
[9b3b6a45] | 95 | <filename class="directory">Mesa-&mesalib-version;</filename>
|
---|
[11ad0b0] | 96 | directory.</para></note>
|
---|
[38476a9] | 97 |
|
---|
[759586e] | 98 | <para>Install <application>MesaLib</application> by running the following
|
---|
[1199613] | 99 | commands:</para>
|
---|
[868c7c2] | 100 |
|
---|
[1199613] | 101 | <screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
|
---|
[eeb29511] | 102 | patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch &&
|
---|
[c2629d2a] | 103 | ./configure $XORG_CONFIG --enable-xcb &&
|
---|
[1199613] | 104 | make</userinput></screen>
|
---|
[868c7c2] | 105 |
|
---|
[9b3b6a45] | 106 | <para>This package does not come with a test suite.</para>
|
---|
[ff55539b] | 107 |
|
---|
[9b3b6a45] | 108 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[ff55539b] | 109 |
|
---|
[1e8765e] | 110 | <screen role="root"><userinput>make install &&
|
---|
| 111 | install -v -m755 -d ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &&
|
---|
| 112 | install -v -m644 docs/* \
|
---|
| 113 | ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen>
|
---|
[868c7c2] | 114 |
|
---|
[d9c80e1] | 115 | <para>Finally, if installing to any prefix other than
|
---|
[3735050] | 116 | <filename class="directory">/usr</filename>, you should create symlinks
|
---|
| 117 | to the GL headers in <filename class="directory">/usr/include</filename>.
|
---|
| 118 | Execute the following command as the
|
---|
| 119 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 120 |
|
---|
[ba2ac60] | 121 | <screen role="root"><userinput>ln -s -v ${XORG_PREFIX}/include/GL /usr/include</userinput></screen>
|
---|
[5a883bc4] | 122 |
|
---|
[868c7c2] | 123 | </sect2>
|
---|
| 124 |
|
---|
[371ff30] | 125 | <sect2 role="commands">
|
---|
| 126 | <title>Command Explanations</title>
|
---|
| 127 |
|
---|
[1199613] | 128 | <para><command>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure</command>: by
|
---|
| 129 | default, Mesa builds with debugging symbols. Remove the -g switch from
|
---|
| 130 | both <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> with this
|
---|
| 131 | command.</para>
|
---|
[9b3b6a45] | 132 |
|
---|
[1199613] | 133 | <para><option>--enable-xcb</option>: use the XCB backend instead of the
|
---|
| 134 | default XLib backend for GLX.</para>
|
---|
[9b3b6a45] | 135 |
|
---|
[f49893b] | 136 | <para><option>--enable-motif</option>: build motif widgets into the
|
---|
| 137 | GL widgets library (requires <application>lesstif</application>).</para>
|
---|
| 138 |
|
---|
[371ff30] | 139 | </sect2>
|
---|
| 140 |
|
---|
[868c7c2] | 141 | <sect2 role="content">
|
---|
| 142 | <title>Contents</title>
|
---|
| 143 |
|
---|
| 144 | <segmentedlist>
|
---|
[1e8765e] | 145 | <segtitle>Optionally Installed Programs</segtitle>
|
---|
[868c7c2] | 146 | <segtitle>Installed Libraries</segtitle>
|
---|
[ba2ac60] | 147 | <segtitle>Installed Directories</segtitle>
|
---|
[868c7c2] | 148 |
|
---|
| 149 | <seglistitem>
|
---|
[d3ef1e4] | 150 | <seg>glxgears and glxinfo</seg>
|
---|
[358cbee6] | 151 | <seg>libEGL.so, libGL.so, libGLU.so, libGLw.so, and *_dri.so</seg>
|
---|
[1e8765e] | 152 | <seg><envar>$XORG_PREFIX</envar>/include/{EGL,KHR},
|
---|
| 153 | <envar>$XORG_PREFIX</envar>/lib/{dri,egl}, and
|
---|
[ba2ac60] | 154 | <envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;</seg>
|
---|
[868c7c2] | 155 | </seglistitem>
|
---|
| 156 | </segmentedlist>
|
---|
[d3ef1e4] | 157 |
|
---|
[4437f63] | 158 | <variablelist>
|
---|
| 159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 160 | <?dbfo list-presentation="list"?>
|
---|
| 161 | <?dbhtml list-presentation="table"?>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="glxgears">
|
---|
| 164 | <term><filename>glxgears</filename></term>
|
---|
| 165 | <listitem>
|
---|
[9b3b6a45] | 166 | <para>is a GL demo useful for troubleshooting graphics
|
---|
| 167 | problems.</para>
|
---|
[d8838ed5] | 168 | <indexterm zone="mesalib glxgears">
|
---|
[4437f63] | 169 | <primary sortas="b-glxgears">glxgears</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="glxinfo">
|
---|
| 175 | <term><filename>glxinfo</filename></term>
|
---|
| 176 | <listitem>
|
---|
[9b3b6a45] | 177 | <para>is a diagnostic program that displays information about the
|
---|
[4437f63] | 178 | graphics hardware and installed GL libraries.</para>
|
---|
[d8838ed5] | 179 | <indexterm zone="mesalib glxinfo">
|
---|
[4437f63] | 180 | <primary sortas="b-glxinfo">glxinfo</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
[25f6d94] | 185 | <varlistentry id="libEGL">
|
---|
| 186 | <term><filename class='libraryfile'>libEGL.so</filename></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>provides a native platform graphics interface as defined by
|
---|
| 189 | the EGL-1.4 specification.</para>
|
---|
| 190 | <indexterm zone="mesalib libEGL">
|
---|
| 191 | <primary sortas="c-libGL">libEGL.so</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
[ba2ac60] | 196 | <varlistentry id="libGL">
|
---|
| 197 | <term><filename class='libraryfile'>libGL.so</filename></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>is the main OpenGL library.</para>
|
---|
| 200 | <indexterm zone="mesalib libGL">
|
---|
| 201 | <primary sortas="c-libGL">libGL.so</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="libGLU">
|
---|
| 207 | <term><filename class='libraryfile'>libGLU.so</filename></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>is the OpenGL Utility library.</para>
|
---|
| 210 | <indexterm zone="mesalib libGLU">
|
---|
| 211 | <primary sortas="c-libGLU">libGLU.so</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="libGLw">
|
---|
| 217 | <term><filename class='libraryfile'>libGLw.so</filename></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>is the Xt/Motif OpenGL drawing area widget library.</para>
|
---|
| 220 | <indexterm zone="mesalib libGLw">
|
---|
| 221 | <primary sortas="c-libGLw">libGLw.so</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
[4437f63] | 225 | </variablelist>
|
---|
| 226 |
|
---|
[868c7c2] | 227 | </sect2>
|
---|
[d3ef1e4] | 228 |
|
---|
[868c7c2] | 229 | </sect1>
|
---|