Currently, Gtk must be obtained manually on windows. Hopefully this can be automated down the line.
The easiest way to get started on Windows is by installing gtk through msys2.
- Download msys2 from the official website.
- Run
pacman -Syu
to update the package database. - Run
pacman -S mingw-w64-x86_64-gtk3
to install gtk3. - Add the directory
C:/msys64/mingw64/bin
to your PATH.
Then, follow the gir.core instructions as normal.
In order to obtain other libraries (e.g. libhandy), use the MSYS2 Package Database to find the desired library.
For example, libhandy can be found in mingw-w64-libhandy
. Unfortunately,
not all libraries in gir.core have msys2 packages at the moment.
Gtk can also be built with the MSVC toolchain, although this is less straightforward. Look at gvs-build for a build script that automates this process.
The DLL could not be found. Make sure it is in your PATH and try again. Try
adding C:/msys64/mingw64/bin
at the front of your PATH if you have other
Gtk applications installed - this prevents the wrong version of the Gtk DLL
being loaded by the bindings.
For example, in PowerShell:
PS> $env:PATH = "C:\msys64\mingw64\bin;${env:PATH}"