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)
- CMake 3.0.2
- msys2 use pacman to install base-devel and mingw-w64-x86_64-toolchain
- Perl 5.20 x86 or x64 (extract to C:\gtk-build\perl-5.20\Win32 or C:\gtk-build\perl-5.20\x64) - Really needed?
- NASM (extract to C:\gtk-build\nasm) - Really needed?
- msgfmt (extract to C:\gtk-build) - Really needed?
- Ragel (extract to C:\gtk-build) - Needed for harfbuzz
- Python 2.7 (install in C:\Python27)
-
Clone the gtk-win32 repository to C:\gtk-build\gtk\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:
Set-ExecutionPolicy RemoteSigned
- Now start a new PowerShell window as a regular user. Go to the gtk-win32 directory and start building with the script:
- To build the 32-bit bundle, run:
cd C:\gtk-build\hexchat\github\gtk-win32
.\build.ps1
- To build the 64-bit bundle, run:
cd C:\gtk-build\hexchat\github\gtk-win32
.\build.ps1 -Configuration x64
- When the script is done, your GTK+ stack will be found under C:\gtk-build\gtk\gtk. Enjoy!