First time here? Check out the FAQ!

Ask Your Question
0

build OpenCV4: add preprocessor definition "CV_DETECTORS_CHESSBOARD_DEBUG"

asked Sep 16 '0

ARYL518 gravatar image

Hi, I am building OpenCV4 on Windows using VS2017. I wan to debug chessboard class and I add preprocessor definition "CV_DETECTORS_CHESSBOARD_DEBUG" in VS project property page. However, I have compiler error such as "cannot open source file "opencv2/highgui.hpp" etc.

Thanks.

YL

Preview: (hide)

Comments

can you get us the complete error messages, please ?

and I add preprocessor definition "CV_DETECTORS_CHESSBOARD_DEBUG" in VS project property page.

where, exactly ? (did you overwrite somehing nessecary ?)

berak gravatar imageberak (Sep 16 '0)edit

1 answer

Sort by » oldest newest most voted
0

answered Sep 16 '0

berak gravatar image

updated Sep 16 '0

you should probably uncomment it here (and rebuild) , instead of messng with the cmake / VS settings

Preview: (hide)

Comments

1

I uncommeted it in chessboard.cpp and get the error: cannot open source file "opencv2/highgui.hpp"

ARYL518 gravatar imageARYL518 (Sep 16 '0)edit

apologies, i did not see that coming.

indeed, the code is compiled as part of the calib3d library, and at this stage, there is no valid include path for opencv2/highgui.hpp

maybe you can add the opencv/modules/highgui/include path to your compiler settings ?

berak gravatar imageberak (Sep 16 '0)edit

yes, I can add include path for highgui, but which dependents on other include files which depend on others...

ARYL518 gravatar imageARYL518 (Sep 17 '0)edit

Question Tools

1 follower

Stats

Asked: Sep 16 '0

Seen: 366 times

Last updated: Sep 16 '20