开发者

Build GTK with Windows SDK

how can I compile gtk (itself开发者_如何学Python) with Windows SDK ?


Building in Visual Studio is still quite a lot of work. I've done it, but I don't have reproducible steps for you right now. However, if you have a Linux machine around and are willing to cross-compile I have written up directions on how to build GTK+ for Win32 by cross-compiling.

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

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

However, if you want to go this way then install MSYS and pull down the source for glib, atk, cairo, pango, and gtk+.. then try to build using the standard Linux way: 1/ untar the source tarball 2/ in the source's root directory do: ./configure 3/ make

There will undoubtedly be other dependencies that you need to install, such as libpng and libjpeg.


Try the HexChat builds. They use Visual Studio 2010 and come with some prepared scripts and solutions to make your life much easier. Oh and you get binary downloads as well.

http://gtk.hexchat.org/


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

Did you try this installation method? Look the Microsoft Windows section...

Hope it helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜