Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92472
  • 博文数量: 21
  • 博客积分: 548
  • 博客等级: 中士
  • 技术积分: 290
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-01 12:11
文章分类

全部博文(21)

文章存档

2012年(12)

2011年(9)

我的朋友

分类: 嵌入式

2011-08-19 16:16:27

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


如果你明明安装了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确实让人费解。


资料来源及参考:
阅读(4158) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~