Ask Your Question
0

build OpenCV4: add preprocessor definition "CV_DETECTORS_CHESSBOARD_DEBUG"

asked 2020-09-16 02:38:15 -0600

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

edit retag flag offensive close merge delete

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 ( 2020-09-16 03:33:26 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-09-16 03:43:45 -0600

berak gravatar image

updated 2020-09-16 03:44:38 -0600

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

edit flag offensive delete link more

Comments

1

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

ARYL518 gravatar imageARYL518 ( 2020-09-16 05:29:38 -0600 )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 ( 2020-09-16 08:29:05 -0600 )edit

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

ARYL518 gravatar imageARYL518 ( 2020-09-16 20:56:40 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-16 02:38:15 -0600

Seen: 346 times

Last updated: Sep 16 '20