Answer the question
In order to leave comments, you need to log in
Why does every makefile throw errors?
Good morning, afternoon, evening, night to you. I'm trying to compile the png++ examples, I run make, and I get errors:
make: libpng-config: Command not found
make: libpng-config: Command not found
make -C example
make[1]: Entering directory '/home/nikita/Desktop/png++/png++-0.2.9/example'
make[1 ]: libpng-config: Command not found
make[1]: libpng-config: Command not found
g++ pixel_generator.cpp -o pixel_generator
pixel_generator.cpp:35:19: fatal error: png.hpp: No such file or directory
compilation terminated .
: recipe for target 'pixel_generator' failed
make[1]: *** [pixel_generator] Error 1
make[1]: Leaving directory '/home/nikita/Desktop/png++/png++-0.2.9/example'
Makefile:119: recipe for target 'examples' failed
make: *** [examples] Error 2
Answer the question
In order to leave comments, you need to log in
make: libpng-config: Command not found
sudo apt install libpng++-dev
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question