[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">
|
---|
[7c472863] | 9 | <!ENTITY mesalib-md5sum "0837c52698fe3252369c3fdb5195afcc">
|
---|
| 10 | <!ENTITY mesalib-size "6.0 MB">
|
---|
| 11 | <!ENTITY mesalib-buildsize "356 MB">
|
---|
| 12 | <!ENTITY mesalib-time "4.0 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 |
|
---|
[1ed7820] | 35 | &lfs70_checked;
|
---|
[ca0c29cc] | 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
|
---|
[7c472863] | 66 | url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-1.patch"/>
|
---|
[eeb29511] | 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>
|
---|
[7b74537e] | 74 | <para role="required">
|
---|
| 75 | <xref linkend="expat"/>,
|
---|
| 76 | <xref linkend="libdrm"/>,
|
---|
| 77 | <xref linkend="llvm"/>,
|
---|
| 78 | <xref linkend="makedepend"/>,
|
---|
| 79 | <xref linkend="talloc"/>, and
|
---|
| 80 | <xref linkend="xorg7-lib"/>
|
---|
| 81 | </para>
|
---|
[868c7c2] | 82 |
|
---|
[1199613] | 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c2629d2a] | 84 | <para role="optional"><xref linkend="lesstif"/> (required to build motif
|
---|
| 85 | widgets)</para>
|
---|
[531e09e] | 86 |
|
---|
[c5c2654] | 87 | <para condition="html" role="usernotes">User Notes:
|
---|
| 88 | <ulink url="&blfs-wiki;/mesalib"/></para>
|
---|
| 89 |
|
---|
[868c7c2] | 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 role="installation">
|
---|
| 93 | <title>Installation of MesaLib</title>
|
---|
| 94 |
|
---|
[11ad0b0] | 95 | <note><para>Unlike other packages, the
|
---|
| 96 | <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
|
---|
| 97 | archive will extract to the
|
---|
[9b3b6a4] | 98 | <filename class="directory">Mesa-&mesalib-version;</filename>
|
---|
[11ad0b0] | 99 | directory.</para></note>
|
---|
[38476a9] | 100 |
|
---|
[759586e] | 101 | <para>Install <application>MesaLib</application> by running the following
|
---|
[1199613] | 102 | commands:</para>
|
---|
[868c7c2] | 103 |
|
---|
[1199613] | 104 | <screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
|
---|
[7c472863] | 105 | patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-1.patch &&
|
---|
[c2629d2a] | 106 | ./configure $XORG_CONFIG --enable-xcb &&
|
---|
[1199613] | 107 | make</userinput></screen>
|
---|
[868c7c2] | 108 |
|
---|
[9b3b6a4] | 109 | <para>This package does not come with a test suite.</para>
|
---|
[ff55539b] | 110 |
|
---|
[9b3b6a4] | 111 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[ff55539b] | 112 |
|
---|
[1e8765e] | 113 | <screen role="root"><userinput>make install &&
|
---|
| 114 | install -v -m755 -d ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &&
|
---|
| 115 | install -v -m644 docs/* \
|
---|
| 116 | ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen>
|
---|
[868c7c2] | 117 |
|
---|
[d9c80e1] | 118 | <para>Finally, if installing to any prefix other than
|
---|
[3735050] | 119 | <filename class="directory">/usr</filename>, you should create symlinks
|
---|
| 120 | to the GL headers in <filename class="directory">/usr/include</filename>.
|
---|
| 121 | Execute the following command as the
|
---|
| 122 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 123 |
|
---|
[ba2ac60] | 124 | <screen role="root"><userinput>ln -s -v ${XORG_PREFIX}/include/GL /usr/include</userinput></screen>
|
---|
[5a883bc4] | 125 |
|
---|
[868c7c2] | 126 | </sect2>
|
---|
| 127 |
|
---|
[371ff30] | 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
[1199613] | 131 | <para><command>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure</command>: by
|
---|
| 132 | default, Mesa builds with debugging symbols. Remove the -g switch from
|
---|
| 133 | both <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> with this
|
---|
| 134 | command.</para>
|
---|
[9b3b6a4] | 135 |
|
---|
[1199613] | 136 | <para><option>--enable-xcb</option>: use the XCB backend instead of the
|
---|
| 137 | default XLib backend for GLX.</para>
|
---|
[9b3b6a4] | 138 |
|
---|
[f49893b] | 139 | <para><option>--enable-motif</option>: build motif widgets into the
|
---|
| 140 | GL widgets library (requires <application>lesstif</application>).</para>
|
---|
| 141 |
|
---|
[7c472863] | 142 | <para><option>--with-gallium-driver=...</option>: build additional gallium
|
---|
| 143 | drivers. Defaults to r300, r600, and swrast. You must specify i9xx and
|
---|
| 144 | nouveau drivers.</para>
|
---|
[371ff30] | 145 | </sect2>
|
---|
| 146 |
|
---|
[868c7c2] | 147 | <sect2 role="content">
|
---|
| 148 | <title>Contents</title>
|
---|
| 149 |
|
---|
| 150 | <segmentedlist>
|
---|
[1e8765e] | 151 | <segtitle>Optionally Installed Programs</segtitle>
|
---|
[868c7c2] | 152 | <segtitle>Installed Libraries</segtitle>
|
---|
[ba2ac60] | 153 | <segtitle>Installed Directories</segtitle>
|
---|
[868c7c2] | 154 |
|
---|
| 155 | <seglistitem>
|
---|
[d3ef1e4] | 156 | <seg>glxgears and glxinfo</seg>
|
---|
[358cbee6] | 157 | <seg>libEGL.so, libGL.so, libGLU.so, libGLw.so, and *_dri.so</seg>
|
---|
[1e8765e] | 158 | <seg><envar>$XORG_PREFIX</envar>/include/{EGL,KHR},
|
---|
| 159 | <envar>$XORG_PREFIX</envar>/lib/{dri,egl}, and
|
---|
[ba2ac60] | 160 | <envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;</seg>
|
---|
[868c7c2] | 161 | </seglistitem>
|
---|
| 162 | </segmentedlist>
|
---|
[d3ef1e4] | 163 |
|
---|
[4437f63] | 164 | <variablelist>
|
---|
| 165 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 166 | <?dbfo list-presentation="list"?>
|
---|
| 167 | <?dbhtml list-presentation="table"?>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="glxgears">
|
---|
| 170 | <term><filename>glxgears</filename></term>
|
---|
| 171 | <listitem>
|
---|
[9b3b6a4] | 172 | <para>is a GL demo useful for troubleshooting graphics
|
---|
| 173 | problems.</para>
|
---|
[d8838ed5] | 174 | <indexterm zone="mesalib glxgears">
|
---|
[4437f63] | 175 | <primary sortas="b-glxgears">glxgears</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="glxinfo">
|
---|
| 181 | <term><filename>glxinfo</filename></term>
|
---|
| 182 | <listitem>
|
---|
[9b3b6a4] | 183 | <para>is a diagnostic program that displays information about the
|
---|
[4437f63] | 184 | graphics hardware and installed GL libraries.</para>
|
---|
[d8838ed5] | 185 | <indexterm zone="mesalib glxinfo">
|
---|
[4437f63] | 186 | <primary sortas="b-glxinfo">glxinfo</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
[25f6d94] | 191 | <varlistentry id="libEGL">
|
---|
| 192 | <term><filename class='libraryfile'>libEGL.so</filename></term>
|
---|
| 193 | <listitem>
|
---|
| 194 | <para>provides a native platform graphics interface as defined by
|
---|
| 195 | the EGL-1.4 specification.</para>
|
---|
| 196 | <indexterm zone="mesalib libEGL">
|
---|
| 197 | <primary sortas="c-libGL">libEGL.so</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
[ba2ac60] | 202 | <varlistentry id="libGL">
|
---|
| 203 | <term><filename class='libraryfile'>libGL.so</filename></term>
|
---|
| 204 | <listitem>
|
---|
| 205 | <para>is the main OpenGL library.</para>
|
---|
| 206 | <indexterm zone="mesalib libGL">
|
---|
| 207 | <primary sortas="c-libGL">libGL.so</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="libGLU">
|
---|
| 213 | <term><filename class='libraryfile'>libGLU.so</filename></term>
|
---|
| 214 | <listitem>
|
---|
| 215 | <para>is the OpenGL Utility library.</para>
|
---|
| 216 | <indexterm zone="mesalib libGLU">
|
---|
| 217 | <primary sortas="c-libGLU">libGLU.so</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="libGLw">
|
---|
| 223 | <term><filename class='libraryfile'>libGLw.so</filename></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>is the Xt/Motif OpenGL drawing area widget library.</para>
|
---|
| 226 | <indexterm zone="mesalib libGLw">
|
---|
| 227 | <primary sortas="c-libGLw">libGLw.so</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
[4437f63] | 231 | </variablelist>
|
---|
| 232 |
|
---|
[868c7c2] | 233 | </sect2>
|
---|
[d3ef1e4] | 234 |
|
---|
[868c7c2] | 235 | </sect1>
|
---|