[b4f8b750] | 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 |
|
---|
[3dfed94] | 7 | <!-- Watch directory when updating -->
|
---|
[9423da79] | 8 | <!ENTITY fltk-download-http "http://fltk.org/pub/fltk/1.3.5/fltk-&fltk-version;-source.tar.gz">
|
---|
[b4f8b750] | 9 | <!ENTITY fltk-download-ftp " ">
|
---|
[9423da79] | 10 | <!ENTITY fltk-md5sum "e85017defd5a03ae82e634311db87bbf">
|
---|
| 11 | <!ENTITY fltk-size "5.1 MB">
|
---|
[c1ff74eb] | 12 | <!ENTITY fltk-buildsize "117 MB (with documentation)">
|
---|
[b6659065] | 13 | <!ENTITY fltk-time "0.2 SBU (Using parallelism=4)">
|
---|
[b4f8b750] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="fltk" xreflabel="FLTK-&fltk-version;">
|
---|
| 17 | <?dbhtml filename="fltk.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
[d027410] | 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
[b4f8b750] | 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>FLTK-&fltk-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="fltk">
|
---|
| 27 | <primary sortas="a-FLTK">FLTK</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to FLTK</title>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
| 34 | FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit.
|
---|
[f3429309] | 35 | FLTK provides modern GUI functionality and supports 3D graphics via
|
---|
| 36 | OpenGL and its built-in GLUT emulation libraries used for creating
|
---|
[b4f8b750] | 37 | graphical user interfaces for applications.
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[59417918] | 40 | &lfs84_checked;
|
---|
[b4f8b750] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&fltk-download-http;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&fltk-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download MD5 sum: &fltk-md5sum;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download size: &fltk-size;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated disk space required: &fltk-buildsize;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Estimated build time: &fltk-time;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect3">FLTK Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 79 | <para role="required">
|
---|
[6e5b442f] | 80 | <xref linkend="xorg7-lib"/>
|
---|
[b4f8b750] | 81 | </para>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 84 | <para role="recommended">
|
---|
[6e5b442f] | 85 | <xref linkend="hicolor-icon-theme"/>,
|
---|
| 86 | <xref linkend="libjpeg"/>, and
|
---|
| 87 | <xref linkend="libpng"/>
|
---|
[b4f8b750] | 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 91 | <para role="optional">
|
---|
| 92 | <xref linkend="alsa-lib"/>,
|
---|
[6e5b442f] | 93 | <xref linkend="desktop-file-utils"/>,
|
---|
| 94 | <xref linkend="doxygen"/>,
|
---|
| 95 | <xref linkend="glu"/>,
|
---|
[7a395d1] | 96 | <xref linkend="mesa"/>, and
|
---|
[2d98031c] | 97 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
---|
[b4f8b750] | 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <para condition="html" role="usernotes">
|
---|
| 101 | User Notes: <ulink url="&blfs-wiki;/fltk"/>
|
---|
| 102 | </para>
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 role="installation">
|
---|
| 106 | <title>Installation of FLTK</title>
|
---|
| 107 |
|
---|
| 108 | <note>
|
---|
[f3429309] | 109 | <para>The tar extraction directory is fltk-&fltk-version; and not
|
---|
[b4f8b750] | 110 | fltk-&fltk-version;-source as indicated by the tarball name.</para>
|
---|
| 111 | </note>
|
---|
| 112 |
|
---|
| 113 | <para>
|
---|
| 114 | Install <application>FLTK</application> by running the following
|
---|
| 115 | commands:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
[6e5b442f] | 118 | <screen><userinput>sed -i -e '/cat./d' documentation/Makefile &&
|
---|
[b4f8b750] | 119 |
|
---|
| 120 | ./configure --prefix=/usr \
|
---|
| 121 | --enable-shared &&
|
---|
| 122 | make</userinput></screen>
|
---|
| 123 |
|
---|
[6e5b442f] | 124 | <para>If you wish to create the API documentation, issue:</para>
|
---|
[b4f8b750] | 125 |
|
---|
| 126 | <screen><userinput>make -C documentation html</userinput></screen>
|
---|
| 127 |
|
---|
| 128 | <para>The tests for the package are interactive. To execute the tests, run
|
---|
| 129 | <command>test/unittests</command>. In addition, there are 70 other
|
---|
[e6142956] | 130 | executable test programs in the <filename class='directory'>test</filename>
|
---|
[b4f8b750] | 131 | directory that can be run individually.</para>
|
---|
| 132 |
|
---|
| 133 | <para>
|
---|
| 134 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
| 137 | <screen role="root"><userinput>make docdir=/usr/share/doc/fltk-&fltk-version; install</userinput></screen>
|
---|
| 138 |
|
---|
| 139 | <para>If desired, install some example games built as a part of the tests,
|
---|
| 140 | extra documentation and example programs. As the <systemitem
|
---|
| 141 | class="username">root</systemitem> user:</para>
|
---|
| 142 |
|
---|
[b5574e7] | 143 | <screen role="root"><userinput>make -C test docdir=/usr/share/doc/fltk-&fltk-version; install-linux &&
|
---|
| 144 | make -C documentation docdir=/usr/share/doc/fltk-&fltk-version; install-linux</userinput></screen>
|
---|
[b4f8b750] | 145 |
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | <sect2 role="commands">
|
---|
| 149 | <title>Command Explanations</title>
|
---|
| 150 |
|
---|
| 151 | <para>
|
---|
| 152 | <command>sed ... documentation/Makefile</command>: Avoid installing
|
---|
| 153 | pages in <filename class='directory'>/usr/share/man/cat*</filename>.
|
---|
| 154 | </para>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|
| 157 |
|
---|
| 158 | <sect2 role="content">
|
---|
| 159 | <title>Contents</title>
|
---|
| 160 |
|
---|
| 161 | <segmentedlist>
|
---|
| 162 | <segtitle>Installed Programs</segtitle>
|
---|
| 163 | <segtitle>Installed Libraries</segtitle>
|
---|
| 164 | <segtitle>Installed Directories</segtitle>
|
---|
| 165 |
|
---|
| 166 | <seglistitem>
|
---|
| 167 | <seg>
|
---|
| 168 | blocks,
|
---|
[f3429309] | 169 | checkers,
|
---|
| 170 | fltk-config,
|
---|
[b4f8b750] | 171 | fluid, and
|
---|
| 172 | sudoku
|
---|
| 173 | </seg>
|
---|
| 174 | <seg>
|
---|
[f3429309] | 175 | libfltk.{a,so},
|
---|
| 176 | libfltk_forms.{a,so},
|
---|
| 177 | libfltk_gl.{a,so}, and
|
---|
[b4f8b750] | 178 | libfltk_images.{a,so}
|
---|
| 179 | </seg>
|
---|
| 180 | <seg>
|
---|
| 181 | /usr/include/FL and
|
---|
| 182 | /usr/share/doc/fltk-&fltk-version;
|
---|
| 183 | </seg>
|
---|
| 184 | </seglistitem>
|
---|
| 185 | </segmentedlist>
|
---|
| 186 |
|
---|
| 187 | <variablelist>
|
---|
| 188 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 189 | <?dbfo list-presentation="list"?>
|
---|
| 190 | <?dbhtml list-presentation="table"?>
|
---|
| 191 |
|
---|
[8b9ad6e] | 192 | <varlistentry id="blocks">
|
---|
| 193 | <term><command>blocks</command></term>
|
---|
| 194 | <listitem>
|
---|
| 195 | <para>
|
---|
| 196 | is a FLTK-based block elimination game.
|
---|
| 197 | </para>
|
---|
| 198 | <indexterm zone="fltk blocks">
|
---|
| 199 | <primary sortas="b-blocks">blocks</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="checkers">
|
---|
| 205 | <term><command>checkers</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>
|
---|
| 208 | is a FLTK-based version of the game of checkers.
|
---|
| 209 | </para>
|
---|
| 210 | <indexterm zone="fltk checkers">
|
---|
| 211 | <primary sortas="b-checkers">checkers</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
[b4f8b750] | 215 |
|
---|
| 216 | <varlistentry id="fltk-config">
|
---|
| 217 | <term><command>fltk-config</command></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>
|
---|
| 220 | is a utility script that can be used to get information about the
|
---|
| 221 | current version of FLTK that is installed on the system.
|
---|
| 222 | </para>
|
---|
| 223 | <indexterm zone="fltk fltk-config">
|
---|
| 224 | <primary sortas="b-fltk-config">fltk-config</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
| 229 | <varlistentry id="fluid">
|
---|
| 230 | <term><command>fluid</command></term>
|
---|
| 231 | <listitem>
|
---|
| 232 | <para>
|
---|
[8b9ad6e] | 233 | is an interactive GUI designer for FLTK.
|
---|
[b4f8b750] | 234 | </para>
|
---|
| 235 | <indexterm zone="fltk fluid">
|
---|
| 236 | <primary sortas="b-fluid">fluid</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
[8b9ad6e] | 241 | <varlistentry id="sudoku">
|
---|
| 242 | <term><command>sudoku</command></term>
|
---|
| 243 | <listitem>
|
---|
| 244 | <para>
|
---|
| 245 | is an implementation of the popular Sudoku game.
|
---|
| 246 | </para>
|
---|
| 247 | <indexterm zone="fltk sudoku">
|
---|
| 248 | <primary sortas="b-sudoku">sudoku</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
[b4f8b750] | 253 | <varlistentry id="libfltk">
|
---|
| 254 | <term><filename class="libraryfile">libfltk.so</filename></term>
|
---|
| 255 | <listitem>
|
---|
| 256 | <para>
|
---|
| 257 | contains functions that provide an API to implement graphical user
|
---|
| 258 | interfaces.
|
---|
| 259 | </para>
|
---|
| 260 | <indexterm zone="fltk libfltk">
|
---|
| 261 | <primary sortas="c-libfltk">libfltk.so</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | </variablelist>
|
---|
| 267 |
|
---|
| 268 | </sect2>
|
---|
| 269 |
|
---|
| 270 | </sect1>
|
---|