2

我在 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?搜索路径或类似的东西?

4

2 回答 2

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生活的地方。

于 2013-02-01T00:34:13.330 回答
1

/usr/local/lib is not the usual place. 64-bit libraries are under lib64 of some sort. Use file 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.

于 2010-04-03T06:57:51.933 回答