在x64 CentOS上构建Cairo时遇到问题

时间:2010-04-03 06:56:25

标签: linux build 64-bit centos cairo

我已经在32位CentOS上做了很多次,一切都顺利完成了。但是现在,在x64 CentOS上,我无法让cairo找到pixman。

Pixman 0.18.0安装在/ usr / local / lib中(我认为这是通常的位置)。

为Cairo 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吗?搜索路径或类似的东西?

3 个答案:

答案 0 :(得分:4)

  

我有可能看到cairo的配置在哪里寻找pixman吗?

config.log;对我来说,我看到这样的台词:

configure:31597: $PKG_CONFIG --exists --print-errors "$pixman_REQUIRES"
Package pixman-1 was not found in the pkg-config search path.          
Perhaps you should add the directory containing `pixman-1.pc'          
to the PKG_CONFIG_PATH environment variable                            
No package 'pixman-1' found                                            

这使得问题(和解决方案)比./configure的输出更加明显。

为明确起见,我需要确保PKG_CONFIG_PATH包含/usr/local/lib/pkgconfig,因为那是pixman-1.pc所在的地方。

答案 1 :(得分:1)

/usr/local/lib不是通常的地方。 64位库位于某种lib64之下。使用file验证其下的库。

此外,/ usr / local不在大多数路径上,因此您可能还需要使用$LIBDIR

答案 2 :(得分:0)

在Mac上,我的问题是pixman需要安装。只需使用brew安装它就可以了。

brew install pixman
相关问题