在 x64 CentOS 上构建 Cairo 时遇到问题
我已经在 32 位 CentOS 上多次执行此操作,一切都很顺利。但现在,在 x64 CentOS 上,我无法让 cairo 找到 pixman。
Pixman 0.18.0 安装在 /usr/local/lib (我相信这是通常的位置)。
配置开罗 1.8.10 找不到它:
checking for cairo's image surface backend feature...
checking for pixman... no
no
checking whether cairo's image surface backend feature could be enabled... no (requires pixman-1 >= 0.12.0 http://cairographics.org/releases/)
configure: error: mandatory image surface backend feature could not be enabled
我尝试设置环境变量 pixman_LIBS=/usr/local/lib 但没有任何运气。
知道出了什么问题吗?我可以看看 cairo 的配置在哪里寻找 pixman 吗?搜索路径或类似的东西?
I've done this many times on 32 bit CentOS and everything went ok without a hitch. But now, on x64 CentOS, I can't get cairo to find pixman.
Pixman 0.18.0 is installed in /usr/local/lib (which I believe is the usual location).
Configure for Cairo 1.8.10 can't find it:
checking for cairo's image surface backend feature...
checking for pixman... no
no
checking whether cairo's image surface backend feature could be enabled... no (requires pixman-1 >= 0.12.0 http://cairographics.org/releases/)
configure: error: mandatory image surface backend feature could not be enabled
I've tried setting environment variable pixman_LIBS=/usr/local/lib but wihtout any luck.
Any idea what is going wrong? Is it possible for me to see where is cairo's configure looking for pixman? Search paths or something like that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看
config.log
;对我来说,我看到了这样的行:这使得问题(和解决方案)比
./configure
的输出更加明显。明确地说,我需要确保
PKG_CONFIG_PATH
包含/usr/local/lib/pkgconfig
,因为那是pixman-1.pc
住过。Look at
config.log
; for me, I saw lines like this:Which made the problem (and solution) much more obvious than just the output of
./configure
.To be explicit, I needed to make sure the
PKG_CONFIG_PATH
included/usr/local/lib/pkgconfig
, since that's wherepixman-1.pc
lived./usr/local/lib
不是通常的地方。 64 位库位于某种lib64
下。使用file
验证下面的库。此外,/usr/local 不在大多数路径上,因此您可能还需要使用
$LIBDIR
。/usr/local/lib
is not the usual place. 64-bit libraries are underlib64
of some sort. Usefile
to verify the libraries under there.Also, /usr/local is not on most of the paths, so you may need to use
$LIBDIR
as well.