Ask Your Question
1

Mergevec.cpp : Error (compilation)

asked 2012-07-27 04:32:13 -0600

Bia6969 gravatar image

updated 2012-07-28 04:27:53 -0600

Kirill Kornyakov gravatar image

Hi everyone!!

I wanted to get mergevec.cpp to compile so i would avoid objectMarking all images everytime. The problem is i can't.

As i've read on this tutorial (http://note.sonots.com/SciSoftware/haartraining/mergevec.cpp.html), i've saved mergevec.cpp at haartraining directory and compiled. The followed error is given:

mergevec.cpp:7:28: fatal error: cvhaartraining.h: No such file or directory compilation terminated.

Then, i've googled the error and i added the -I to my compilation flags: it says -I:no command found and repeats the same error than before.

What am i doing wrong? Is there any other way to avoid object marking EVERY image everytime?

Thanks in advance!

edit retag flag offensive close merge delete

Comments

unless i added the -I command wrong. Please tell me HOW to do it: g++ pkg-config --cflags opencvpkg-config --libs opencv-I -o mergevec mergevec.cpp cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp cvhaartraining.cpp

Bia6969 gravatar imageBia6969 ( 2012-07-27 04:34:04 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-11-06 05:57:43 -0600

samkhan13 gravatar image
edit flag offensive delete link more
6

answered 2012-07-31 14:08:57 -0600

rantanplan gravatar image

updated 2012-07-31 14:20:33 -0600

To compile the mergevec tool I did the following:

 1814c1814
 < static
 ---
 > //static
  • in src folder: run make mergevec
edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-27 04:32:13 -0600

Seen: 2,860 times

Last updated: Nov 06 '13