[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">
|
---|
[91859cf] | 9 | <!ENTITY mesalib-md5sum "cc5ee15e306b8c15da6a478923797171">
|
---|
[bad6be19] | 10 | <!ENTITY mesalib-size "5.5 MB">
|
---|
[91859cf] | 11 | <!ENTITY mesalib-buildsize "386 MB">
|
---|
| 12 | <!ENTITY mesalib-time "4.1 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 |
|
---|
[bad6be19] | 32 | <para><application>Mesa</application> is an OpenGL compatible 3D graphics
|
---|
[868c7c2] | 33 | library.</para>
|
---|
| 34 |
|
---|
[121d292] | 35 | &lfs71_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>
|
---|
[ace536a] | 65 | <para>Required patch: <ulink
|
---|
| 66 | url="&patch-root;/MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch"/>
|
---|
| 67 | </para>
|
---|
[eeb29511] | 68 | <para>Recommended patch: <ulink
|
---|
[260008f] | 69 | url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-2.patch"/>
|
---|
[eeb29511] | 70 | (Needed if testing the Xorg installation per BLFS instructions)</para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[868c7c2] | 74 | <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[7b74537e] | 77 | <para role="required">
|
---|
| 78 | <xref linkend="expat"/>,
|
---|
| 79 | <xref linkend="libdrm"/>,
|
---|
[60bcf481] | 80 | <xref linkend="libxml2"/>,
|
---|
[7b74537e] | 81 | <xref linkend="makedepend"/>,
|
---|
| 82 | <xref linkend="talloc"/>, and
|
---|
| 83 | <xref linkend="xorg7-lib"/>
|
---|
| 84 | </para>
|
---|
[868c7c2] | 85 |
|
---|
[60bcf481] | 86 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 87 | <para role="optional">
|
---|
| 88 | <xref linkend="llvm"/>
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
| 91 | <note>
|
---|
| 92 | <para>The <application>libxml2</application>
|
---|
| 93 | <application>Python</application> module must have been built
|
---|
| 94 | during the installation of <application>libxml2</application>
|
---|
| 95 | or else <application>MesaLib</application> build will fail.</para>
|
---|
| 96 | </note>
|
---|
| 97 |
|
---|
[c5c2654] | 98 | <para condition="html" role="usernotes">User Notes:
|
---|
| 99 | <ulink url="&blfs-wiki;/mesalib"/></para>
|
---|
| 100 |
|
---|
[868c7c2] | 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="installation">
|
---|
| 104 | <title>Installation of MesaLib</title>
|
---|
| 105 |
|
---|
[11ad0b0] | 106 | <note><para>Unlike other packages, the
|
---|
| 107 | <filename>MesaLib-&mesalib-version;.tar.bz2</filename>
|
---|
| 108 | archive will extract to the
|
---|
[9b3b6a4] | 109 | <filename class="directory">Mesa-&mesalib-version;</filename>
|
---|
[11ad0b0] | 110 | directory.</para></note>
|
---|
[38476a9] | 111 |
|
---|
[759586e] | 112 | <para>Install <application>MesaLib</application> by running the following
|
---|
[1199613] | 113 | commands:</para>
|
---|
[868c7c2] | 114 |
|
---|
[91859cf] | 115 | <screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
|
---|
| 116 | patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-2.patch &&
|
---|
| 117 | patch -Np1 -i ../MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch &&
|
---|
| 118 | ./configure --prefix=$XORG_PREFIX \
|
---|
| 119 | --enable-shared-dricore \
|
---|
| 120 | --enable-xa \
|
---|
[60bcf481] | 121 | --with-gallium-drivers="nouveau,svga,swrast" &&
|
---|
[1199613] | 122 | make</userinput></screen>
|
---|
[868c7c2] | 123 |
|
---|
[9b3b6a4] | 124 | <para>This package does not come with a test suite.</para>
|
---|
[ff55539b] | 125 |
|
---|
[9b3b6a4] | 126 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[ff55539b] | 127 |
|
---|
[1e8765e] | 128 | <screen role="root"><userinput>make install &&
|
---|
[60bcf481] | 129 | mkdir -pv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &&
|
---|
[91859cf] | 130 | cp -rv docs/* ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen>
|
---|
[868c7c2] | 131 |
|
---|
[d9c80e1] | 132 | <para>Finally, if installing to any prefix other than
|
---|
[3735050] | 133 | <filename class="directory">/usr</filename>, you should create symlinks
|
---|
| 134 | to the GL headers in <filename class="directory">/usr/include</filename>.
|
---|
| 135 | Execute the following command as the
|
---|
| 136 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 137 |
|
---|
[260008f] | 138 | <screen role="root"><userinput>ln -s -v ${XORG_PREFIX}/include/GL /usr/include &&
|
---|
| 139 | ln -s -v ${XORG_PREFIX}/include/EGL /usr/include &&
|
---|
[bad6be19] | 140 | ln -s -v ${XORG_PREFIX}/include/KHR /usr/include &&
|
---|
[91859cf] | 141 |
|
---|
[bad6be19] | 142 | for HEADER in xa_{composite,context,tracker}.h
|
---|
| 143 | do
|
---|
[06901d9d] | 144 | ln -s -v ${XORG_PREFIX}/include/$HEADER /usr/include
|
---|
[bad6be19] | 145 | done</userinput></screen>
|
---|
[5a883bc4] | 146 |
|
---|
[868c7c2] | 147 | </sect2>
|
---|
| 148 |
|
---|
[371ff30] | 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
| 151 |
|
---|
[1199613] | 152 | <para><command>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure</command>: by
|
---|
| 153 | default, Mesa builds with debugging symbols. Remove the -g switch from
|
---|
| 154 | both <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> with this
|
---|
| 155 | command.</para>
|
---|
[9b3b6a4] | 156 |
|
---|
[bad6be19] | 157 | <para><command>--enable-shared-dricore</command>: link DRI modules with
|
---|
| 158 | shared core DRI routines.</para>
|
---|
| 159 |
|
---|
| 160 | <para><command>--enable-xa</command>: enables building of the XA X
|
---|
| 161 | Acceleration API (Required for VMware 3D Driver).</para>
|
---|
[9b3b6a4] | 162 |
|
---|
[60bcf481] | 163 | <para><command>--with-gallium-drivers="..."</command>: controls building
|
---|
| 164 | of gallium drivers. Available drivers are: i915, nouveau, r300, r600,
|
---|
| 165 | swrast and svga. Note that r300 and r600 require <xref linkend="llvm"/>
|
---|
| 166 | to be installed.</para>
|
---|
[f49893b] | 167 |
|
---|
[371ff30] | 168 | </sect2>
|
---|
| 169 |
|
---|
[868c7c2] | 170 | <sect2 role="content">
|
---|
| 171 | <title>Contents</title>
|
---|
| 172 |
|
---|
| 173 | <segmentedlist>
|
---|
[1e8765e] | 174 | <segtitle>Optionally Installed Programs</segtitle>
|
---|
[868c7c2] | 175 | <segtitle>Installed Libraries</segtitle>
|
---|
[ba2ac60] | 176 | <segtitle>Installed Directories</segtitle>
|
---|
[868c7c2] | 177 |
|
---|
| 178 | <seglistitem>
|
---|
[d3ef1e4] | 179 | <seg>glxgears and glxinfo</seg>
|
---|
[bad6be19] | 180 | <seg>libEGL.so, libGL.so, libGLU.so, libxatracker.so, and *_dri.so</seg>
|
---|
| 181 | <seg><envar>$XORG_PREFIX</envar>/include/{EGL,GL,KHR},
|
---|
| 182 | <envar>$XORG_PREFIX</envar>/lib/dri, and
|
---|
[ba2ac60] | 183 | <envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;</seg>
|
---|
[868c7c2] | 184 | </seglistitem>
|
---|
| 185 | </segmentedlist>
|
---|
[d3ef1e4] | 186 |
|
---|
[4437f63] | 187 | <variablelist>
|
---|
| 188 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 189 | <?dbfo list-presentation="list"?>
|
---|
| 190 | <?dbhtml list-presentation="table"?>
|
---|
| 191 |
|
---|
| 192 | <varlistentry id="glxgears">
|
---|
| 193 | <term><filename>glxgears</filename></term>
|
---|
| 194 | <listitem>
|
---|
[9b3b6a4] | 195 | <para>is a GL demo useful for troubleshooting graphics
|
---|
| 196 | problems.</para>
|
---|
[d8838ed5] | 197 | <indexterm zone="mesalib glxgears">
|
---|
[4437f63] | 198 | <primary sortas="b-glxgears">glxgears</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
| 203 | <varlistentry id="glxinfo">
|
---|
| 204 | <term><filename>glxinfo</filename></term>
|
---|
| 205 | <listitem>
|
---|
[9b3b6a4] | 206 | <para>is a diagnostic program that displays information about the
|
---|
[4437f63] | 207 | graphics hardware and installed GL libraries.</para>
|
---|
[d8838ed5] | 208 | <indexterm zone="mesalib glxinfo">
|
---|
[4437f63] | 209 | <primary sortas="b-glxinfo">glxinfo</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
[25f6d94] | 214 | <varlistentry id="libEGL">
|
---|
| 215 | <term><filename class='libraryfile'>libEGL.so</filename></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>provides a native platform graphics interface as defined by
|
---|
| 218 | the EGL-1.4 specification.</para>
|
---|
| 219 | <indexterm zone="mesalib libEGL">
|
---|
| 220 | <primary sortas="c-libGL">libEGL.so</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
[ba2ac60] | 225 | <varlistentry id="libGL">
|
---|
| 226 | <term><filename class='libraryfile'>libGL.so</filename></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>is the main OpenGL library.</para>
|
---|
| 229 | <indexterm zone="mesalib libGL">
|
---|
| 230 | <primary sortas="c-libGL">libGL.so</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | <varlistentry id="libGLU">
|
---|
| 236 | <term><filename class='libraryfile'>libGLU.so</filename></term>
|
---|
| 237 | <listitem>
|
---|
| 238 | <para>is the OpenGL Utility library.</para>
|
---|
| 239 | <indexterm zone="mesalib libGLU">
|
---|
| 240 | <primary sortas="c-libGLU">libGLU.so</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
[bad6be19] | 245 | <varlistentry id="libxatracker">
|
---|
| 246 | <term><filename class='libraryfile'>libxatracker.so</filename></term>
|
---|
[ba2ac60] | 247 | <listitem>
|
---|
[bad6be19] | 248 | <para>is the XA X Acceleration API library.</para>
|
---|
| 249 | <indexterm zone="mesalib libxatracker">
|
---|
| 250 | <primary sortas="c-libxatracker">libxatracker.so</primary>
|
---|
[ba2ac60] | 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
[4437f63] | 254 | </variablelist>
|
---|
| 255 |
|
---|
[868c7c2] | 256 | </sect2>
|
---|
[d3ef1e4] | 257 |
|
---|
[868c7c2] | 258 | </sect1>
|
---|