Setting up GTK for GNU/Linux and Unix

GTK and Linux

In order to install GTK for GNU/Linux and Unix systems, you will need to get the GLib, GObject-Introspection, Pango, Gdk-Pixbuf, ATK and GTK packages to build GTK. To read more about these packages, please refer to the Architecture.

Stable version

To build an environment for GTK, install all the dependencies listed below:

DependencySource
GTK
GLib
Pango
Gdk-pixbuf
ATK
GObject-Introspection
Epoxy

The current stable API version of GTK is 4.0.

Building from source

To build GTK, see the installation guide.

For additional help, the frequently asked questions page is a good starting point.

Installing GTK from packages

DistributionBinary packageDevelopment packageAdditional packages
Archgtk4--
Debian/Ubuntulibgtk-4-1libgtk-4-devgtk-4-examples
Fedoragtk4gtk4-devel-

Development version

To build the latest development version of GTK you can use a tool like JHBuild, or you can rely on meson which will download and build many of the required dependencies as subprojects, if they are not available on your system.

Older Versions

Many applications still use GTK 3, an older stable version of GTK. You can have the run-time and development environments for GTK 4.x and GTK 3.x installed simultaneously on your computer.

Installing GTK3 from packages

DistributionBinary packageDevelopment packageAdditional packages
Archgtk3--
Debian/Ubuntulibgtk-3-0libgtk-3-devgtk-3-examples
Fedoragtk3gtk3-devel-

GTK v3.x

VersionPackages
GTK 3.24Sources
Observed a typo or some missing information, edit this page.
Read on how to contribute to this website.