[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 " ">
|
---|
| 9 | <!ENTITY mesalib-md5sum "7674d2c603b5834259e4e5a820cefd5b">
|
---|
| 10 | <!ENTITY mesalib-size "3.9 MB">
|
---|
| 11 | <!ENTITY mesalib-buildsize "672 MB">
|
---|
[d3ef1e4] | 12 | <!ENTITY mesalib-time "2.2 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>
|
---|
[d9c80e1] | 51 | <para>Download size (including Recommended downloads):
|
---|
[868c7c2] | 52 | &mesalib-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[d9c80e1] | 55 | <para>Estimated disk space required (including Recommended downloads):
|
---|
[868c7c2] | 56 | &mesalib-buildsize;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[a6c2aff2] | 59 | <para>Estimated build time (including optional downloads):
|
---|
[868c7c2] | 60 | &mesalib-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
---|
| 65 |
|
---|
| 66 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d3ef1e4] | 67 | <para>X (<xref linkend="xorg"/>, <xref linkend="xfree86"/>, or
|
---|
[4ff4e9a] | 68 | <xref linkend="xorg7"/> Libs and Utilities), and
|
---|
[868c7c2] | 69 | <xref linkend="libdrm"/></para>
|
---|
| 70 |
|
---|
[a6c2aff2] | 71 | <bridgehead renderas="sect3">Optional Downloads</bridgehead>
|
---|
[d3ef1e4] | 72 | <para><ulink
|
---|
| 73 | url="http://prdownloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2"/>
|
---|
[a6c2aff2] | 74 | provides a working <filename class='libraryfile'>libglut</filename>.</para>
|
---|
[d3ef1e4] | 75 |
|
---|
| 76 | <para><ulink
|
---|
| 77 | url="http://prdownloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2"/>
|
---|
[d9c80e1] | 78 | provides a demo and a diagnostic program to verify that GL is working
|
---|
[4437f63] | 79 | properly.</para>
|
---|
[d3ef1e4] | 80 |
|
---|
| 81 | <note>
|
---|
| 82 | <para>You should extract all three tarballs from the same toplevel
|
---|
[d9c80e1] | 83 | directory. All three files will extract to the
|
---|
[d3ef1e4] | 84 | <filename class="directory">Mesa-&mesalib-version;</filename>
|
---|
| 85 | directory.</para>
|
---|
| 86 | </note>
|
---|
[868c7c2] | 87 |
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2 role="installation">
|
---|
| 91 | <title>Installation of MesaLib</title>
|
---|
| 92 |
|
---|
[d3ef1e4] | 93 | <para>If you've installed the X Window System into any prefix other than
|
---|
[4437f63] | 94 | <filename class="directory">/usr</filename>, then you'll need to adjust the
|
---|
[d9c80e1] | 95 | commands below for your system. Correct several hard coded directories
|
---|
[e50cece] | 96 | in the source files with the following commands:</para>
|
---|
[868c7c2] | 97 |
|
---|
[371ff30] | 98 | <screen><userinput>find . -type f -exec sed -i 's@/usr/X11R6@/usr@g' {} \; &&
|
---|
| 99 | sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c</userinput></screen>
|
---|
[868c7c2] | 100 |
|
---|
[d9c80e1] | 101 | <para>Install <application>MesaLib</application>
|
---|
[d3ef1e4] | 102 | by running the following command:</para>
|
---|
[868c7c2] | 103 |
|
---|
| 104 | <screen><userinput>make linux-dri</userinput></screen>
|
---|
| 105 |
|
---|
| 106 | <para>This package does not come with a test suite.</para>
|
---|
| 107 |
|
---|
| 108 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 109 |
|
---|
[4437f63] | 110 | <screen role="root"><userinput>bin/installmesa /usr &&
|
---|
[371ff30] | 111 | mkdir -v -p /usr/lib/X11/modules/dri &&
|
---|
| 112 | install -v -m755 lib/*dri* /usr/lib/X11/modules/dri</userinput></screen>
|
---|
[868c7c2] | 113 |
|
---|
[a6c2aff2] | 114 | <para>If you've extracted the Demos package as well, then
|
---|
[868c7c2] | 115 | build the test programs with the following commands:</para>
|
---|
| 116 |
|
---|
[a6c2aff2] | 117 | <screen><userinput>sed -i 's@-l$(GLUT_LIB)@@g' configs/default &&
|
---|
| 118 | cd progs/xdemos &&
|
---|
[868c7c2] | 119 | make PROGS='glxinfo glxgears'</userinput></screen>
|
---|
| 120 |
|
---|
[d3ef1e4] | 121 | <para>Install the demos as the
|
---|
| 122 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[868c7c2] | 123 |
|
---|
[4437f63] | 124 | <screen role="root"><userinput>install -v -m755 glxinfo glxgears /usr/bin</userinput></screen>
|
---|
[868c7c2] | 125 |
|
---|
[d3ef1e4] | 126 | <note>
|
---|
[d9c80e1] | 127 | <para>If building <xref linkend="xorg7"/>, do not
|
---|
| 128 | remove the Mesa source tree yet, it will be required to build the
|
---|
[d3ef1e4] | 129 | X server.</para>
|
---|
| 130 | </note>
|
---|
[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 |
|
---|
| 138 | <screen><userinput role="root">ln -s -v <replaceable>[/usr/X11]</replaceable>/include/GL /usr/include</userinput></screen>
|
---|
| 139 |
|
---|
[868c7c2] | 140 | </sect2>
|
---|
| 141 |
|
---|
[371ff30] | 142 | <sect2 role="commands">
|
---|
| 143 | <title>Command Explanations</title>
|
---|
| 144 |
|
---|
[d9c80e1] | 145 | <para><command>find...sed -i 's@/usr/X11R6@/usr@'...</command>: This
|
---|
[371ff30] | 146 | command corrects several hard coded references to the X11R6 default
|
---|
| 147 | installation path.</para>
|
---|
| 148 |
|
---|
[d9c80e1] | 149 | <para><command>sed -i 's@lib/modules@lib/X11/modules@'
|
---|
[371ff30] | 150 | src/glx/x11/dri_glx.c</command>: This command corrects a hard coded
|
---|
| 151 | reference to the module directory.</para>
|
---|
| 152 |
|
---|
| 153 | <para><command>bin/installmesa</command>: Mesa uses a custom installation
|
---|
[d9c80e1] | 154 | script as opposed to the normal <parameter>install</parameter> make
|
---|
[371ff30] | 155 | target.</para>
|
---|
| 156 |
|
---|
[d9c80e1] | 157 | <para><command>install -v -m755 lib/*dri*
|
---|
[371ff30] | 158 | /usr/lib/X11/modules/dri</command>: installs the DRI modules.</para>
|
---|
| 159 |
|
---|
[a6c2aff2] | 160 | <para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
|
---|
| 161 | disables linking against GLUT libraries for the demo programs.</para>
|
---|
| 162 |
|
---|
[371ff30] | 163 | <para><command>make PROGS='glxinfo glxgears'</command>: build only
|
---|
| 164 | the glxinfo and glxgears programs.</para>
|
---|
| 165 |
|
---|
[d9c80e1] | 166 | <para><command>install -v -m755 glxinfo glxgears /usr/bin</command>:
|
---|
[371ff30] | 167 | Installs only the glxinfo and glxgears programs.</para>
|
---|
| 168 |
|
---|
| 169 | </sect2>
|
---|
| 170 |
|
---|
[868c7c2] | 171 | <sect2 role="content">
|
---|
| 172 | <title>Contents</title>
|
---|
| 173 |
|
---|
| 174 | <segmentedlist>
|
---|
| 175 | <segtitle>Installed Programs</segtitle>
|
---|
| 176 | <segtitle>Installed Libraries</segtitle>
|
---|
| 177 | <segtitle>Installed Directories</segtitle>
|
---|
| 178 |
|
---|
| 179 | <seglistitem>
|
---|
[d3ef1e4] | 180 | <seg>glxgears and glxinfo</seg>
|
---|
[868c7c2] | 181 | <seg>libGL.[so,a], libGLU.[so,a], libGLw.[so,a], libglut.[so,a] and
|
---|
| 182 | *_dri.so</seg>
|
---|
| 183 | <seg>$XORG_PREFIX/lib/modules/dri</seg>
|
---|
| 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>
|
---|
| 195 | <para>a GL demo useful for troubleshooting graphics problems.</para>
|
---|
[d8838ed5] | 196 | <indexterm zone="mesalib glxgears">
|
---|
[4437f63] | 197 | <primary sortas="b-glxgears">glxgears</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
| 202 | <varlistentry id="glxinfo">
|
---|
| 203 | <term><filename>glxinfo</filename></term>
|
---|
| 204 | <listitem>
|
---|
[d9c80e1] | 205 | <para>a diagnostic program that displays information about the
|
---|
[4437f63] | 206 | graphics hardware and installed GL libraries.</para>
|
---|
[d8838ed5] | 207 | <indexterm zone="mesalib glxinfo">
|
---|
[4437f63] | 208 | <primary sortas="b-glxinfo">glxinfo</primary>
|
---|
| 209 | </indexterm>
|
---|
| 210 | </listitem>
|
---|
| 211 | </varlistentry>
|
---|
| 212 |
|
---|
| 213 | </variablelist>
|
---|
| 214 |
|
---|
[868c7c2] | 215 | </sect2>
|
---|
[d3ef1e4] | 216 |
|
---|
[868c7c2] | 217 | </sect1>
|
---|