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

发布于 2024-08-27 18:04:15 字数 610 浏览 16 评论 0原文

我已经在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

白日梦 2024-09-03 18:04:15

我可以看看 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住过。

Is it possible for me to see where is cairo's configure looking for pixman?

Look at config.log; for me, I saw lines like this:

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                                            

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 where pixman-1.pc lived.

酒废 2024-09-03 18:04:15

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

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

/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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文