[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[f527eeb] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[5e99854b] | 7 | <!ENTITY glew-download-http "https://downloads.sourceforge.net/glew/glew-&glew-version;.tgz">
|
---|
[f527eeb] | 8 | <!ENTITY glew-download-ftp " ">
|
---|
[5e99854b] | 9 | <!ENTITY glew-md5sum "3579164bccaef09e36c0af7f4fd5c7c7">
|
---|
| 10 | <!ENTITY glew-size "820 KB">
|
---|
[f527eeb] | 11 | <!ENTITY glew-buildsize "16 MB">
|
---|
| 12 | <!ENTITY glew-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="glew" xreflabel="GLEW-&glew-version;">
|
---|
| 16 | <?dbhtml filename="glew.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>GLEW-&glew-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="glew">
|
---|
| 22 | <primary sortas="a-GLEW">GLEW</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to GLEW</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>GLEW</application> is the OpenGL Extension Wrangler Library.
|
---|
| 30 | </para>
|
---|
| 31 |
|
---|
[6360539] | 32 | &lfs122_checked;
|
---|
[f527eeb] | 33 |
|
---|
| 34 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 35 | <itemizedlist spacing="compact">
|
---|
| 36 | <listitem>
|
---|
| 37 | <para>
|
---|
| 38 | Download (HTTP): <ulink url="&glew-download-http;"/>
|
---|
| 39 | </para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (FTP): <ulink url="&glew-download-ftp;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download MD5 sum: &glew-md5sum;
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download size: &glew-size;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Estimated disk space required: &glew-buildsize;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated build time: &glew-time;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect3">glew Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 71 | <para role="required">
|
---|
| 72 | <xref linkend="mesa"/>
|
---|
| 73 | </para>
|
---|
| 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <!--Required section-->
|
---|
| 78 | <sect2 role="installation">
|
---|
| 79 | <title>Installation of GLEW</title>
|
---|
| 80 |
|
---|
| 81 | <para>
|
---|
| 82 | Install <application>GLEW</application> by running the following
|
---|
| 83 | commands:
|
---|
| 84 | </para>
|
---|
| 85 |
|
---|
| 86 | <screen><userinput>sed -i 's%lib64%lib%g' config/Makefile.linux &&
|
---|
| 87 | sed -i -e '/glew.lib.static:/d' \
|
---|
| 88 | -e '/0644 .*STATIC/d' \
|
---|
| 89 | -e 's/glew.lib.static//' Makefile &&
|
---|
| 90 | make</userinput></screen>
|
---|
| 91 |
|
---|
| 92 | <para>
|
---|
| 93 | This package does not come with a test suite.
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <para>
|
---|
| 97 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <screen role="root"><userinput>make install.all</userinput></screen>
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <!--Optional section-->
|
---|
| 104 | <sect2 role="commands">
|
---|
| 105 | <title>Command Explanations</title>
|
---|
| 106 |
|
---|
| 107 | <para>
|
---|
| 108 | <command>sed -i 's%lib64%lib%g' ...</command>: This ensures that the
|
---|
| 109 | library is installed in <filename class="directory">/usr/lib</filename>.
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <para>
|
---|
[aa41434] | 113 | <command>sed -i -e '/glew.lib.static:/d' ...</command>: This suppresses
|
---|
[f527eeb] | 114 | the static library.
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
| 117 | <para>
|
---|
| 118 | <command>make install.all</command>: This installs the programs as well as
|
---|
| 119 | the library.
|
---|
| 120 | </para>
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 |
|
---|
| 124 | <!--Required section-->
|
---|
| 125 | <sect2 role="content">
|
---|
| 126 | <title>Contents</title>
|
---|
| 127 |
|
---|
| 128 | <segmentedlist>
|
---|
| 129 | <segtitle>Installed Programs</segtitle>
|
---|
| 130 | <segtitle>Installed Library</segtitle>
|
---|
| 131 | <segtitle>Installed Directory</segtitle>
|
---|
| 132 |
|
---|
| 133 | <seglistitem>
|
---|
| 134 | <seg>
|
---|
[5e99854b] | 135 | glewinfo and visualinfo
|
---|
[f527eeb] | 136 | </seg>
|
---|
| 137 | <seg>
|
---|
[5e99854b] | 138 | libGLEW.so
|
---|
[f527eeb] | 139 | </seg>
|
---|
| 140 | <seg>
|
---|
[5e99854b] | 141 | /usr/include/GL
|
---|
[f527eeb] | 142 | </seg>
|
---|
| 143 | </seglistitem>
|
---|
| 144 | </segmentedlist>
|
---|
| 145 |
|
---|
| 146 | <variablelist>
|
---|
| 147 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 148 | <?dbfo list-presentation="list"?>
|
---|
| 149 | <?dbhtml list-presentation="table"?>
|
---|
| 150 |
|
---|
| 151 | <!-- If the program or library name conflicts (is the same) as the
|
---|
| 152 | package name, add -prog or -lib to the varlistentry entity id
|
---|
| 153 | and the 2nd entry of the indexterm zone entity -->
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="glewinfo">
|
---|
| 156 | <term><command>glewinfo</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>
|
---|
[4c24eb0a] | 159 | provides information about the supported extensions
|
---|
[f527eeb] | 160 | </para>
|
---|
| 161 | <indexterm zone="glew glewinfo">
|
---|
| 162 | <primary sortas="b-glewinfo">glewinfo</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="visualinfo">
|
---|
| 168 | <term><command>visualinfo</command></term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>
|
---|
[4c24eb0a] | 171 | is an extended version of glxinfo
|
---|
[f527eeb] | 172 | </para>
|
---|
| 173 | <indexterm zone="glew visualinfo">
|
---|
| 174 | <primary sortas="b-visualinfo">visualinfo</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="libGLEW.so">
|
---|
| 180 | <term><filename class="libraryfile">libGLEW.so</filename></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>
|
---|
[4c24eb0a] | 183 | provides functions to access OpenGL extensions
|
---|
[f527eeb] | 184 | </para>
|
---|
| 185 | <indexterm zone="glew libGLEW.so">
|
---|
| 186 | <primary sortas="c-libGLEW.so">libGLEW.so</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 | </variablelist>
|
---|
| 191 | </sect2>
|
---|
[4c24eb0a] | 192 |
|
---|
[f527eeb] | 193 | </sect1>
|
---|