Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sineaggi/gtk-win32

 
 

Repository files navigation

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.

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.

GTK+ bundle 32-bit 64-bit
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:

ATK 2.18.0 Source
Cairo 1.14.4 Source
Enchant 1.6.0 Source
Fontconfig 2.11.1 Source
FreeType 2.6 Source
GDK-PixBuf 2.32.1 Source
gettext-runtime 0.18 Source
GLib 2.46.2 Source
GTK+ 2.24.28 Source
GTK+ 3 3.18.5 Source
HarfBuzz 0.9.41 Source
libffi 3.2.1 Source
libpng 1.6.17 Source
libxml2 2.9.2 Source
OpenSSL 1.0.2d Source
Pango 1.38.0 Source
Pixman 0.32.6 Source
win-iconv 0.0.6 Source
zlib 1.2.8 Source
libdb 5.3.28 Source
cyrus-sasl 2.1.27 Source
libepoxy 1.3.1 Source
gsettings-desktop-schemas 3.18.1 Source
glib-networking 2.46.2 Source
libsoup 2.52.1 Source
ffmpeg 2.8.1 Source
lmdb 0.9.15 Source

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 gettext make coreutils
  4. Clone this repository to C:\gtk-build\github\gtk-win32 It contains the build script, project files and patches.

  5. 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
  6. 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:\gtk-build\github\gtk-win32
    .\build.ps1

    To build the 64-bit bundle instead, run:

    cd C:\gtk-build\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.

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

GTK+ 2 dependency graph

About

GTK+ 3 stack for Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 35.9%
  • C 28.3%
  • C++ 14.9%
  • PowerShell 11.8%
  • Perl 4.5%
  • Makefile 4.2%
  • Other 0.4%