[f527eeb] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 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 |
|
---|
[8a2cb97] | 32 | &lfs112_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 | <para condition="html" role="usernotes">
|
---|
| 76 | User Notes: <ulink url="&blfs-wiki;/GLEW"/>
|
---|
| 77 | </para>
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <!--Required section-->
|
---|
| 81 | <sect2 role="installation">
|
---|
| 82 | <title>Installation of GLEW</title>
|
---|
| 83 |
|
---|
| 84 | <para>
|
---|
| 85 | Install <application>GLEW</application> by running the following
|
---|
| 86 | commands:
|
---|
| 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <screen><userinput>sed -i 's%lib64%lib%g' config/Makefile.linux &&
|
---|
| 90 | sed -i -e '/glew.lib.static:/d' \
|
---|
| 91 | -e '/0644 .*STATIC/d' \
|
---|
| 92 | -e 's/glew.lib.static//' Makefile &&
|
---|
| 93 | make</userinput></screen>
|
---|
| 94 |
|
---|
| 95 | <para>
|
---|
| 96 | This package does not come with a test suite.
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <para>
|
---|
| 100 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
| 103 | <screen role="root"><userinput>make install.all</userinput></screen>
|
---|
| 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <!--Optional section-->
|
---|
| 107 | <sect2 role="commands">
|
---|
| 108 | <title>Command Explanations</title>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | <command>sed -i 's%lib64%lib%g' ...</command>: This ensures that the
|
---|
| 112 | library is installed in <filename class="directory">/usr/lib</filename>.
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <para>
|
---|
[aa41434] | 116 | <command>sed -i -e '/glew.lib.static:/d' ...</command>: This suppresses
|
---|
[f527eeb] | 117 | the static library.
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
| 121 | <command>make install.all</command>: This installs the programs as well as
|
---|
| 122 | the library.
|
---|
| 123 | </para>
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 |
|
---|
| 127 | <!--Required section-->
|
---|
| 128 | <sect2 role="content">
|
---|
| 129 | <title>Contents</title>
|
---|
| 130 |
|
---|
| 131 | <segmentedlist>
|
---|
| 132 | <segtitle>Installed Programs</segtitle>
|
---|
| 133 | <segtitle>Installed Library</segtitle>
|
---|
| 134 | <segtitle>Installed Directory</segtitle>
|
---|
| 135 |
|
---|
| 136 | <seglistitem>
|
---|
| 137 | <seg>
|
---|
[5e99854b] | 138 | glewinfo and visualinfo
|
---|
[f527eeb] | 139 | </seg>
|
---|
| 140 | <seg>
|
---|
[5e99854b] | 141 | libGLEW.so
|
---|
[f527eeb] | 142 | </seg>
|
---|
| 143 | <seg>
|
---|
[5e99854b] | 144 | /usr/include/GL
|
---|
[f527eeb] | 145 | </seg>
|
---|
| 146 | </seglistitem>
|
---|
| 147 | </segmentedlist>
|
---|
| 148 |
|
---|
| 149 | <variablelist>
|
---|
| 150 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 151 | <?dbfo list-presentation="list"?>
|
---|
| 152 | <?dbhtml list-presentation="table"?>
|
---|
| 153 |
|
---|
| 154 | <!-- If the program or library name conflicts (is the same) as the
|
---|
| 155 | package name, add -prog or -lib to the varlistentry entity id
|
---|
| 156 | and the 2nd entry of the indexterm zone entity -->
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="glewinfo">
|
---|
| 159 | <term><command>glewinfo</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>
|
---|
[4c24eb0a] | 162 | provides information about the supported extensions
|
---|
[f527eeb] | 163 | </para>
|
---|
| 164 | <indexterm zone="glew glewinfo">
|
---|
| 165 | <primary sortas="b-glewinfo">glewinfo</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="visualinfo">
|
---|
| 171 | <term><command>visualinfo</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>
|
---|
[4c24eb0a] | 174 | is an extended version of glxinfo
|
---|
[f527eeb] | 175 | </para>
|
---|
| 176 | <indexterm zone="glew visualinfo">
|
---|
| 177 | <primary sortas="b-visualinfo">visualinfo</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="libGLEW.so">
|
---|
| 183 | <term><filename class="libraryfile">libGLEW.so</filename></term>
|
---|
| 184 | <listitem>
|
---|
| 185 | <para>
|
---|
[4c24eb0a] | 186 | provides functions to access OpenGL extensions
|
---|
[f527eeb] | 187 | </para>
|
---|
| 188 | <indexterm zone="glew libGLEW.so">
|
---|
| 189 | <primary sortas="c-libGLEW.so">libGLEW.so</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 | </variablelist>
|
---|
| 194 | </sect2>
|
---|
[4c24eb0a] | 195 |
|
---|
[f527eeb] | 196 | </sect1>
|
---|