[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 |
|
---|
[15b3bc29] | 7 | <!ENTITY mesalib-download-http "http://downloads.sourceforge.net/mesa3d/MesaLib-&mesalib-version;.tar.bz2">
|
---|
[868c7c2] | 8 | <!ENTITY mesalib-download-ftp " ">
|
---|
[b8df2820] | 9 | <!ENTITY mesalib-md5sum "e4d894181f1859651658b3704633e10d">
|
---|
[ba2ac60] | 10 | <!ENTITY mesalib-size "3.1 MB">
|
---|
| 11 | <!ENTITY mesalib-buildsize "172 MB">
|
---|
| 12 | <!ENTITY mesalib-time "1.6 SBU">
|
---|
[9b3b6a45] | 13 |
|
---|
| 14 | <!ENTITY mesademos-download-http "http://downloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2">
|
---|
[ba2ac60] | 15 | <!ENTITY mesademos-md5sum "e870efe98d3a50be01ab211b9b2e25d9">
|
---|
| 16 | <!ENTITY mesademos-size "1.3 MB">
|
---|
| 17 |
|
---|
[9b3b6a45] | 18 | <!ENTITY mesaglut-download-http "http://downloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2">
|
---|
[ba2ac60] | 19 | <!ENTITY mesaglut-md5sum "e84edbb11c69c8e408dfadd2ed08e95b">
|
---|
| 20 | <!ENTITY mesaglut-size "306 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 |
|
---|
[868c7c2] | 98 | <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
---|
| 99 |
|
---|
| 100 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c23b62b] | 101 | <para role="required"><xref linkend="xorg7-lib"/>,
|
---|
[15e602c] | 102 | <xref linkend="xorg7-util"/>,
|
---|
| 103 | <xref linkend="libdrm"/>, and
|
---|
| 104 | <xref linkend="expat"/></para>
|
---|
[868c7c2] | 105 |
|
---|
[275005c] | 106 | <!-- <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 107 | href="../../xincludes/xorg7-only.xml"/> -->
|
---|
[9b3b6a45] | 108 |
|
---|
| 109 | <!-- <note>
|
---|
[06be400] | 110 | <para>It is not recommended to build a newer version of
|
---|
[25a6c5c2] | 111 | <application>Mesa</application> with <xref linkend="xfree86"/>.</para>
|
---|
[9b3b6a45] | 112 | </note> -->
|
---|
[531e09e] | 113 |
|
---|
[c5c2654] | 114 | <para condition="html" role="usernotes">User Notes:
|
---|
| 115 | <ulink url="&blfs-wiki;/mesalib"/></para>
|
---|
| 116 |
|
---|
[868c7c2] | 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="installation">
|
---|
| 120 | <title>Installation of MesaLib</title>
|
---|
| 121 |
|
---|
[9b3b6a45] | 122 | <para>Extract all three tarballs from the same top-level directory as they
|
---|
| 123 | all will extract to the
|
---|
| 124 | <filename class="directory">Mesa-&mesalib-version;</filename>
|
---|
| 125 | directory.</para>
|
---|
[38476a9] | 126 |
|
---|
[9b3b6a45] | 127 | <!-- Commenting this out as there is already mention of this
|
---|
| 128 | <caution>
|
---|
| 129 | <para>You should ensure that the <envar>XORG_PREFIX</envar> variable in
|
---|
| 130 | the commands below is the same as the one used in the installation prefix
|
---|
| 131 | of <application>Xorg</application>.</para>
|
---|
| 132 | </caution>
|
---|
| 133 | -->
|
---|
[868c7c2] | 134 |
|
---|
[9b3b6a45] | 135 | <para>Install <application>MesaLib</application> by running the following
|
---|
[ba2ac60] | 136 | command:</para>
|
---|
[868c7c2] | 137 |
|
---|
[ba2ac60] | 138 | <screen><userinput>make linux-dri-x86 OPT_FLAGS="-O2 -fno-strict-aliasing" \
|
---|
[a77e3524] | 139 | DRI_DRIVER_INSTALL_DIR=${XORG_PREFIX}/lib/X11/modules/dri \
|
---|
[ba2ac60] | 140 | X11_INCLUDES=-I${XORG_PREFIX}/include \
|
---|
| 141 | EXTRA_LIB_PATH=-L${XORG_PREFIX}/lib</userinput></screen>
|
---|
[868c7c2] | 142 |
|
---|
[9b3b6a45] | 143 | <para>If you downloaded and extracted the Demos package, build the programs
|
---|
| 144 | with the following commands:</para>
|
---|
[868c7c2] | 145 |
|
---|
[9b3b6a45] | 146 | <screen><userinput>sed -i 's@-l$(GLUT_LIB)@@g' configs/default &&
|
---|
| 147 | make -C progs/xdemos PROGS='glxinfo glxgears'</userinput></screen>
|
---|
[868c7c2] | 148 |
|
---|
[9b3b6a45] | 149 | <para>This package does not come with a test suite.</para>
|
---|
[ff55539b] | 150 |
|
---|
[9b3b6a45] | 151 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[ff55539b] | 152 |
|
---|
[ba2ac60] | 153 | <screen role="root"><userinput>make install INSTALL_DIR=${XORG_PREFIX} \
|
---|
[a77e3524] | 154 | DRI_DRIVER_INSTALL_DIR=${XORG_PREFIX}/lib/X11/modules/dri &&
|
---|
[ba2ac60] | 155 | install -dv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &&
|
---|
| 156 | install -v -m644 docs/* ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen>
|
---|
[868c7c2] | 157 |
|
---|
[9b3b6a45] | 158 | <para>If you built the demo programs, install them using the following
|
---|
| 159 | command as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[868c7c2] | 160 |
|
---|
[ba2ac60] | 161 | <screen role="root"><userinput>install -v -m755 progs/xdemos/glx{info,gears} ${XORG_PREFIX}/bin</userinput></screen>
|
---|
[868c7c2] | 162 |
|
---|
[d9c80e1] | 163 | <para>Finally, if installing to any prefix other than
|
---|
[3735050] | 164 | <filename class="directory">/usr</filename>, you should create symlinks
|
---|
| 165 | to the GL headers in <filename class="directory">/usr/include</filename>.
|
---|
| 166 | Execute the following command as the
|
---|
| 167 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 168 |
|
---|
[ba2ac60] | 169 | <screen role="root"><userinput>ln -s -v ${XORG_PREFIX}/include/GL /usr/include</userinput></screen>
|
---|
[5a883bc4] | 170 |
|
---|
[9b3b6a45] | 171 | <tip>
|
---|
| 172 | <para>Do not remove the Mesa source tree yet, it will be required to
|
---|
| 173 | build the <xref linkend="xorg7-server"/>.</para>
|
---|
| 174 | </tip>
|
---|
| 175 |
|
---|
[868c7c2] | 176 | </sect2>
|
---|
| 177 |
|
---|
[371ff30] | 178 | <sect2 role="commands">
|
---|
| 179 | <title>Command Explanations</title>
|
---|
| 180 |
|
---|
[ba2ac60] | 181 | <para><command>make ... linux-dri-x86</command>: The
|
---|
| 182 | <option>linux-dri-x86</option> target is specified to use a
|
---|
[037012f] | 183 | few other helpful flags in addition to the defaults. See the other
|
---|
| 184 | targets in the <filename class="directory">configs</filename> directory
|
---|
| 185 | if your architecture is not x86.</para>
|
---|
| 186 |
|
---|
[ba2ac60] | 187 | <para><envar>OPT_FLAGS="-O2 -fno-strict-aliasing"</envar>: A bug where
|
---|
| 188 | OpenGL applications are shifted to the left by 50% can be worked around
|
---|
| 189 | by adding <option>-fno-strict-aliasing</option> to the compiler flags.</para>
|
---|
| 190 |
|
---|
[a77e3524] | 191 | <para><envar>DRI_DRIVER_INSTALL_DIR=${XORG_PREFIX}/lib/X11/modules/dri</envar>:
|
---|
[ba2ac60] | 192 | This setting specifies the location that the DRI modules will be installed
|
---|
| 193 | to. This path is also built into <filename
|
---|
| 194 | class="libraryfile">libGL.so</filename>.</para>
|
---|
| 195 |
|
---|
[9b3b6a45] | 196 | <para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
|
---|
| 197 | Disables linking against the GLUT libraries for the demo programs, omit
|
---|
| 198 | this command if you downloaded and extracted the GLUT tarball.</para>
|
---|
| 199 |
|
---|
| 200 | <para><command>make ... PROGS='glxinfo glxgears'</command>: Only builds
|
---|
| 201 | the <command>glxinfo</command> and <command>glxgears</command>
|
---|
| 202 | programs.</para>
|
---|
| 203 |
|
---|
[371ff30] | 204 | </sect2>
|
---|
| 205 |
|
---|
[868c7c2] | 206 | <sect2 role="content">
|
---|
| 207 | <title>Contents</title>
|
---|
| 208 |
|
---|
| 209 | <segmentedlist>
|
---|
[9b3b6a45] | 210 | <segtitle>Installed Programs (optional)</segtitle>
|
---|
[868c7c2] | 211 | <segtitle>Installed Libraries</segtitle>
|
---|
[ba2ac60] | 212 | <segtitle>Installed Directories</segtitle>
|
---|
[868c7c2] | 213 |
|
---|
| 214 | <seglistitem>
|
---|
[d3ef1e4] | 215 | <seg>glxgears and glxinfo</seg>
|
---|
[ba2ac60] | 216 | <seg>libGL.so, libGLU.so, libGLw.so, *_dri.so and
|
---|
| 217 | optionally, libglut.so</seg>
|
---|
| 218 | <seg><envar>$XORG_PREFIX</envar>/lib/modules/dri and
|
---|
| 219 | <envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;</seg>
|
---|
[868c7c2] | 220 | </seglistitem>
|
---|
| 221 | </segmentedlist>
|
---|
[d3ef1e4] | 222 |
|
---|
[4437f63] | 223 | <variablelist>
|
---|
| 224 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 225 | <?dbfo list-presentation="list"?>
|
---|
| 226 | <?dbhtml list-presentation="table"?>
|
---|
| 227 |
|
---|
| 228 | <varlistentry id="glxgears">
|
---|
| 229 | <term><filename>glxgears</filename></term>
|
---|
| 230 | <listitem>
|
---|
[9b3b6a45] | 231 | <para>is a GL demo useful for troubleshooting graphics
|
---|
| 232 | problems.</para>
|
---|
[d8838ed5] | 233 | <indexterm zone="mesalib glxgears">
|
---|
[4437f63] | 234 | <primary sortas="b-glxgears">glxgears</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
| 239 | <varlistentry id="glxinfo">
|
---|
| 240 | <term><filename>glxinfo</filename></term>
|
---|
| 241 | <listitem>
|
---|
[9b3b6a45] | 242 | <para>is a diagnostic program that displays information about the
|
---|
[4437f63] | 243 | graphics hardware and installed GL libraries.</para>
|
---|
[d8838ed5] | 244 | <indexterm zone="mesalib glxinfo">
|
---|
[4437f63] | 245 | <primary sortas="b-glxinfo">glxinfo</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
[ba2ac60] | 250 | <varlistentry id="libGL">
|
---|
| 251 | <term><filename class='libraryfile'>libGL.so</filename></term>
|
---|
| 252 | <listitem>
|
---|
| 253 | <para>is the main OpenGL library.</para>
|
---|
| 254 | <indexterm zone="mesalib libGL">
|
---|
| 255 | <primary sortas="c-libGL">libGL.so</primary>
|
---|
| 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
| 259 |
|
---|
| 260 | <varlistentry id="libGLU">
|
---|
| 261 | <term><filename class='libraryfile'>libGLU.so</filename></term>
|
---|
| 262 | <listitem>
|
---|
| 263 | <para>is the OpenGL Utility library.</para>
|
---|
| 264 | <indexterm zone="mesalib libGLU">
|
---|
| 265 | <primary sortas="c-libGLU">libGLU.so</primary>
|
---|
| 266 | </indexterm>
|
---|
| 267 | </listitem>
|
---|
| 268 | </varlistentry>
|
---|
| 269 |
|
---|
| 270 | <varlistentry id="libGLw">
|
---|
| 271 | <term><filename class='libraryfile'>libGLw.so</filename></term>
|
---|
| 272 | <listitem>
|
---|
| 273 | <para>is the Xt/Motif OpenGL drawing area widget library.</para>
|
---|
| 274 | <indexterm zone="mesalib libGLw">
|
---|
| 275 | <primary sortas="c-libGLw">libGLw.so</primary>
|
---|
| 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
| 280 | <varlistentry id="libglut-mesa">
|
---|
| 281 | <term><filename class='libraryfile'>libglut.so</filename></term>
|
---|
| 282 | <listitem>
|
---|
| 283 | <para>is the OpenGL Utility Toolkit (GLUT) library.</para>
|
---|
| 284 | <indexterm zone="mesalib libglut-mesa">
|
---|
| 285 | <primary sortas="c-libglut">libglut.so</primary>
|
---|
| 286 | </indexterm>
|
---|
| 287 | </listitem>
|
---|
| 288 | </varlistentry>
|
---|
| 289 |
|
---|
[4437f63] | 290 | </variablelist>
|
---|
| 291 |
|
---|
[868c7c2] | 292 | </sect2>
|
---|
[d3ef1e4] | 293 |
|
---|
[868c7c2] | 294 | </sect1>
|
---|