source: x/lib/freeglut.xml@ 0f48e3a

10.0 10.1 11.0 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 0f48e3a was 0f48e3a, checked in by Pierre Labastie <pieere@…>, 17 months ago

Patch freeglut for GCC 10

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23172 af4574ff-66df-0310-9fd7-8a98e5e911e0

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