1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 |
|
---|
7 | <!ENTITY freeglut-download-http
|
---|
8 | "&sourceforge-dl;/freeglut/freeglut-&freeglut-version;.tar.gz">
|
---|
9 | <!ENTITY freeglut-download-ftp " ">
|
---|
10 | <!ENTITY freeglut-md5sum "1a1c4712b3100f49f5dea22a1ad57c34">
|
---|
11 | <!ENTITY freeglut-size "420 KB">
|
---|
12 | <!ENTITY freeglut-buildsize "5.2 MB">
|
---|
13 | <!ENTITY freeglut-time "less than 0.1 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="freeglut" xreflabel="Freeglut-&freeglut-version;">
|
---|
17 | <?dbhtml filename="freeglut.html"?>
|
---|
18 |
|
---|
19 |
|
---|
20 | <title>Freeglut-&freeglut-version;</title>
|
---|
21 |
|
---|
22 | <indexterm zone="freeglut">
|
---|
23 | <primary sortas="a-Freeglut">Freeglut</primary>
|
---|
24 | </indexterm>
|
---|
25 |
|
---|
26 | <sect2 role="package">
|
---|
27 | <title>Introduction to Freeglut</title>
|
---|
28 |
|
---|
29 | <para>
|
---|
30 | <application>Freeglut</application> is intended to be a 100%
|
---|
31 | compatible, completely opensourced clone of the GLUT library.
|
---|
32 | GLUT is a window system independent toolkit for writing OpenGL
|
---|
33 | programs, implementing a simple windowing API, which makes
|
---|
34 | learning about and exploring OpenGL programming very easy.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs122_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&freeglut-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&freeglut-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &freeglut-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &freeglut-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &freeglut-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &freeglut-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 | <!--
|
---|
73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
74 | <itemizedlist spacing="compact">
|
---|
75 | <listitem>
|
---|
76 | <para>
|
---|
77 | Required patch:
|
---|
78 | <ulink url="&patch-root;/freeglut-&freeglut-version;-gcc10_fix-1.patch"/>
|
---|
79 | </para>
|
---|
80 | </listitem>
|
---|
81 | </itemizedlist>
|
---|
82 | -->
|
---|
83 | <bridgehead renderas="sect3">Freeglut Dependencies</bridgehead>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
86 | <para role="required">
|
---|
87 | <xref linkend="cmake"/> and
|
---|
88 | <xref linkend="mesa"/>
|
---|
89 | </para>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
92 | <para role="recommended">
|
---|
93 | <xref linkend="glu"/>
|
---|
94 | </para>
|
---|
95 |
|
---|
96 | </sect2>
|
---|
97 |
|
---|
98 | <sect2 role="installation">
|
---|
99 | <title>Installation of Freeglut</title>
|
---|
100 | <!--
|
---|
101 | <para>
|
---|
102 | First, fix an issue with multiple defined symbols exposed by GCC-10:
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <screen><userinput>patch -Np1 -i ../freeglut-&freeglut-version;-gcc10_fix-1.patch</userinput></screen>
|
---|
106 | -->
|
---|
107 | <para>
|
---|
108 | Install <application>Freeglut</application> by running the
|
---|
109 | following commands:
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <screen><userinput>mkdir build &&
|
---|
113 | cd build &&
|
---|
114 |
|
---|
115 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
116 | -D CMAKE_BUILD_TYPE=Release \
|
---|
117 | -D FREEGLUT_BUILD_DEMOS=OFF \
|
---|
118 | -D FREEGLUT_BUILD_STATIC_LIBS=OFF \
|
---|
119 | -W no-dev .. &&
|
---|
120 | make</userinput></screen>
|
---|
121 |
|
---|
122 | <para>
|
---|
123 | This package does not come with a test suite.
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | <para>
|
---|
127 | Now, as the <systemitem class="username">root</systemitem>
|
---|
128 | user:
|
---|
129 | </para>
|
---|
130 |
|
---|
131 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
132 |
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | <sect2 role="commands">
|
---|
136 | <title>Command Explanations</title>
|
---|
137 |
|
---|
138 | <para>
|
---|
139 | <parameter>-D FREEGLUT_BUILD_DEMOS=OFF</parameter>: Disable building
|
---|
140 | optional demo programs. Note that if you choose to build them, their
|
---|
141 | installation must be done manually. The demo programs are limited and
|
---|
142 | installation is not recommended.
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | <para>
|
---|
146 | <parameter>-D FREEGLUT_BUILD_STATIC_LIBS=OFF</parameter>:
|
---|
147 | Do not build the static library.
|
---|
148 | </para>
|
---|
149 |
|
---|
150 | </sect2>
|
---|
151 |
|
---|
152 | <sect2 role="content">
|
---|
153 | <title>Contents</title>
|
---|
154 |
|
---|
155 | <segmentedlist>
|
---|
156 | <segtitle>Installed Programs</segtitle>
|
---|
157 | <segtitle>Installed Library</segtitle>
|
---|
158 | <segtitle>Installed Directories</segtitle>
|
---|
159 |
|
---|
160 | <seglistitem>
|
---|
161 | <seg>
|
---|
162 | None
|
---|
163 | </seg>
|
---|
164 | <seg>
|
---|
165 | libglut.so
|
---|
166 | </seg>
|
---|
167 | <seg>
|
---|
168 | /usr/lib/cmake/FreeGLUT
|
---|
169 | </seg>
|
---|
170 | </seglistitem>
|
---|
171 | </segmentedlist>
|
---|
172 |
|
---|
173 | <variablelist>
|
---|
174 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
175 | <?dbfo list-presentation="list"?>
|
---|
176 | <?dbhtml list-presentation="table"?>
|
---|
177 |
|
---|
178 | <varlistentry id="libglut">
|
---|
179 | <term><filename class="libraryfile">libglut.so</filename></term>
|
---|
180 | <listitem>
|
---|
181 | <para>
|
---|
182 | contains functions that implement the OpenGL Utility
|
---|
183 | Toolkit
|
---|
184 | </para>
|
---|
185 | <indexterm zone="freeglut libglut">
|
---|
186 | <primary sortas="c-libglut">libglut.so</primary>
|
---|
187 | </indexterm>
|
---|
188 | </listitem>
|
---|
189 | </varlistentry>
|
---|
190 |
|
---|
191 | </variablelist>
|
---|
192 |
|
---|
193 | </sect2>
|
---|
194 |
|
---|
195 | </sect1>
|
---|