开发者

How do I find what GTK version is installed on Solaris?

How do I find what version of开发者_JS百科 GTK I have installed on a Solaris box?


Find the header gtkversion.h and look what it defines:

$ grep "#define GTK_M.*_VERSION" /usr/include/gtk-2.0/gtk/*
/usr/include/gtk-2.0/gtk/gtkversion.h:#define GTK_MAJOR_VERSION           (2)
/usr/include/gtk-2.0/gtk/gtkversion.h:#define GTK_MINOR_VERSION           (18)
/usr/include/gtk-2.0/gtk/gtkversion.h:#define GTK_MICRO_VERSION           (3)
$

(where I've edited away some whitespace).


I would look at the "pkg-config -modversion" command. If you happen to have the (quite old at this point) gtk+ 1.2, there also used to be a gtk-config command as well.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜