pyromania 发表于 2004-12-14 20:32:57

编译GTK+时出错

checking for glib-2.0 >= 2.4.0    atk >= 1.0.1    pango >= 1.4.0... Package atk was not found in the pkg-config search path.
Perhaps you should add the directory containing `atk.pc'
to the PKG_CONFIG_PATH environment variable
No package 'atk' found

configure: error: Library requirements (glib-2.0 >= 2.4.0    atk >= 1.0.1    pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
# PKG_CONFIG_PATH
bash: PKG_CONFIG_PATH: command not found
# cd

以上是屏幕打印信息。提示说 glib和atk pango 版本不够
但是我都已经编译安装了最新版本
是不是没有在PKG_CONFIG_PATH上没有加环境变量

不知道哪位高手知道怎么加,怎么编译GTK+

谢谢

黑企鹅 发表于 2004-12-15 13:29:20

http://www.gnome-cn.org/documents/developer_doc/gtk_2_faq/2

看看 faq, 然后确认你安装了所有依赖的软件包。

checking for glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0... Package atk was not found in the pkg-config search path.
Perhaps you should add the directory containing `atk.pc'
》》 说明你没有安装好 atk 包。

PKG_CONFIG_PATH是一个环境变量。 pkg-config 要用的。 man pkg-config 看看
页: [1]
查看完整版本: 编译GTK+时出错