-
gtk-fortran 4.2.1 offers interfaces to GTK 4.6.2 and GLib 2.72.1. It was tested on Linux, MSYS2/Windows 10, macOS and FreeBSD.
-
It can now be installed via conda (Linux and macOS only):
$ conda install gtk-4-fortran
- Last but not the least, gtk-fortran can now be used very simply as a fpm ( Fortran Package Manager) dependency, as explained in the tutorial 5 “How to use fpm to build a gtk-fortran project”, based on the gtkzero_fpm example. Supposing you have already installed fpm, building and running that example should be as simple as typing:
$ git clone git@github.com:vmagnin/gtkzero_fpm.git
$ cd gtkzero_fpm
$ fpm run
A “Hello World” GTK empty window should appear on screen.
It’s very simple to use, the key lines in the fpm.toml
manifest of that example being just:
[dependencies]
gtk-fortran = { git = "https://github.com/vmagnin/gtk-fortran.git", branch = "gtk4" }
Note that if you have several projects using gtk-fortran, it would be a better solution to clone the gtk-fortran repository alongside your projects and replace in their fpm.toml
manifests the git dependency by the local path to gtk-fortran:
[dependencies]
gtk-fortran = { path = "../gtk-fortran" }