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