Help with OpenCV configure - objdetec

asked 2020-02-21 13:13:46 -0600

AdamRankin gravatar image

updated 2020-02-22 13:05:34 -0600


I am trying to configure OpenCV 4.2.0 with OpenCV_contrib 4.2.0 specified, and I get the following CMake error:

CMake Error at cmake/OpenCVUtils.cmake:1481 (target_include_directories): Cannot specify include directories for target "opencv_objdetect_AVX" which is not built by this project.

Could anyone help me with figure out where the AVX cmake target should come from? Or if they've seen a similar issue elsewhere?

Thanks, Adam

Edit: VS2019 in case that's the issue

edit retag flag offensive close merge delete


What are you trying to build exactly?

LBerger gravatar imageLBerger ( 2020-02-21 14:43:26 -0600 )edit

I'm interested in the aruco module of OpenCV-contrib

AdamRankin gravatar imageAdamRankin ( 2020-02-21 15:32:52 -0600 )edit

Have you build opencv with opencv_contrib?

LBerger gravatar imageLBerger ( 2020-02-22 03:05:15 -0600 )edit
berak gravatar imageberak ( 2020-02-22 04:04:04 -0600 )edit

Yes, that was me who submitted the issue. It looks like not many people experience the issue. No problem, I can workaround it by disabling objdetect.

AdamRankin gravatar imageAdamRankin ( 2020-02-22 12:02:00 -0600 )edit

For future googlers, it appears to be something with the 4.2.0 tag. 4.1.2 compiles fine.

AdamRankin gravatar imageAdamRankin ( 2020-02-22 13:05:44 -0600 )edit

What is the problem with objdetect ? What's your platform?

LBerger gravatar imageLBerger ( 2020-02-22 13:05:47 -0600 )edit

Have you got vs2019 release 16.5?

LBerger gravatar imageLBerger ( 2020-02-22 13:17:43 -0600 )edit

It may have nothing to do with objdetect at all, it may be some AVX thing.

No, 16.4.5, will update now and see if that changes things.

Edit: 16.5 appears to be a preview release, should I try it anyways?

AdamRankin gravatar imageAdamRankin ( 2020-02-22 13:30:51 -0600 )edit

in vs2017 there is no problem but in vs2019 https://developercommunity.visualstud...

LBerger gravatar imageLBerger ( 2020-02-22 13:46:33 -0600 )edit