在pkg-config搜索路径上找不到libpng


3

从源代码构建cairo 1.2.6时,我收到以下错误:

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

但是我刚刚用以下内容构建了libpng:

wget ftp://ftp.simplesystems.org/pub/png/src/libpng16/libpng-1.6.7.tar.gz
tar -xzf libpng-1.6.7.tar.gz
cd libpng-1.6.7
configure --prefix=/users/$USER
make 
make install

pkg-config看起来可以找到libpng:

$ pkg-config --modversion libpng
1.6.7

命令我正在运行cairo build / install:

wget http://cairographics.org/releases/cairo-1.2.6.tar.gz
tar -xzf cairo-1.2.6.tar.gz
cd cairo-1.2.6
configure --prefix=/users/$USER

在RHEL5上以用户身份(不是root / no sudo)运行,所有命令都从tcsh终端运行。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.