Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

png++/png.hpp ERROR #2

Open
Hayq opened this issue Feb 6, 2017 · 4 comments
Open

png++/png.hpp ERROR #2

Hayq opened this issue Feb 6, 2017 · 4 comments

Comments

@Hayq
Copy link

Hayq commented Feb 6, 2017

I try to run like this

g++ -std=c++0x -lpng -O3 Feature.cpp WeakClassifier.cpp StrongClassifier.cpp CascadeClassifier.cpp main.cpp -o vandj libpng-config --ldflags

and have this problem

The program 'libpng-config' can be found in the following packages:

  • libpng12-dev
  • libpng16-devtools
    Try: sudo apt install
    main.cpp:14:25: fatal error: png++/png.hpp: No such file or directory
    compilation terminated.

I tried to install, but do not work.
How to fix this ?

@dilpreetdan
Copy link

dilpreetdan commented May 16, 2017

Go to lib folder and extract png++-0.2.5.tar.gz. Then use the following command:

g++ -std=c++0x -lpng -O3 -idirafter ../lib/ Feature.cpp WeakClassifier.cpp StrongClassifier.cpp CascadeClassifier.cpp main.cpp -o vandj libpng-config --ldflags

@Hayq
Copy link
Author

Hayq commented May 16, 2017

yes i find and fix that))
Now I have other problems, the program works endlessly then aborting, can you help me from that problem?

@x2137
Copy link

x2137 commented Apr 22, 2018

Memory Leak...

@aqiibzafar
Copy link

g++ -std=c++0x -lpng -O3 -idirafter ../lib/ Feature.cpp WeakClassifier.cpp StrongClassifier.cpp CascadeClassifier.cpp main.cpp -o vandj -lpng -L/home/aqiib/violaandjones/lib/png++
Solved this issue by linking files locally by telling linker to look files locally
Normally linker will try to find the (png++/png.cpp) in usr/include

Hopefully someone finds this helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants