FLTK - Fast Light Tool Kit - https://github.com/fltk/fltk - cross platform GUI development
Go to file
2025-05-30 21:38:13 +02:00
.github Simplify CMake build config for test and demo programs 2025-05-08 21:34:13 +02:00
CMake Fix usage of FLTK_BACKEND_WAYLAND and FLTK_USE_WAYLAND 2025-05-28 21:13:10 +02:00
documentation Update bundled libdecor to last upstream version (May 14, 2025) 2025-05-21 17:57:38 +02:00
examples Remove libfltk_cairo (fltk::cairo) 2025-03-16 00:10:53 +01:00
FL Fl_Window::free_position() must not be deprecated 2025-05-14 19:05:04 +02:00
fltk-options Fix "fully support ... own shared libraries" (#1238) 2025-04-21 19:50:12 +02:00
fluid Remove hardcoded version numbers (part 2) and more documentation 2025-05-07 21:21:35 +02:00
GL
jpeg Remove autotools (configure/make) support 2025-03-06 17:12:52 +01:00
lib Remove 'configure' from README's and sources (partially) 2025-03-08 15:19:48 +01:00
libdecor Update bundled libdecor to last upstream version (May 14, 2025) 2025-05-21 17:57:38 +02:00
misc Add more documentation about ABI checking and a script to do it 2025-05-11 22:16:16 +02:00
nanosvg Update nanosvg/README.txt to reflect recent changes 2023-12-02 23:42:16 +01:00
package Enable CPack support to build binary packages and installers 2025-05-24 15:42:47 +02:00
png Remove autotools (configure/make) support 2025-03-06 17:12:52 +01:00
public
src Fix for #1260 - part 4: fix when menu button is in subwindow under Wayland 2025-05-30 21:38:13 +02:00
test Simplify CMake build config for test and demo programs 2025-05-08 21:34:13 +02:00
util Move src/cmap.cxx to util/cmap.cxx (utilities folder) 2022-03-27 17:05:55 +02:00
zlib Remove autotools (configure/make) support 2025-03-06 17:12:52 +01:00
.clang-format Update .clang-format control file 2022-03-31 15:57:10 +02:00
.gitattributes Remove experimental platforms Android, Pico, SDL (PR #376) 2022-01-23 18:12:47 +01:00
.gitignore Update .gitignore: remove configure stuff 2025-03-08 17:19:32 +01:00
.gitlab-ci.yml Update GitLab CI for FLTK 1.5.0 2025-03-07 23:31:14 +01:00
ANNOUNCEMENT Update version numbers to 1.5.0 2025-03-06 18:16:03 +01:00
CHANGES_1.0.txt
CHANGES_1.1.txt
CHANGES_1.3.txt Update ANNOUNCEMENT and CHANGES files for release 1.4.0 2024-10-20 19:40:02 +02:00
CHANGES_1.4.txt Update version numbers to 1.5.0 2025-03-06 18:16:03 +01:00
CHANGES.txt Add new CHANGES.txt for FLTK 1.5 2025-03-06 18:16:38 +01:00
CMakeLists.txt Fix usage of FLTK_BACKEND_WAYLAND and FLTK_USE_WAYLAND 2025-05-28 21:13:10 +02:00
config.h.in Rename config header input files to better names 2025-05-05 14:52:02 +02:00
COPYING
CREDITS.txt Finish release 1.4.0 2024-11-17 20:01:46 +01:00
fl_config.h.in Remove hardcoded version numbers: part 1 2025-05-06 19:25:53 +02:00
fltk_version.dat Update version numbers to 1.5.0 2025-03-06 18:16:03 +01:00
fltk-config.in Update fltk-config.in (minor comment changes only) 2025-03-27 16:14:29 +01:00
fltk.xpm Make remaining 'XPM' images 'const' 2024-10-20 17:00:16 +02:00
forms.h
mac_endianness.h
makesrcdist Update makesrcdist to reflect packaging (CPack) and more 2025-05-24 15:44:48 +02:00
README.abi-version.txt Add more documentation about ABI checking and a script to do it 2025-05-11 22:16:16 +02:00
README.Cairo.txt Update two README files for 1.5.0 2025-03-08 16:14:55 +01:00
README.CMake.txt Remove hardcoded version numbers: part 1 2025-05-06 19:25:53 +02:00
README.CPack.txt Enable CPack support to build binary packages and installers 2025-05-24 15:42:47 +02:00
README.documentation.txt Update README and configure related stuff for 1.5.0 2025-03-08 17:10:32 +01:00
README.experimental.txt Remove experimental platforms Android, Pico, SDL (PR #376) 2022-01-23 18:12:47 +01:00
README.IDE.txt Remove experimental platforms Android, Pico, SDL (PR #376) 2022-01-23 18:12:47 +01:00
README.macOS.md Upadate macOS README. 2025-03-24 11:26:34 +01:00
README.md Fix a typo and improve formatting in README.md 2025-05-06 20:11:31 +02:00
README.txt More (mostly) documentation updates for FLTK 1.5.0 2025-03-10 15:43:12 +01:00
README.Unix.txt Update more README files for 1.5.0 2025-03-08 19:11:42 +01:00
README.Wayland.txt Remove libfltk_cairo (fltk::cairo) 2025-03-16 00:10:53 +01:00
README.Windows.txt Update README.Windows.txt 2024-12-07 19:12:35 +01:00

README - Fast Light Tool Kit (FLTK) Version 1.5.0

What is FLTK?

The Fast Light Tool Kit (FLTK) is a cross-platform C++ GUI toolkit for UNIX®/Linux® (X11 or Wayland), Microsoft® Windows®, and macOS®. FLTK provides modern GUI functionality without bloat and supports 3D graphics via OpenGL® and its built-in GLUT emulation. It was originally developed by Mr. Bill Spitzak and is currently maintained by a small group of developers across the world with a central repository on GitHub.

https://www.fltk.org/ https://github.com/fltk/fltk/

Licensing

FLTK comes with complete free source code. FLTK is available under the terms of the GNU Library General Public License with exceptions (e.g. for static linking). Contrary to popular belief, it can be used in commercial software! (Even Bill Gates could use it.)

Online Documentation

The documentation in HTML and PDF forms can be created by Doxygen from the source files. HTML and PDF versions of this documentation are also available from the FLTK web site at:

https://www.fltk.org/documentation.php

Prerequisites for Building FLTK

To build FLTK 1.5 and higher you need:

  • CMake
  • a C++11 capable compiler, e.g. gcc, clang, Visual Studio, Xcode
  • system specific build files (headers, SDK, etc.)

CMake is used to generate the build environment on your system. It can create build environments for a lot of different build tools, please see the CMake documentation for more info.

Since FLTK 1.5 we use C++11 features and you need at least a C++11 capable compiler running in C++11 mode. The minimal C++ standard used for building FLTK and your application may be raised in future versions.

The required header files etc. (build environment or SDK) vary across platforms and are described in platform specific README.* files, e.g. on Unix/Linux systems these are typically provided by the package manager.

Building and Installing FLTK With CMake (Commandline)

On systems where a commandline CMake utility is available (this is the case even on Windows), the commands to build FLTK using CMake can be as easy as:

cd /path/to/fltk
cmake . -B build [ options ]
cmake --build build

These commands create the build folder 'build' inside your source tree, build the library and all test programs.

After successful tests you may install the library with the following command or a similar one, but please be aware that this will install FLTK in a system directory for system-wide use if you don't change the default installation path. We don't recommend this unless you know what you're doing.

sudo cmake --install build  # from the source tree (with CMake)

or

sudo make install           # from the build folder (with make)

Other commands (e.g. make or ninja) may be used as well after the initial cmake command, depending on the CMake generator you used.

For more info on using CMake to build FLTK please see README.CMake.txt.

Building HTML Documentation

FLTK uses Doxygen for documentation, so you'll at least need doxygen installed for creating html docs, and additionally LaTeX for creating PDF documentation.

If you want to build the documentation, change directory to your build folder, for instance

cd /path/to/fltk/build

To build the HTML or PDF documentation, use these CMake commands:

cmake --build . --target html
cmake --build . --target pdf

Note: instead of using the generic CMake commands above you can also use equivalent commands of your build system, e.g. make html or ninja pdf, respectively.

Note: more about building Fluid documentation to be added.

Internet Resources

FLTK is available on the internet in a bunch of locations:

Note that we don't provide pre-compiled (binary) distributions. Consult the package manager of your (Linux, Unix, macOS) operating system.

General Questions

To join the FLTK mailing list, go to the following web page:

https://groups.google.com/forum/#!forum/fltkgeneral

You can find detailed instructions on how you can register for the mailing list (even w/o a Google account) at the bottom of this page:

https://www.fltk.org/newsgroups.php

Since July 2024 we offer GitHub Discussions on our GitHub project page. Use the 'Q&A' section for general questions on building and using FLTK.

https://github.com/fltk/fltk/discussions/categories/q-a

Reporting Bugs

If you are new to FLTK, or have general questions about how to use FLTK, or aren't sure if you found a bug, please ask first on the fltk.general group forum at:

https://groups.google.com/forum/#!forum/fltkgeneral

or on GitHub Discussions (Q&A) as noted above:

https://github.com/fltk/fltk/discussions/categories/q-a

See also paragraph "General Questions" above for more info.

If you are sure you found a bug, please see the following page for further information on how to report a bug:

https://www.fltk.org/bugs.php

Trademarks

  • Microsoft and Windows are registered trademarks of Microsoft Corporation
  • UNIX is a registered trademark of the X/Open Group, Inc.
  • OpenGL is a registered trademark of Silicon Graphics, Inc.
  • macOS is a registered trademark of Apple Computers, Inc.

FLTK is copyright 1998-2025 by Bill Spitzak and others, see the CREDITS.txt file for more info.

This library is free software. Distribution and use rights are outlined in the file "COPYING" which should have been included with this file. If this file is missing or damaged, see the license at:

https://www.fltk.org/COPYING.php

Further Information

For more information see README.txt: https://github.com/fltk/fltk/blob/master/README.txt

Build

Build FLUID User Manual.