root@ubuntu:/home/zhangbin/code/guicode/gtk-demo-1.2# pkg-config --modversion gtk+
sh: gtk-config: not found
sh: gtk-config: not found
sh: gtk-config: not found
root@ubuntu:/home/zhangbin/code/guicode/gtk-demo-1.2# pkg-config --list-all |grep gtk
gtk+-unix-print-2.0 GTK+ - GTK+ Unix print support
pygtk-2.0 PyGTK - Python bindings for GTK+ and related libraries
gtk+-x11-2.0 GTK+ - GTK+ Graphical UI Library (x11 target)
gtk-engines-2 gtk-engines-2 - GTK+ Theme Engines
pygtksourceview-2.0 PyGtkSourceView - Python bindings for GtkSourceView
gtk+-2.0 GTK+ - GTK+ Graphical UI Library (x11 target)
$pkg-config --modversion gtk+ (查看1.2.x版本)
$pkg-config --modversion gtk+-2.0 (查看 2.x 版本) $pkg-config --version ( 查看pkg-config的版本) $pkg-config --list-all |grep gtk (查看是否安装了gtk) |