[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 " ">
|
---|
[b5574e7] | 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>
|
---|
| 19 | <othername>$LastChangedBy: fernando $</othername>
|
---|
| 20 | <date>$Date: 2014-05-18 18:40:17 -0500 (Sun, 18 May 2014) $</date>
|
---|
| 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 |
|
---|
[ff6b974] | 39 | &lfs76_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">Additional Downloads</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>
|
---|
| 79 | Required patch:
|
---|
[8783244] | 80 | <ulink url="&patch-root;/fltk-&fltk-version;-dynamic_libs-1.patch"/>
|
---|
[b4f8b750] | 81 | </para>
|
---|
| 82 | </listitem>
|
---|
| 83 | </itemizedlist>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect3">FLTK Dependencies</bridgehead>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 88 | <para role="required">
|
---|
| 89 | <xref linkend="glu"/>
|
---|
| 90 | <xref linkend="mesalib"/>, and
|
---|
| 91 | <xref linkend="xorg7-lib"/>,
|
---|
| 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 95 | <para role="recommended">
|
---|
| 96 | <xref linkend="desktop-file-utils"/>,
|
---|
| 97 | <xref linkend="hicolor-icon-theme"/>, and
|
---|
| 98 | <xref linkend="libjpeg"/>,
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 102 | <para role="optional">
|
---|
| 103 | <xref linkend="alsa-lib"/>,
|
---|
| 104 | <xref linkend="doxygen"/>, and
|
---|
| 105 | <xref linkend="texlive"/>,
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <para condition="html" role="usernotes">
|
---|
| 109 | User Notes: <ulink url="&blfs-wiki;/fltk"/>
|
---|
| 110 | </para>
|
---|
| 111 | </sect2>
|
---|
| 112 |
|
---|
| 113 | <sect2 role="installation">
|
---|
| 114 | <title>Installation of FLTK</title>
|
---|
| 115 |
|
---|
| 116 | <note>
|
---|
| 117 | <para>The tar extraction directory is fltk-&fltk-version; and not
|
---|
| 118 | fltk-&fltk-version;-source as indicated by the tarball name.</para>
|
---|
| 119 | </note>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | Install <application>FLTK</application> by running the following
|
---|
| 123 | commands:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
[b5574e7] | 126 | <screen><userinput>patch -Np1 -i ../fltk-&fltk-version;-dynamic_libs-1.patch &&
|
---|
[b4f8b750] | 127 | sed -i -e '/cat./d' documentation/Makefile &&
|
---|
| 128 |
|
---|
| 129 | ./configure --prefix=/usr \
|
---|
| 130 | --enable-threads \
|
---|
| 131 | --enable-xft \
|
---|
| 132 | --enable-shared &&
|
---|
| 133 | make</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | <para>If you wish to create the api documentation, issue:</para>
|
---|
| 136 |
|
---|
| 137 | <screen><userinput>make -C documentation html</userinput></screen>
|
---|
| 138 |
|
---|
| 139 | <para>The tests for the package are interactive. To execute the tests, run
|
---|
| 140 | <command>test/unittests</command>. In addition, there are 70 other
|
---|
[e6142956] | 141 | executable test programs in the <filename class='directory'>test</filename>
|
---|
[b4f8b750] | 142 | directory that can be run individually.</para>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
| 148 | <screen role="root"><userinput>make docdir=/usr/share/doc/fltk-&fltk-version; install</userinput></screen>
|
---|
| 149 |
|
---|
| 150 | <para>If desired, install some example games built as a part of the tests,
|
---|
| 151 | extra documentation and example programs. As the <systemitem
|
---|
| 152 | class="username">root</systemitem> user:</para>
|
---|
| 153 |
|
---|
[b5574e7] | 154 | <screen role="root"><userinput>make -C test docdir=/usr/share/doc/fltk-&fltk-version; install-linux &&
|
---|
| 155 | make -C documentation docdir=/usr/share/doc/fltk-&fltk-version; install-linux</userinput></screen>
|
---|
[b4f8b750] | 156 |
|
---|
| 157 | </sect2>
|
---|
| 158 |
|
---|
| 159 | <sect2 role="commands">
|
---|
| 160 | <title>Command Explanations</title>
|
---|
| 161 |
|
---|
| 162 | <para>
|
---|
[2c1ab386] | 163 | <command>patch ...dynamic_libs-1.patch</command>: Allow building
|
---|
[b4f8b750] | 164 | dynamic libraries.
|
---|
| 165 | </para>
|
---|
| 166 |
|
---|
| 167 | <para>
|
---|
| 168 | <command>sed ... documentation/Makefile</command>: Avoid installing
|
---|
| 169 | pages in <filename class='directory'>/usr/share/man/cat*</filename>.
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
| 174 | <sect2 role="content">
|
---|
| 175 | <title>Contents</title>
|
---|
| 176 |
|
---|
| 177 | <segmentedlist>
|
---|
| 178 | <segtitle>Installed Programs</segtitle>
|
---|
| 179 | <segtitle>Installed Libraries</segtitle>
|
---|
| 180 | <segtitle>Installed Directories</segtitle>
|
---|
| 181 |
|
---|
| 182 | <seglistitem>
|
---|
| 183 | <seg>
|
---|
| 184 | blocks,
|
---|
| 185 | checkers,
|
---|
| 186 | fltk-config,
|
---|
| 187 | fluid, and
|
---|
| 188 | sudoku
|
---|
| 189 | </seg>
|
---|
| 190 | <seg>
|
---|
| 191 | libfltk.{a,so},
|
---|
| 192 | libfltk_forms.{a,so},
|
---|
| 193 | libfltk_gl.{a,so}, and
|
---|
| 194 | libfltk_images.{a,so}
|
---|
| 195 | </seg>
|
---|
| 196 | <seg>
|
---|
| 197 | /usr/include/FL and
|
---|
| 198 | /usr/share/doc/fltk-&fltk-version;
|
---|
| 199 | </seg>
|
---|
| 200 | </seglistitem>
|
---|
| 201 | </segmentedlist>
|
---|
| 202 |
|
---|
| 203 | <variablelist>
|
---|
| 204 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 205 | <?dbfo list-presentation="list"?>
|
---|
| 206 | <?dbhtml list-presentation="table"?>
|
---|
| 207 |
|
---|
| 208 |
|
---|
| 209 | <varlistentry id="fltk-config">
|
---|
| 210 | <term><command>fltk-config</command></term>
|
---|
| 211 | <listitem>
|
---|
| 212 | <para>
|
---|
| 213 | is a utility script that can be used to get information about the
|
---|
| 214 | current version of FLTK that is installed on the system.
|
---|
| 215 | </para>
|
---|
| 216 | <indexterm zone="fltk fltk-config">
|
---|
| 217 | <primary sortas="b-fltk-config">fltk-config</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="fluid">
|
---|
| 223 | <term><command>fluid</command></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>
|
---|
| 226 | is an interactive GUI designer for FLTK.
|
---|
| 227 | </para>
|
---|
| 228 | <indexterm zone="fltk fluid">
|
---|
| 229 | <primary sortas="b-fluid">fluid</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="libfltk">
|
---|
| 235 | <term><filename class="libraryfile">libfltk.so</filename></term>
|
---|
| 236 | <listitem>
|
---|
| 237 | <para>
|
---|
| 238 | contains functions that provide an API to implement graphical user
|
---|
| 239 | interfaces.
|
---|
| 240 | </para>
|
---|
| 241 | <indexterm zone="fltk libfltk">
|
---|
| 242 | <primary sortas="c-libfltk">libfltk.so</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | </variablelist>
|
---|
| 248 |
|
---|
| 249 | </sect2>
|
---|
| 250 |
|
---|
| 251 | </sect1>
|
---|