gtk-config确实问题的解决

gtk1.1时代使用gtk-config来配置的 gtk+2.0则用pkg-config来配置,所以如果系统默认安装了gtk+2.0将无法编译一些旧的软件

gtk-config属于包libgtk1.2-dev

可以使用以下命令安装

sudo apt-get install libgtk1.2-dev

如果无法安装,则添加一个脚本

sudo nano  /usr/bin/gtk-config

#!/bin/sh
module="gtk+-2.0"
if test "$1" = "--version"; then
        pkg-config --modversion $module
else
        pkg-config $* $module
fi

sudo chmod +x /usr/bin/gtk-config

 搞定

猜你喜欢

转载自yiranwuqing.iteye.com/blog/1450370
gtk