Cairo "Could not find libpng in the pkg-config search path"

Alon Gubkin picture Alon Gubkin · May 29, 2010 · Viewed 11.5k times · Source

I'm trying to install GTK-DFB and cairo is a requirement. When I try to build it from source, it throws:

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

Ideas?

Thanks

Answer

azatoth picture azatoth · May 29, 2010

You need to have the libpng development packages installed; Installation is distribution dependent, but for debian derivatives following should be enough:

apt-get install libpng12-dev