【问题标题】:Cairo "Could not find libpng in the pkg-config search path"Cairo“在 pkg-config 搜索路径中找不到 libpng”
【发布时间】:2010-05-29 00:19:24
【问题描述】:

我正在尝试安装 GTK-DFB,cairo 是必需的。当我尝试从源代码构建它时,它会抛出:

checking for cairo's PNG functions feature... 
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG functions feature could be enabled... no
configure: error: recommended PNG functions feature could not be enabled

想法?

谢谢

【问题讨论】:

    标签: gtk cairo directfb


    【解决方案1】:

    您需要安装 libpng 开发包;安装依赖于发行版,但对于 debian 衍生产品,以下就足够了:

    apt-get install libpng12-dev
    

    【讨论】:

    • 我想在fedora上,这个包叫libpng-devel
    【解决方案2】:

    如果您使用的是 Ubuntu,另一个更快的解决方案是:

    apt-get build-dep gtk+2.0
    

    【讨论】:

      【解决方案3】:

      对我来说,它有助于在 shell 中导出以下变量:

      export png_REQUIRES="libpng"
      

      Credit to this post

      【讨论】:

      • 我必须导出 png_REQUIRES="libpng16"
      猜你喜欢
      • 2014-09-09
      • 1970-01-01
      • 1970-01-01
      • 2021-04-15
      • 2016-11-07
      • 2013-02-25
      • 1970-01-01
      • 2014-04-01
      • 2014-10-27
      相关资源
      最近更新 更多