I have installed GCC and GTK+. Its working fine, but i need to statically link GTK+ libraries with my application (it's a small application) so that there exist only one '.exe'.
3 Answers
It is supported with a few minor issues (like having trouble finding configuration files), but you will have to compile GTK+ yourself! (the default binaries do not include static libraries)
See this mailing-list thread for more information on this issue.
-
No, it is not. Read the full thread you linked, expecially the Tor Lillqvist comments (mantainer of the windows port).– ntdMar 13, 2010 at 21:55
-
2Tor points to two issues: Gtk+ finding 2. its message catalogs, and 1. its configuration files. To avoid configuration files, you can hard-code your configuration in the program, with calls to gtk_rc_parse_string. For the message catalogs, you can ship with them if you accept to loose internationalization. So, while not a perfect solution, it can be hacked.– F'xMar 13, 2010 at 23:21
-
These are not little issues and the thread was pure theoretical discussion. Anyway with the current GTK+ codebase (and this includes the build system) it is not possible. Otherwise, please, point me out to a single application linked against a GTK+ static library.– ntdMar 14, 2010 at 10:43
-
I have built some statically-linked, relocatable apps on my mac (against Gtk+-2.10, without i18n). It requires hacking, but it is not impossible.– F'xMar 14, 2010 at 14:02
-
3In maths, proofs of inexistence are sometimes easier than proofs of existence. In real life, though...– F'xMar 14, 2010 at 14:03
The correct answer would be two words: not supported
. Really, if you want to distribute your application, being it 2 or 100000 lines, just bind a copy of GTK+ with it.