Building with SURF_CUDA
Hey. I'm trying to build OpenCV with support for SURF_CUDA. I figured I only needed to enable OPENCV_ENABLE_NONFREE. However when I went to test one of the samples, I saw that it didn't work because HAVE_OPENCV_XFEATURES2D was not defined. I tried again by defining HAVE_opencv_xfeatures2d and went to check cvconfig.h, but the macro was still not defined.
What do I need to do to have this class built into the library?
Thanks.
for xfeatures2d you need opencv_contrib
I'm getting an error when I try to generate:
CMake Error at cmake/OpenCVUtils.cmake:911 (add_library): Cannot find source file:
Did you delete CMakeCache.txt?
Yes, same result.
What is your platform? and compiler
Windows x86-64.
I am able to compile opencv with cuda and non free and xfeatures using VS 2013
I was able to get it generate, but I had to add an empty file at that location. I'll have to see if it builds.
Do you want to build opencv_world? if yes that's not a good idea
Welp, that didn't work. It seems like the the build order is wrong. Clearly, libraries in opencv_world depend on opencv_xfeatures2d, but opencv_xfeatures2d is set to build after opencv_world. I'll give it another try by disabling opencv_world and precompiled headers.