No package 'xcb-xlib' found原因以及解决办法 Qt安装时候遇到libxcb问题

No package 'xcb-xlib' found原因以及解决办法


原文地址:  http://blog.chinaunix.net/uid-21931325-id-2237017.html

 

如果你明明安装了libxcb库,但是在编译libX11时出现一下提示:

 

checking for X11... configure: error: Package requirements (xextproto xtrans xcb-xlib >= 0.9.92) were not met:

 

No package 'xcb-xlib' found

 

Consider adjusting the PKG_CONFIG_PATH environment variable if you

installed software in a non-standard prefix.

 

Alternatively, you may set the environment variables X11_CFLAGS

and X11_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.

 

 

libxcb提供一个 xlib 兼容层,可在 1.992 开始去掉了 libxcb-xlib.so 文件,导致很多程序依赖性得不到满足。

解决办法是使用低版本的libxcb,或者是直接关闭xcb功能,直接使用xlib(即在./configure的时候加--without-xcb参数)。

 

xcb有体积小,效率高等特点,但是不提供 libxcb-xlib.so确实让人费解。

 

 

资料来源及参考:

http://www.linuxidc.com/Linux/2009-10/22052p2.htm

http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml

http://cgit.freedesktop.org/xcb/libxcb/commit/?id=d989656cde2ee7a4a66b2065209ef389495f3452

http://permalink.gmane.org/gmane.linux.lfs.beyond.support/37389

博客推荐文章

 

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

qt configure时候 error libxcb:

the test for linking against libxcb and support libraries failed!
you might need install dependency packages, or pass -qt -xcb

centos

yum install xcb*
相关的都给他装上 在运行./configure 没有报错

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值