I am trying to run this in linux ubuntu. When I type make it says
rgb_image.cc:26:24: fatal error: libpng/png.h: No such file or directory
#include <libpng/png.h>
Then i followed this to install png.h.
sudo install libpng-dev
But now its telling me
install: missing destination file operand after ‘libpng-dev’
What do I do?
Please help, thanks.
try rather this:
sudo apt-get install libpng-dev
Then maybe go askubuntu.com ;)
For centOS 7 you can try
yum -y install libpng*
With Ubuntu 18, /usr/include/png.h
moved to /usr/include/libpng/png.h
A workaround is this:
ln -s /usr/include/libpng/png.h /usr/include/png.h
Or you can configure your build to use include directory /usr/include/libpng
For Centos 8, I got the below warning message :
Warning: Header file <png.h> not found. This host has no libpng library. Disabling support for PNG framebuffers.
and I solved it using the command :
sudo yum install libpng-devel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With