D
D
DowowTeam2018-03-28 17:57:44
mint
DowowTeam, 2018-03-28 17:57:44

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

Please explain to the noob, what is going wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2018-03-28
@p00h

make: libpng-config: Command not found

sudo apt install libpng++-dev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question