Can't find "modules/dnn/opencl_kernels_dnn.hpp" for SURF opencv
Hello!
I am trying to use the SURF algorithm from opencv_contrib git:https://github.com/opencv/opencv_contrib. However, when trying to build the repo I have the error: .../opencv3.0.0/contrib/modules/dnn/src/layers/lrn_layer.cpp:45:10: fatal error: 'modules/dnn/opencl_kernels_dnn.hpp' file not found
The opencl_kernel_dnn.hpp file is missing. Do you have any idea how to solve this? Thank you!
that file (among others) should have been auto-generated in your build folder. if it did not happen, there'S some problem with your opencl.
BUT: - if you're mainly interested in SURF (xfeatures2d module), you might not need the faulting dnn module at all , and you can try to disable with
cmake -DBUILD_opencv_dnn=OFF
I guess he did not deactivate dnn, but does not have the corresponding dependencies installed. So deactivating should indeed do the trick ;)