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