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