QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 718|回复: 6

请教GTK+安装问题

[复制链接]
发表于 2004-11-8 02:52:41 | 显示全部楼层 |阅读模式
请教一个问题,我想升级gtk到2.5.4,已经成功的安装了atk-1.7.3,glib-2.5.5,pango-1.6.0但是,./configure的时候,却有错误提示如下:
configure: error: Library requirements (glib-2.0 >= 2.5.4 atk >= 1.0.1 pango >= 1.5.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
请问这是怎么回事?
发表于 2004-11-8 03:12:27 | 显示全部楼层
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=89965
回复

使用道具 举报

 楼主| 发表于 2004-11-8 03:18:40 | 显示全部楼层
[quote:7285652cb5=""]http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=89965[/quote] 谢谢,不过那篇帖子我看过了,我和那位朋友的情况有些不一样,我是atk,pango,glib都安装成功了,唯独gtk安装失败,提示那个错误信息
回复

使用道具 举报

发表于 2004-11-8 03:27:26 | 显示全部楼层
我觉得应该是一样的
都是PKG_CONFIG找不到文件
你也许可以直接
(假设pango目录为/opt/pango ,atk为/opt/atk......)
对pango可以
export CFLAGS=-I/opt/pango/include
export CPPFLAGS=$CFLAGS
export LDFLAGS=-L/opt/pango/lib

atk与上相似,把pango改成atk就行,glib也一样.
你可以试试,反正又不会坏
回复

使用道具 举报

发表于 2004-11-8 03:29:10 | 显示全部楼层
我也正在装gtk-2.4
郁闷的很,总是出错,现在信息是这样
error: Pango 1.2.0 and Xft backend is required for x11 target

    
回复

使用道具 举报

 楼主| 发表于 2004-11-8 03:48:04 | 显示全部楼层
[quote:d335b49fb9=""]我觉得应该是一样的
都是PKG_CONFIG找不到文件
你也许可以直接
(假设pango目录为/opt/pango ,atk为/opt/atk......)
对pango可以
export CFLAGS=-I/opt/pango/include
export CPPFLAGS=$CFLAGS
export LDFLAGS=-L/opt/pango/lib

atk与上相似,把pango改成atk就行,glib也一样.
你可以试试,反正又不会坏[/quote]谢谢,我想试试你说的方法,不过还有一个比较初级的问题,就是如何确定我的glib等都安装在什么位置了?比如说,我用rpm -ql glib命令,得到的结果如下,我怎么确定到底是哪一个?还有就是rpm -ql atk说atk没有安装,但是事实上我是安装了,那又怎么确定atk的安装路径?多谢

[cashlu@cash cashlu]$ rpm -ql glib
/usr/lib/libglib-2.0.so.0.505.0
/usr/lib/libgmodule-2.0.so.0.505.0
/usr/lib/libgobject-2.0.so.0.505.0
/usr/lib/libgthread-2.0.so.0.505.0
/usr/share/doc/glib-2.5.5
/usr/share/doc/glib-2.5.5/AUTHORS.gz
/usr/share/doc/glib-2.5.5/ChangeLog.gz
/usr/share/doc/glib-2.5.5/NEWS.gz
/usr/share/doc/glib-2.5.5/README.gz
/usr/share/locale/am/LC_MESSAGES/glib20.mo
/usr/share/locale/ar/LC_MESSAGES/glib20.mo
/usr/share/locale/az/LC_MESSAGES/glib20.mo
/usr/share/locale/be/LC_MESSAGES/glib20.mo
/usr/share/locale/bg/LC_MESSAGES/glib20.mo
/usr/share/locale/bn/LC_MESSAGES/glib20.mo
/usr/share/locale/bs/LC_MESSAGES/glib20.mo
/usr/share/locale/ca/LC_MESSAGES/glib20.mo
/usr/share/locale/cs/LC_MESSAGES/glib20.mo
/usr/share/locale/cy/LC_MESSAGES/glib20.mo
/usr/share/locale/da/LC_MESSAGES/glib20.mo
/usr/share/locale/de/LC_MESSAGES/glib20.mo
/usr/share/locale/el/LC_MESSAGES/glib20.mo
/usr/share/locale/en_CA/LC_MESSAGES/glib20.mo
/usr/share/locale/en_GB/LC_MESSAGES/glib20.mo
/usr/share/locale/eo/LC_MESSAGES/glib20.mo
/usr/share/locale/es/LC_MESSAGES/glib20.mo
/usr/share/locale/et/LC_MESSAGES/glib20.mo
/usr/share/locale/eu/LC_MESSAGES/glib20.mo
/usr/share/locale/fa/LC_MESSAGES/glib20.mo
/usr/share/locale/fi/LC_MESSAGES/glib20.mo
/usr/share/locale/fr/LC_MESSAGES/glib20.mo
/usr/share/locale/ga/LC_MESSAGES/glib20.mo
/usr/share/locale/gl/LC_MESSAGES/glib20.mo
/usr/share/locale/gu/LC_MESSAGES/glib20.mo
/usr/share/locale/he/LC_MESSAGES/glib20.mo
/usr/share/locale/hi/LC_MESSAGES/glib20.mo
/usr/share/locale/hr/LC_MESSAGES/glib20.mo
/usr/share/locale/id/LC_MESSAGES/glib20.mo
/usr/share/locale/is/LC_MESSAGES/glib20.mo
/usr/share/locale/it/LC_MESSAGES/glib20.mo
/usr/share/locale/ja/LC_MESSAGES/glib20.mo
/usr/share/locale/ko/LC_MESSAGES/glib20.mo
/usr/share/locale/lt/LC_MESSAGES/glib20.mo
/usr/share/locale/lv/LC_MESSAGES/glib20.mo
/usr/share/locale/mk/LC_MESSAGES/glib20.mo
/usr/share/locale/mn/LC_MESSAGES/glib20.mo
/usr/share/locale/ms/LC_MESSAGES/glib20.mo
/usr/share/locale/ne/LC_MESSAGES/glib20.mo
/usr/share/locale/nl/LC_MESSAGES/glib20.mo
/usr/share/locale/nn/LC_MESSAGES/glib20.mo
/usr/share/locale/no/LC_MESSAGES/glib20.mo
/usr/share/locale/or/LC_MESSAGES/glib20.mo
/usr/share/locale/pa/LC_MESSAGES/glib20.mo
/usr/share/locale/pl/LC_MESSAGES/glib20.mo
/usr/share/locale/pt/LC_MESSAGES/glib20.mo
/usr/share/locale/pt_BR/LC_MESSAGES/glib20.mo
/usr/share/locale/ro/LC_MESSAGES/glib20.mo
/usr/share/locale/ru/LC_MESSAGES/glib20.mo
/usr/share/locale/sk/LC_MESSAGES/glib20.mo
/usr/share/locale/sl/LC_MESSAGES/glib20.mo
/usr/share/locale/sq/LC_MESSAGES/glib20.mo
/usr/share/locale/sr/LC_MESSAGES/glib20.mo
/usr/share/locale/sr@Latn/LC_MESSAGES/glib20.mo
/usr/share/locale/sr@ije/LC_MESSAGES/glib20.mo
/usr/share/locale/sv/LC_MESSAGES/glib20.mo
/usr/share/locale/ta/LC_MESSAGES/glib20.mo
/usr/share/locale/tr/LC_MESSAGES/glib20.mo
/usr/share/locale/uk/LC_MESSAGES/glib20.mo
/usr/share/locale/vi/LC_MESSAGES/glib20.mo
/usr/share/locale/wa/LC_MESSAGES/glib20.mo
/usr/share/locale/yi/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_CN/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_TW/LC_MESSAGES/glib20.mo
[cashlu@cash cashlu]$
回复

使用道具 举报

发表于 2004-11-8 04:21:20 | 显示全部楼层
对不起,这我就不知道了.
我用的是tar.gz包编译安装的
至于要查rpm包会安到什么目录下,好像是
rpm -pql | grip rpm包的名字(当前目录)

但是export CFLAGS=-I/...命令要怎么用就不知道了... :-(  
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-15 12:06 , Processed in 0.047042 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表