Ask Your Question

APinto's profile - activity

2020-06-24 21:39:51 -0600 received badge  Popular Question (source)
2016-09-05 20:23:45 -0600 asked a question Building OpenCV 3.1.0 from source with SIFT and SURF

I'm trying to build OpenCV 3.1.0 (with the extra contrib packages) from source.

I'm following the instructions in this tutorial to build it under Visual Studio 2015 and the ones in this StackOverflow question to re-enable the SIFT and SURF features, now under opencv_contrib.

All goes well except that the file features2d_manual.hpp, changed in the second link, fails to compile with the following error:

fatal error C1083: Cannot open include file: 'opencv2/xfeatures2d.hpp': No such file or directory

I am at a loss of what might be going on here, due to my poor understanding of how CMake and Visual Studio interact. The opencv_contrib modules are being properly added through the CMake variable OPENCV_EXTRA_MODULES_PATH.

Are any of you able to help? Thank you for your time reading this!

AP