Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 334
Alon Gubkin Avatar asked Jan 22 '23 00:01

Alon Gubkin


1 Answers

For me it helped to export the following variable in the shell:

export png_REQUIRES="libpng"

Credit to this post

like image 165
AS1 Avatar answered Feb 01 '23 14:02

AS1