Alo*_*kin 4 gtk directfb cairo
我正在尝试安装 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
Run Code Online (Sandbox Code Playgroud)
想法?
谢谢
小智 7
对我来说,它有助于在 shell 中导出以下变量:
export png_REQUIRES="libpng"
Run Code Online (Sandbox Code Playgroud)
您需要安装 libpng 开发包;安装依赖于发行版,但对于 debian 衍生产品,以下应该足够了:
apt-get install libpng12-dev
Run Code Online (Sandbox Code Playgroud)