Can't find "modules/dnn/opencl_kernels_dnn.hpp" for SURF opencv

asked 2016-10-03 09:13:45 -0600

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!

edit retag flag offensive close merge delete

Comments

1

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

berak gravatar imageberak ( 2016-10-04 00:59:22 -0600 )edit

I guess he did not deactivate dnn, but does not have the corresponding dependencies installed. So deactivating should indeed do the trick ;)

StevenPuttemans gravatar imageStevenPuttemans ( 2016-10-04 05:54:27 -0600 )edit