Home

Awesome

Here you can download a GTK+ 2 bundle (and a few additional libraries) built with Visual Studio 2015. HexChat for Windows is built using this bundle.

GTK+ 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.

<table> <tr> <td>GTK+ bundle</td> <td><a href="https://dl.hexchat.net/gtk-win32/vc14/x86/gtk-Win32.7z">32-bit</a></td> <td><a href="https://dl.hexchat.net/gtk-win32/vc14/x64/gtk-x64.7z">64-bit</a></td> </tr> <tr> <td><a href="https://www.microsoft.com/en-us/download/details.aspx?id=48145">Microsoft Visual C++ Redistributable Package for Visual Studio 2015</a></td> <td>vcredist_x86.exe - 32-bit</a></td> <td>vcredist_x64.exe - 64-bit</a></td> </tr> </table>

These are the libraries in the bundle:

LibraryVersionSource
ATK2.20.0Source
Cairo1.14.6Source
Enchant1.6.1Source
Fontconfig2.8.0Source
FreeType2.6.5Source
GDK-PixBuf2.34.0Source
gettext-runtime0.18Source
GLib2.48.2Source
GObject-Introspection1.48.0Source
GTK+2.24.30Source
HarfBuzz1.3.0Source
lgi0.9.1Source
libffi3.2.1Source
libpng1.6.25Source
libxml22.9.4Source
luajit2.0.4Source
OpenSSL1.0.2hSource
Pango1.40.2Source
Pixman0.34.0Source
win-iconv0.0.8Source
zlib1.2.8Source

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.

  1. Install the following build tools and dependencies:

  2. Follow the instructions on the msys2 page to update the core packages.

  3. Install needed packages in the msys2 shell

    pacman -S gzip nasm patch tar xz
    
  4. Install the following build tools and dependencies:

    • Perl 5.20 x86 or x64 (extract to C:\gtk-build\perl-5.20 so you have C:\gtk-build\perl-5.20\Win32\bin\perl.exe or C:\gtk-build\perl-5.20\x64\bin\perl.exe)
    • msgfmt (extract to C:\gtk-build so you have C:\gtk-build\msgfmt\msgfmt.exe)

    Extract the files with 7-zip, or in the MSYS2 shell with the tar command, eg tar xf perl-5.20.0-x86.tar.xz

  5. Clone this repository to C:\gtk-build\github\gtk-win32 It contains the build script, project files and patches.

  6. 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
    
  7. 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:

    C:\gtk-build\github\gtk-win32\build.ps1
    

    To build the 64-bit bundle instead, run:

    C:\gtk-build\github\gtk-win32\build.ps1 -Configuration x64
    

    The script has some parameters you can pass in. Run

    Get-Help -Full C:\gtk-build\github\gtk-win32\build.ps1
    

    to see the help for the parameters and examples.

  8. When the script is done, your GTK+ stack will be found under C:\gtk-build\gtk. Enjoy!

GTK+ 2 dependency graph