Statically linking GTK+ libraries in windows

2019-01-15 08:39发布

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条回答
贪生不怕死
2楼-- · 2019-01-15 09:24

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.

查看更多
贼婆χ
3楼-- · 2019-01-15 09:25

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.

查看更多
Fickle 薄情
4楼-- · 2019-01-15 09:27

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

查看更多
登录 后发表回答