[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>
|
---|
[78f4c3e] | 67 | <para>
|
---|
| 68 | <!--<xref linkend="x-window-system"/> -->
|
---|
| 69 | <xref linkend="xorg"/> or
|
---|
| 70 | <xref linkend="xorg7-lib"/> and <xref linkend="xorg7-util"/>,
|
---|
| 71 | <xref linkend="libdrm"/>, and
|
---|
[cdb3954e] | 72 | <xref linkend="pkgconfig"/></para>
|
---|
[868c7c2] | 73 |
|
---|
[3f72a148] | 74 | <bridgehead renderas="sect3">Recommended Download</bridgehead>
|
---|
[d3ef1e4] | 75 | <para><ulink
|
---|
| 76 | url="http://prdownloads.sourceforge.net/mesa3d/MesaDemos-&mesalib-version;.tar.bz2"/>
|
---|
[d9c80e1] | 77 | provides a demo and a diagnostic program to verify that GL is working
|
---|
[4437f63] | 78 | properly.</para>
|
---|
[d3ef1e4] | 79 |
|
---|
[3f72a148] | 80 | <bridgehead renderas="sect3">Optional Download</bridgehead>
|
---|
| 81 | <para><ulink
|
---|
| 82 | url="http://prdownloads.sourceforge.net/mesa3d/MesaGLUT-&mesalib-version;.tar.bz2"/>
|
---|
| 83 | provides a working <filename class='libraryfile'>libglut</filename>.</para>
|
---|
| 84 |
|
---|
[d3ef1e4] | 85 | <note>
|
---|
| 86 | <para>You should extract all three tarballs from the same toplevel
|
---|
[d9c80e1] | 87 | directory. All three files will extract to the
|
---|
[d3ef1e4] | 88 | <filename class="directory">Mesa-&mesalib-version;</filename>
|
---|
| 89 | directory.</para>
|
---|
| 90 | </note>
|
---|
[868c7c2] | 91 |
|
---|
[c5c2654] | 92 | <para condition="html" role="usernotes">User Notes:
|
---|
| 93 | <ulink url="&blfs-wiki;/mesalib"/></para>
|
---|
| 94 |
|
---|
[868c7c2] | 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of MesaLib</title>
|
---|
| 99 |
|
---|
[78f4c3e] | 100 | <para>You will need to adjust the commands below to reflect the
|
---|
| 101 | installation prefix of the X Window System. First, correct several
|
---|
| 102 | hard coded directories in the source files with the following
|
---|
| 103 | command (you can skip this first command if the prefix is
|
---|
| 104 | <filename class="directory">/usr/X11R6</filename>):</para>
|
---|
[868c7c2] | 105 |
|
---|
[78f4c3e] | 106 | <screen><userinput>find . -type f -exec sed -i 's@/usr/X11R6@<replaceable><PREFIX></replaceable>@g' {} \;</userinput></screen>
|
---|
| 107 |
|
---|
| 108 | <para>If building for <application>Xorg-&xorg7-version;</application>,
|
---|
| 109 | issue the following command to correct for the default module path in the
|
---|
| 110 | new build system:</para>
|
---|
| 111 |
|
---|
| 112 | <screen><userinput>sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c</userinput></screen>
|
---|
[868c7c2] | 113 |
|
---|
[3f72a148] | 114 | <para>Build <application>MesaLib</application>
|
---|
[d3ef1e4] | 115 | by running the following command:</para>
|
---|
[868c7c2] | 116 |
|
---|
| 117 | <screen><userinput>make linux-dri</userinput></screen>
|
---|
| 118 |
|
---|
| 119 | <para>This package does not come with a test suite.</para>
|
---|
| 120 |
|
---|
[3f72a148] | 121 | <para>Now, as the <systemitem class="username">root</systemitem> user,
|
---|
| 122 | issue the following commands to install <application>MesaLib</application>.
|
---|
| 123 | Again you should adjust the commands if you've installed the X Window
|
---|
| 124 | System into any prefix other than
|
---|
| 125 | <filename class="directory">/usr</filename>:</para>
|
---|
[868c7c2] | 126 |
|
---|
[78f4c3e] | 127 | <screen role="root"><userinput>bin/installmesa <replaceable><PREFIX></replaceable> &&
|
---|
| 128 | mkdir -v -p <replaceable><PREFIX></replaceable>/lib/X11/modules/dri &&
|
---|
| 129 | install -v -m755 lib/*dri* <replaceable><PREFIX></replaceable>/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
|
---|
[3f72a148] | 139 | <systemitem class="username">root</systemitem> user, again adjusting for
|
---|
| 140 | the prefix of your X Window System:</para>
|
---|
[868c7c2] | 141 |
|
---|
[78f4c3e] | 142 | <screen role="root"><userinput>install -v -m755 glxinfo glxgears <replaceable><PREFIX></replaceable>/bin</userinput></screen>
|
---|
[868c7c2] | 143 |
|
---|
[d3ef1e4] | 144 | <note>
|
---|
[d9c80e1] | 145 | <para>If building <xref linkend="xorg7"/>, do not
|
---|
| 146 | remove the Mesa source tree yet, it will be required to build the
|
---|
[d3ef1e4] | 147 | X server.</para>
|
---|
| 148 | </note>
|
---|
[868c7c2] | 149 |
|
---|
[d9c80e1] | 150 | <para>Finally, if installing to any prefix other than
|
---|
[3735050] | 151 | <filename class="directory">/usr</filename>, you should create symlinks
|
---|
| 152 | to the GL headers in <filename class="directory">/usr/include</filename>.
|
---|
| 153 | Execute the following command as the
|
---|
| 154 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 155 |
|
---|
[3f72a148] | 156 | <screen><userinput role="root">ln -s -v <replaceable><PREFIX></replaceable>/include/GL /usr/include</userinput></screen>
|
---|
[3735050] | 157 |
|
---|
[868c7c2] | 158 | </sect2>
|
---|
| 159 |
|
---|
[371ff30] | 160 | <sect2 role="commands">
|
---|
| 161 | <title>Command Explanations</title>
|
---|
| 162 |
|
---|
[78f4c3e] | 163 | <para><command>find...sed -i
|
---|
| 164 | 's@/usr/X11R6@/<replaceable><PREFIX></replaceable>@'...</command>:
|
---|
| 165 | This command corrects several hard coded references to the X11R6 default
|
---|
[371ff30] | 166 | installation path.</para>
|
---|
| 167 |
|
---|
[d9c80e1] | 168 | <para><command>sed -i 's@lib/modules@lib/X11/modules@'
|
---|
[371ff30] | 169 | src/glx/x11/dri_glx.c</command>: This command corrects a hard coded
|
---|
| 170 | reference to the module directory.</para>
|
---|
| 171 |
|
---|
| 172 | <para><command>bin/installmesa</command>: Mesa uses a custom installation
|
---|
[d9c80e1] | 173 | script as opposed to the normal <parameter>install</parameter> make
|
---|
[371ff30] | 174 | target.</para>
|
---|
| 175 |
|
---|
[d9c80e1] | 176 | <para><command>install -v -m755 lib/*dri*
|
---|
[78f4c3e] | 177 | <replaceable><PREFIX></replaceable>/lib/X11/modules/dri</command>:
|
---|
| 178 | installs the DRI modules.</para>
|
---|
[371ff30] | 179 |
|
---|
[a6c2aff2] | 180 | <para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
|
---|
| 181 | disables linking against GLUT libraries for the demo programs.</para>
|
---|
| 182 |
|
---|
[371ff30] | 183 | <para><command>make PROGS='glxinfo glxgears'</command>: build only
|
---|
| 184 | the glxinfo and glxgears programs.</para>
|
---|
| 185 |
|
---|
[78f4c3e] | 186 | <para><command>install -v -m755 glxinfo glxgears
|
---|
| 187 | <replaceable><PREFIX></replaceable>/bin</command>:
|
---|
[371ff30] | 188 | Installs only the glxinfo and glxgears programs.</para>
|
---|
| 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
[868c7c2] | 192 | <sect2 role="content">
|
---|
| 193 | <title>Contents</title>
|
---|
| 194 |
|
---|
| 195 | <segmentedlist>
|
---|
| 196 | <segtitle>Installed Programs</segtitle>
|
---|
| 197 | <segtitle>Installed Libraries</segtitle>
|
---|
| 198 | <segtitle>Installed Directories</segtitle>
|
---|
| 199 |
|
---|
| 200 | <seglistitem>
|
---|
[d3ef1e4] | 201 | <seg>glxgears and glxinfo</seg>
|
---|
[c5c2654] | 202 | <seg>libGL.{so,a}, libGLU.{so,a}, libGLw.{so,a}, libglut.{so,a} and
|
---|
[868c7c2] | 203 | *_dri.so</seg>
|
---|
| 204 | <seg>$XORG_PREFIX/lib/modules/dri</seg>
|
---|
| 205 | </seglistitem>
|
---|
| 206 | </segmentedlist>
|
---|
[d3ef1e4] | 207 |
|
---|
[4437f63] | 208 | <variablelist>
|
---|
| 209 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 210 | <?dbfo list-presentation="list"?>
|
---|
| 211 | <?dbhtml list-presentation="table"?>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="glxgears">
|
---|
| 214 | <term><filename>glxgears</filename></term>
|
---|
| 215 | <listitem>
|
---|
| 216 | <para>a GL demo useful for troubleshooting graphics problems.</para>
|
---|
[d8838ed5] | 217 | <indexterm zone="mesalib glxgears">
|
---|
[4437f63] | 218 | <primary sortas="b-glxgears">glxgears</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | <varlistentry id="glxinfo">
|
---|
| 224 | <term><filename>glxinfo</filename></term>
|
---|
| 225 | <listitem>
|
---|
[d9c80e1] | 226 | <para>a diagnostic program that displays information about the
|
---|
[4437f63] | 227 | graphics hardware and installed GL libraries.</para>
|
---|
[d8838ed5] | 228 | <indexterm zone="mesalib glxinfo">
|
---|
[4437f63] | 229 | <primary sortas="b-glxinfo">glxinfo</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | </variablelist>
|
---|
| 235 |
|
---|
[868c7c2] | 236 | </sect2>
|
---|
[d3ef1e4] | 237 |
|
---|
[868c7c2] | 238 | </sect1>
|
---|