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