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

I am trying to install GTK-DFB, and cairo requirement. When I try to create it from the source, it throws:

checking for cairo PNG functions feature... configure: WARNING: Could not find libpng in the pkg-config search path checking whether cairo PNG functions feature could be enabled... no configure: error: recommended PNG functions feature could not be enabled 

Ideas?

thanks

+4
source share
2 answers

You must have libpng development packages installed; The setting is distribution dependent, but for Debian derivatives, the following should be sufficient:

 apt-get install libpng12-dev 
+4
source

If you are running Ubuntu, you need another much faster solution:

 apt-get build-dep gtk+2.0 
+2
source

Source: https://habr.com/ru/post/1311266/


All Articles