代码之家  ›  专栏  ›  技术社区  ›  Vnuk

在x64 centos上构建cairo时遇到问题

  •  2
  • Vnuk  · 技术社区  · 14 年前

    我在32位centos上做了很多次,一切都顺利。但现在,在64世纪,我不能让开罗找到皮克斯曼。

    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 回复  |  直到 9 年前
        1
  •  1
  •   Ignacio Vazquez-Abrams    14 年前

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

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

        2
  •  4
  •   Xiong Chiamiov    12 年前

    我能看看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 生活。

        3
  •  0
  •   Mogsdad    9 年前

    在Mac上,我的问题是需要安装Pixman。刚用brew安装了它,它就成功了。

    brew install pixman