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