[868c7c2] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY mesalib-download-http "http://prdownloads.sourceforge.net/mesa3d/MesaLib-&mesalib-version;.tar.bz2">
|
---|
| 8 | <!ENTITY mesalib-download-ftp " ">
|
---|
[7be99f2c] | 9 | <!ENTITY mesalib-md5sum "61beda590bfc5b4a12e979d5f2d70d7a">
|
---|
| 10 | <!ENTITY mesalib-size "3.3 MB">
|
---|
| 11 | <!ENTITY mesalib-buildsize "823 MB">
|
---|
| 12 | <!ENTITY mesalib-time "1.7 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 | <keywordset>
|
---|
| 22 | <keyword role="package">MesaLib-&mesalib-version;.tar</keyword>
|
---|
| 23 | <keyword role="ftpdir">MesaLib</keyword>
|
---|
| 24 | </keywordset>
|
---|
| 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>MesaLib-&mesalib-version;</title>
|
---|
| 28 |
|
---|
[d8838ed5] | 29 | <indexterm zone="mesalib">
|
---|
[868c7c2] | 30 | <primary sortas="a-MesaLib">MesaLib</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to MesaLib</title>
|
---|
| 35 |
|
---|
| 36 | <para><application>Mesa</application> is an OpenGL compatible 3-D graphics
|
---|
| 37 | library.</para>
|
---|
| 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&mesalib-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&mesalib-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &mesalib-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[7be99f2c] | 51 | <para>Download size (including recommended download):
|
---|
[868c7c2] | 52 | &mesalib-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[7be99f2c] | 55 | <para>Estimated disk space required (including recommended download):
|
---|
[868c7c2] | 56 | &mesalib-buildsize;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[7be99f2c] | 59 | <para>Estimated build time (including recommended download):
|
---|
[868c7c2] | 60 | &mesalib-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
---|
| 65 |
|
---|
| 66 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c23b62b] | 67 | <para role="required"><xref linkend="xorg7-lib"/>,
|
---|
[2128523] | 68 | <xref linkend="xorg7-util"/>, and
|
---|
| 69 | <xref linkend="libdrm"/></para>
|
---|
[868c7c2] | 70 |
|
---|
[531e09e] | 71 | <note>
|
---|
[c23b62b] | 72 | <para>It is not recomended to build a newer version of
|
---|
[531e09e] | 73 | <application>Mesa</application> with <xref linkend="xfree86"/> or
|
---|
| 74 | <xref linkend="xorg"/>.</para>
|
---|
| 75 | </note>
|
---|
| 76 |
|
---|
[3f72a148] | 77 | <bridgehead renderas="sect3">Recommended Download</bridgehead>
|
---|
[d3ef1e4] | 78 | <para><ulink
|
---|
[7be99f2c] | 79 | url="http://prdownloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2">MesaDemos-&mesalib-version;</ulink>
|
---|
[d9c80e1] | 80 | provides a demo and a diagnostic program to verify that GL is working
|
---|
[4437f63] | 81 | properly.</para>
|
---|
[d3ef1e4] | 82 |
|
---|
[3f72a148] | 83 | <bridgehead renderas="sect3">Optional Download</bridgehead>
|
---|
| 84 | <para><ulink
|
---|
[7be99f2c] | 85 | url="http://prdownloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2">MesaGLUT-&mesalib-version;</ulink>
|
---|
[3f72a148] | 86 | provides a working <filename class='libraryfile'>libglut</filename>.</para>
|
---|
| 87 |
|
---|
[d3ef1e4] | 88 | <note>
|
---|
| 89 | <para>You should extract all three tarballs from the same toplevel
|
---|
[d9c80e1] | 90 | directory. All three files will extract to the
|
---|
[d3ef1e4] | 91 | <filename class="directory">Mesa-&mesalib-version;</filename>
|
---|
| 92 | directory.</para>
|
---|
| 93 | </note>
|
---|
[868c7c2] | 94 |
|
---|
[c5c2654] | 95 | <para condition="html" role="usernotes">User Notes:
|
---|
| 96 | <ulink url="&blfs-wiki;/mesalib"/></para>
|
---|
| 97 |
|
---|
[868c7c2] | 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="installation">
|
---|
| 101 | <title>Installation of MesaLib</title>
|
---|
| 102 |
|
---|
[78f4c3e] | 103 | <para>You will need to adjust the commands below to reflect the
|
---|
[c23b62b] | 104 | installation prefix of the X Window System. First, correct several
|
---|
| 105 | hard coded directories in the source files with the following
|
---|
[531e09e] | 106 | commands:</para>
|
---|
[78f4c3e] | 107 |
|
---|
[6291d0e] | 108 | <screen><userinput>find . -type f -exec sed -i "s@/usr/X11R6@$XORG_PREFIX@g" {} \; &&
|
---|
[7be99f2c] | 109 | sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c &&
|
---|
| 110 | sed -i 's@lib/modules@lib/X11/modules@' src/mesa/drivers/dri/Makefile.template</userinput></screen>
|
---|
[868c7c2] | 111 |
|
---|
[3f72a148] | 112 | <para>Build <application>MesaLib</application>
|
---|
[d3ef1e4] | 113 | by running the following command:</para>
|
---|
[868c7c2] | 114 |
|
---|
| 115 | <screen><userinput>make linux-dri</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | <para>This package does not come with a test suite.</para>
|
---|
| 118 |
|
---|
[3f72a148] | 119 | <para>Now, as the <systemitem class="username">root</systemitem> user,
|
---|
[c23b62b] | 120 | issue the following commands to install
|
---|
[531e09e] | 121 | <application>MesaLib</application>:</para>
|
---|
[868c7c2] | 122 |
|
---|
[6291d0e] | 123 | <screen role="root"><userinput>bin/installmesa $XORG_PREFIX</userinput></screen>
|
---|
[ff55539b] | 124 |
|
---|
[c23b62b] | 125 | <para>While still the root user, install the modules for
|
---|
[ff55539b] | 126 | Xorg-&xorg7-version; with the following commands.</para>
|
---|
| 127 |
|
---|
[6291d0e] | 128 | <screen role="root"><userinput>mkdir -v -p $XORG_PREFIX/lib/X11/modules/dri &&
|
---|
| 129 | install -v -m755 lib/*dri* $XORG_PREFIX/lib/X11/modules/dri</userinput></screen>
|
---|
[868c7c2] | 130 |
|
---|
[a6c2aff2] | 131 | <para>If you've extracted the Demos package as well, then
|
---|
[868c7c2] | 132 | build the test programs with the following commands:</para>
|
---|
| 133 |
|
---|
[a6c2aff2] | 134 | <screen><userinput>sed -i 's@-l$(GLUT_LIB)@@g' configs/default &&
|
---|
| 135 | cd progs/xdemos &&
|
---|
[868c7c2] | 136 | make PROGS='glxinfo glxgears'</userinput></screen>
|
---|
| 137 |
|
---|
[d3ef1e4] | 138 | <para>Install the demos as the
|
---|
[531e09e] | 139 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[868c7c2] | 140 |
|
---|
[6291d0e] | 141 | <screen role="root"><userinput>install -v -m755 glxinfo glxgears $XORG_PREFIX/bin</userinput></screen>
|
---|
[868c7c2] | 142 |
|
---|
[d3ef1e4] | 143 | <note>
|
---|
[c23b62b] | 144 | <para>Do not remove the Mesa source tree yet, it will be required to
|
---|
[531e09e] | 145 | build the <xref linkend="xorg7-server"/>.</para>
|
---|
[d3ef1e4] | 146 | </note>
|
---|
[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 |
|
---|
[6291d0e] | 154 | <screen><userinput role="root">ln -s -v $XORG_PREFIX/include/GL /usr/include</userinput></screen>
|
---|
[3735050] | 155 |
|
---|
[868c7c2] | 156 | </sect2>
|
---|
| 157 |
|
---|
[371ff30] | 158 | <sect2 role="commands">
|
---|
| 159 | <title>Command Explanations</title>
|
---|
| 160 |
|
---|
[c23b62b] | 161 | <para><command>find...sed -i
|
---|
| 162 | "s@/usr/X11R6@$XORG_PREFIX@"...</command>:
|
---|
[78f4c3e] | 163 | This command corrects several hard coded references to the X11R6 default
|
---|
[371ff30] | 164 | installation path.</para>
|
---|
| 165 |
|
---|
[d9c80e1] | 166 | <para><command>sed -i 's@lib/modules@lib/X11/modules@'
|
---|
[371ff30] | 167 | src/glx/x11/dri_glx.c</command>: This command corrects a hard coded
|
---|
| 168 | reference to the module directory.</para>
|
---|
| 169 |
|
---|
| 170 | <para><command>bin/installmesa</command>: Mesa uses a custom installation
|
---|
[d9c80e1] | 171 | script as opposed to the normal <parameter>install</parameter> make
|
---|
[371ff30] | 172 | target.</para>
|
---|
| 173 |
|
---|
[d9c80e1] | 174 | <para><command>install -v -m755 lib/*dri*
|
---|
[c23b62b] | 175 | $XORG_PREFIX/lib/X11/modules/dri</command>:
|
---|
[78f4c3e] | 176 | installs the DRI modules.</para>
|
---|
[371ff30] | 177 |
|
---|
[a6c2aff2] | 178 | <para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
|
---|
| 179 | disables linking against GLUT libraries for the demo programs.</para>
|
---|
| 180 |
|
---|
[371ff30] | 181 | <para><command>make PROGS='glxinfo glxgears'</command>: build only
|
---|
| 182 | the glxinfo and glxgears programs.</para>
|
---|
| 183 |
|
---|
[c23b62b] | 184 | <para><command>install -v -m755 glxinfo glxgears
|
---|
[6291d0e] | 185 | $XORG_PREFIX/bin</command>:
|
---|
[371ff30] | 186 | Installs only the glxinfo and glxgears programs.</para>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
[868c7c2] | 190 | <sect2 role="content">
|
---|
| 191 | <title>Contents</title>
|
---|
| 192 |
|
---|
| 193 | <segmentedlist>
|
---|
| 194 | <segtitle>Installed Programs</segtitle>
|
---|
| 195 | <segtitle>Installed Libraries</segtitle>
|
---|
| 196 | <segtitle>Installed Directories</segtitle>
|
---|
| 197 |
|
---|
| 198 | <seglistitem>
|
---|
[d3ef1e4] | 199 | <seg>glxgears and glxinfo</seg>
|
---|
[c5c2654] | 200 | <seg>libGL.{so,a}, libGLU.{so,a}, libGLw.{so,a}, libglut.{so,a} and
|
---|
[868c7c2] | 201 | *_dri.so</seg>
|
---|
| 202 | <seg>$XORG_PREFIX/lib/modules/dri</seg>
|
---|
| 203 | </seglistitem>
|
---|
| 204 | </segmentedlist>
|
---|
[d3ef1e4] | 205 |
|
---|
[4437f63] | 206 | <variablelist>
|
---|
| 207 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 208 | <?dbfo list-presentation="list"?>
|
---|
| 209 | <?dbhtml list-presentation="table"?>
|
---|
| 210 |
|
---|
| 211 | <varlistentry id="glxgears">
|
---|
| 212 | <term><filename>glxgears</filename></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>a GL demo useful for troubleshooting graphics problems.</para>
|
---|
[d8838ed5] | 215 | <indexterm zone="mesalib glxgears">
|
---|
[4437f63] | 216 | <primary sortas="b-glxgears">glxgears</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="glxinfo">
|
---|
| 222 | <term><filename>glxinfo</filename></term>
|
---|
| 223 | <listitem>
|
---|
[d9c80e1] | 224 | <para>a diagnostic program that displays information about the
|
---|
[4437f63] | 225 | graphics hardware and installed GL libraries.</para>
|
---|
[d8838ed5] | 226 | <indexterm zone="mesalib glxinfo">
|
---|
[4437f63] | 227 | <primary sortas="b-glxinfo">glxinfo</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
| 232 | </variablelist>
|
---|
| 233 |
|
---|
[868c7c2] | 234 | </sect2>
|
---|
[d3ef1e4] | 235 |
|
---|
[868c7c2] | 236 | </sect1>
|
---|