Build GTK with Windows SDK

How can I compile gtk (myself) with the Windows SDK?

+7
windows compilation visual-c ++ gtk
source share
3 answers

Building in Visual Studio is still quite a lot. I have done this, but I have no reproducible steps for you right now. However, if you have a Linux machine and want to cross-compile, I wrote instructions on how to build GTK + for Win32 by cross-compiling.

http://live.gnome.org/Cross%20compiling%20GTK%2B%20for%20Win32

It is also possible to build using MSYS on the Windows command line, but it is also a big pain in the ass to get the setup. It is also really, really slow. Cross compiling from Linux is at least ten times faster. I'm not 100% sure, but it seems because if you build using a standard build, then there is a lot of spawning of the process, which is quite expensive in Win32 compared to Linux.

However, if you want to go this way, install MSYS and pull out the source for glib, atk, cairo, pango and gtk + .. then try to build using the standard Linux method: 1 / overclock the source archive 2 / in the source root directory :. / configure 3 / make

Sure, you'll need other dependencies like libpng and libjpeg.

+3
source share

Try building HexChat. They use Visual Studio 2010 and come with some prepared scripts and solutions to make your life a lot easier. Oh, and you get binary downloads as well.

http://gtk.hexchat.org/

+3
source share

GTK can be compiled under Cygwin or Microsoft Visual C ++.

Have you tried this installation method? See the Microsoft Windows section ...

Hope this helps!

+1
source share

All Articles