FLTK-1.3.11

#### Beyond Linux® From Scratch (System V Edition) - Version r13.0-1090

### Chapter 25. Graphical Environment Libraries

- Prev

  colord-gtk-0.3.1

- Next

  Freeglut-3.8.0

- Up
- Home

# FLTK-1.3.11

## Introduction to FLTK

FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit. FLTK provides modern GUI functionality and supports 3D graphics via OpenGL and its built-in GLUT emulation libraries used for creating graphical user interfaces for applications.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://github.com/fltk/fltk/releases/download/release-1.3.11/fltk-1.3.11-source.tar.gz

- Download MD5 sum: 75b2fd1aa2433e13abcbb311043eaee0

- Download size: 5.3 MB

- Estimated disk space required: 73 MB

- Estimated build time: 0.2 SBU (Using parallelism=4)

### FLTK Dependencies

#### Required

Xorg Libraries

#### Recommended

hicolor-icon-theme-0.18, libjpeg-turbo-3.2.0, and libpng-1.6.58

#### Optional

alsa-lib-1.2.16.1, desktop-file-utils-0.28, Doxygen-1.17.0, Mesa-26.1.3, and texlive-20250308 (or install-tl-unx)

## Installation of FLTK

### Note

The tar extraction directory is fltk-1.3.11 and not fltk-1.3.11-source as indicated by the tarball name.

Install FLTK by running the following commands:

    sed -i -e '/cat./d' documentation/Makefile &&

    ./configure --prefix=/usr --enable-shared  &&
    make

If you wish to create the API documentation, issue:

    make -C documentation html

The tests for the package are interactive. To execute the tests, run test/unittests. In addition, there are about 70 other executable test programs in the `test` directory that can be run individually.

Now, install the package and remove unneeded static libraries. As the `root` user:

    make docdir=/usr/share/doc/fltk-1.3.11 install &&
    rm -fv /usr/lib/libfltk*.a

If desired, install some example games built as a part of the tests, extra documentation and example programs. As the `root` user:

    make -C test          docdir=/usr/share/doc/fltk-1.3.9 install-linux &&
    make -C documentation docdir=/usr/share/doc/fltk-1.3.9 install-linux

## Command Explanations

sed ... documentation/Makefile: Avoid installing pages in `/usr/share/man/cat*`.

## Contents

Installed Programs: blocks, checkers, fltk-config, fluid, and sudoku
Installed Libraries: libfltk.so, libfltk_forms.so, libfltk_gl.so, and libfltk_images.so
Installed Directories: /usr/include/FL, /usr/share/doc/fltk-1.3.11 (optional)

### Short Descriptions

blocks | is a FLTK-based block elimination game
checkers | is a FLTK-based version of the game of checkers
fltk-config | is a utility script that can be used to get information about the current version of FLTK that is installed on the system
fltk-options | is a graphical configuration utility for FLTK applications
fluid | is an interactive GUI designer for FLTK
sudoku | is an implementation of the popular Sudoku game
`libfltk.so` | contains functions that provide an API to implement graphical user interfaces

- Prev

  colord-gtk-0.3.1

- Next

  Freeglut-3.8.0

- Up
- Home