views:

459

answers:

2

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

+1  A: 

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
azatoth
I'm on Fedora, `yum install libpng12-dev` doesn't work
TTT
I think on fedora, the package is called `libpng-devel`
azatoth
A: 

If you're on Ubuntu, another much faster solution is to do:

apt-get build-dep gtk+2.0
bratsche