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