Ask Your Question
0

Contrib extra module compilation

asked 2016-06-14 09:03:51 -0600

VanGog gravatar image

updated 2016-06-14 09:05:48 -0600

I have downloaded OpenCV & opencv_contrib and successfully generated project files using Visual Studio 2010.

Then I opened ALL_BUILD project. I compiled the OpenCV and the message in output window said that xmodules were not selected, 13 modules skipped. Then I selected the projects which start with "x" like xfeatures2D, xfeatures2D_object etc.

I try to compile it and I have this error. C:\Program Files\Microsoft Visual Studio 10.0\VC\include\utility(129): error C2857: '#include' statement specified with the /YcU:/opencv_contrib-master/modules/tracking/src/precomp.hpp command-line option was not found in the source file

Is is something important and is it simple to fix?

In the header precomp.hpp there is:

#include "opencv2/tracking.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/core/ocl.hpp"

The project is configured to start compiler with /Yu option.

edit retag flag offensive close merge delete

Comments

precompiled headers are tricky.

can you try to clean your build folder completely, and start from scratch with cmake ?

(also make sure, that BUILD_opencv_world is OFF)

berak gravatar imageberak ( 2016-06-14 09:08:00 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-16 02:08:21 -0600

VanGog gravatar image

@berak: It was simple solution. I just disabled Precompiled headers in the project opencv_tracking. Then successfully built.

edit flag offensive delete link more

Comments

thanks, useful hint !

berak gravatar imageberak ( 2016-06-16 02:10:11 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-06-14 09:03:51 -0600

Seen: 364 times

Last updated: Jun 14 '16