Search code examples
gtkcairodirectfb

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


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


Solution

  • 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