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 经典出错信息之”Basic XLib functionality test failed!” (2011-10-20 09:34:12)
- 在Fedora16上编译Android4.0.3 (2012-03-24 11:51:32)
- linux apache+fastcgi+php+php-fpm+mysql (2011-09-25 15:15:22)
- ubuntu 11.10 启动vbox报错 libGL.so.1 (2012-04-12 17:02:11)
- 我的ubuntu10.04的编译 skyeye 1.3.4 rc1 之补充新库 (2012-05-09 22:34:59)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 没有报错