Setting up GTK for GNU/Linux and Unix
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:
Dependency | Source |
---|---|
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
Distribution | Binary package | Development package | Additional packages |
---|---|---|---|
Arch | gtk4 | - | - |
Debian/Ubuntu | libgtk-4-1 | libgtk-4-dev | gtk-4-examples |
Fedora | gtk4 | gtk4-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
Distribution | Binary package | Development package | Additional packages |
---|---|---|---|
Arch | gtk3 | - | - |
Debian/Ubuntu | libgtk-3-0 | libgtk-3-dev | gtk-3-examples |
Fedora | gtk3 | gtk3-devel | - |
GTK v3.x
Version | Packages |
---|---|
GTK 3.24 | Sources |