开发者

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

开发者 https://www.devze.com 2022-12-13 10:56 出处:网络
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:

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

精彩评论

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