source: x/lib/freeglut.xml@ 158da04

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 158da04 was 6c183b5, checked in by Pierre Labastie <pieere@…>, 4 years ago

Add user CFLAGS to CFLAGS=-fcommon

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

  • Property mode set to 100644
File size: 5.2 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 "4.6 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">Freeglut Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
80 <para role="required">
81 <xref linkend="cmake"/> and
82 <xref linkend="mesa"/>
83 </para>
84
85 <bridgehead renderas="sect4">Recommended</bridgehead>
86 <para role="recommended">
87 <xref linkend="glu"/>
88 </para>
89
90 <para condition="html" role="usernotes">User Notes:
91 <ulink url="&blfs-wiki;/freeglut"/>
92 </para>
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of Freeglut</title>
97
98 <para>
99 Install <application>Freeglut</application> by running the
100 following commands:
101 </para>
102
103<screen><userinput>mkdir build &amp;&amp;
104cd build &amp;&amp;
105
106CFLAGS="$CFLAGS -fcommon" \
107cmake -DCMAKE_INSTALL_PREFIX=/usr \
108 -DCMAKE_BUILD_TYPE=Release \
109 -DFREEGLUT_BUILD_DEMOS=OFF \
110 -DFREEGLUT_BUILD_STATIC_LIBS=OFF \
111 -Wno-dev .. &amp;&amp;
112
113make</userinput></screen>
114
115 <para>
116 This package does not come with a test suite.
117 </para>
118
119 <para>
120 Now, as the <systemitem class="username">root</systemitem>
121 user:
122 </para>
123
124<screen role="root"><userinput>make install</userinput></screen>
125
126 </sect2>
127
128 <sect2 role="commands">
129 <title>Command Explanations</title>
130<!-- remove the followind and the corresponding switch in cmake command
131 when upstream fix is applied. -->
132 <para>
133 <parameter>CFLAGS="$CFLAGS -fcommon"</parameter>: Fix building with
134 GCC-10 and later.
135 </para>
136
137 <para>
138 <parameter>-DFREEGLUT_BUILD_DEMOS=OFF</parameter>: Disable building
139 optional demo programs. Note that if you choose to build them, their
140 installation must be done manually. The demo programs are limited and
141 installation is not recommended.
142 </para>
143
144 <para>
145 <parameter>-DFREEGLUT_BUILD_STATIC_LIBS=OFF</parameter>:
146 Do not build the static library.
147 </para>
148
149 </sect2>
150
151 <sect2 role="content">
152 <title>Contents</title>
153
154 <segmentedlist>
155 <segtitle>Installed Programs</segtitle>
156 <segtitle>Installed Library</segtitle>
157 <segtitle>Installed Directories</segtitle>
158
159 <seglistitem>
160 <seg>
161 None
162 </seg>
163 <seg>
164 libglut.so
165 </seg>
166 <seg>
167 None
168 </seg>
169 </seglistitem>
170 </segmentedlist>
171
172 <variablelist>
173 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
174 <?dbfo list-presentation="list"?>
175 <?dbhtml list-presentation="table"?>
176
177 <varlistentry id="libglut">
178 <term><filename class="libraryfile">libglut.so</filename></term>
179 <listitem>
180 <para>
181 contains functions that implement the OpenGL Utility
182 Toolkit.
183 </para>
184 <indexterm zone="freeglut libglut">
185 <primary sortas="c-libglut">libglut.so</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 </variablelist>
191
192 </sect2>
193
194</sect1>
Note: See TracBrowser for help on using the repository browser.