[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 |
|
---|
[2dc27593] | 7 | <!ENTITY glm-download-http "https://github.com/g-truc/glm/archive/&glm-version;/glm-&glm-version;.tar.gz">
|
---|
[f527eeb] | 8 | <!ENTITY glm-download-ftp " ">
|
---|
| 9 | <!ENTITY glm-md5sum "e06e859bd80c5d6042f5c53630f385ec">
|
---|
| 10 | <!ENTITY glm-size "4.4 MB">
|
---|
| 11 | <!ENTITY glm-buildsize "50 MB">
|
---|
| 12 | <!ENTITY glm-time "0.8 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="glm" xreflabel="GLM-&glm-version;">
|
---|
| 16 | <?dbhtml filename="glm.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>GLM-&glm-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="glm">
|
---|
| 26 | <primary sortas="a-GLM">GLM</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to GLM</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | OpenGL Mathematics (<application>GLM</application>) is a header-only C++
|
---|
| 34 | mathematics library for graphics software based on the OpenGL Shading
|
---|
| 35 | Language (GLSL) specifications. An extension system provides extended
|
---|
| 36 | capabilities such as matrix transformations and quaternions.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
| 39 | &lfs84_checked;
|
---|
| 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&glm-download-http;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&glm-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download MD5 sum: &glm-md5sum;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download size: &glm-size;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated disk space required: &glm-buildsize;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated build time: &glm-time;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
[2dc27593] | 74 | <!--
|
---|
[f527eeb] | 75 | <note>
|
---|
| 76 | <para>
|
---|
| 77 | The <application>GLM</application> source tarball shown above
|
---|
| 78 | downloads with the correct name, glm-&glm-version;.tar.gz, if
|
---|
| 79 | using a browser such as Firefox. If you prefer to use a command line
|
---|
| 80 | program such as wget, you normally would obtain &glm-version;.tar.gz.
|
---|
| 81 | To obtain this package with the proper filename, run:
|
---|
| 82 |
|
---|
| 83 | <screen><userinput>wget -c https://github.com/g-truc/glm/archive/&glm-version;.tar.gz \
|
---|
| 84 | -O glm-&glm-version;.tar.gz</userinput></screen>
|
---|
| 85 | </para>
|
---|
| 86 | </note>
|
---|
[2dc27593] | 87 | -->
|
---|
[f527eeb] | 88 | <bridgehead renderas="sect3">GLM Dependencies</bridgehead>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 91 | <para role="required">
|
---|
| 92 | <xref linkend="cmake"/>
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <para condition="html" role="usernotes">
|
---|
| 96 | User Notes: <ulink url="&blfs-wiki;/GLM"/>
|
---|
| 97 | </para>
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="installation">
|
---|
| 101 | <title>Installation of GLM</title>
|
---|
| 102 |
|
---|
| 103 | <para>
|
---|
| 104 | Install <application>GLM</application> by running the following
|
---|
| 105 | commands:
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <screen><userinput>mkdir build &&
|
---|
| 109 | cd build &&
|
---|
| 110 |
|
---|
| 111 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 112 | -DCMAKE_INSTALL_LIBDIR=lib .. &&
|
---|
| 113 | make</userinput></screen>
|
---|
| 114 |
|
---|
| 115 | <para>
|
---|
| 116 | To test the results, issue: <command>make test</command>.
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <para>
|
---|
| 120 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
| 128 |
|
---|
| 129 | <para>
|
---|
| 130 | <command>-DCMAKE_INSTALL_LIBDIR=lib ..</command>: Although no compiled
|
---|
| 131 | libraries are installed, this command ensures that the
|
---|
| 132 | <application>cmake</application> and
|
---|
| 133 | <application>pkg-config</application> files are installed into
|
---|
| 134 | <filename class="directory">/usr/lib</filename>.
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="content">
|
---|
| 140 | <title>Contents</title>
|
---|
| 141 |
|
---|
| 142 | <segmentedlist>
|
---|
| 143 | <segtitle>Installed Program</segtitle>
|
---|
| 144 | <segtitle>Installed Library</segtitle>
|
---|
| 145 | <segtitle>Installed Directory</segtitle>
|
---|
| 146 |
|
---|
| 147 | <seglistitem>
|
---|
| 148 | <seg>
|
---|
| 149 | None.
|
---|
| 150 | </seg>
|
---|
| 151 | <seg>
|
---|
| 152 | None.
|
---|
| 153 | </seg>
|
---|
| 154 | <seg>
|
---|
| 155 | /usr/include/glm.
|
---|
| 156 | </seg>
|
---|
| 157 | </seglistitem>
|
---|
| 158 | </segmentedlist>
|
---|
| 159 |
|
---|
| 160 | <!-- this package has no programs or libraries to describe -->
|
---|
| 161 |
|
---|
| 162 | </sect2>
|
---|
| 163 | </sect1>
|
---|