Here you can download a GTK+ 2 bundle (and a few additional libraries) built with Visual Studio 2013. HexChat for Windows is built using this bundle.
This is the bundle built by us containing all the GTK+ binaries, headers and import libraries. If you just want to use GTK+ for your application and don’t want to build it yourself, download this. You will also need the Visual C++ redistributable to be able to run applications that use this bundle.
|Microsoft Visual C++ Redistributable Package for Visual Studio 2013||vcredist_x86.exe - 32-bit||vcredist_x64.exe - 64-bit|
These are the libraries in the bundle:
Building from Source
If you want to build the bundle from source yourself, we have a PowerShell script that will download the sources, apply some patches and run the build. It is largely based on Fan Chun-wei’s Compiling the GTK+ (and Clutter) stack using Visual C++ 2008 and later.
Install the following build tools and dependencies:
- Visual Studio 2013 Express for Windows Desktop
- Windows Management Framework 4.0 - Not needed for Windows 8.1 and above
- 7-Zip (install to C:\Program Files\7-Zip; do not use the 7z.exe bundled with MozillaBuild)
- CMake 3.0.2
- MozillaBuild 1.10.0
- Perl 5.20 x86 or x64 (extract to C:\mozilla-build\perl-5.20\Win32 or C:\mozilla-build\perl-5.20\x64)
- NASM (extract to C:\mozilla-build\nasm)
- msgfmt (extract to C:\mozilla-build)
- Ragel (extract to C:\mozilla-build)
Clone the gtk-win32 repository to C:\mozilla-build\hexchat\github\gtk-win32 This repository contains the build script, project files and patches.
Now you have to allow PowerShell scripts to be run on your system. Open a PowerShell prompt as Administrator and run the following command:
Now start a new PowerShell window as a regular user. Go to the gtk-win32 directory and start building with the script. For example, to build the 32-bit bundle, run:
cd C:\mozilla-build\hexchat\github\gtk-win32 .\build.ps1
To build the 64-bit bundle instead, run:
cd C:\mozilla-build\hexchat\github\gtk-win32 .\build.ps1 -Configuration x64
The script has some parameters you can pass in. Run
Get-Help -Full .\build.ps1
to see the help for the parameters and examples.
When the script is done, your GTK+ stack will be found under C:\mozilla-build\hexchat\gtk. Enjoy!