Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Statically linking GTK+ libraries in windows

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'.

like image 928
Khan Avatar asked Dec 09 '09 18:12

Khan


3 Answers

mingw-cross-env has fixes to build gtk and all related libs statically

like image 178
Martin Gerhardy Avatar answered Nov 05 '22 14:11

Martin Gerhardy


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.

like image 5
F'x Avatar answered Nov 05 '22 14:11

F'x


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.

like image 4
ntd Avatar answered Nov 05 '22 14:11

ntd