Ask Your Question
0

CUDA : OpenCV requires enabled 'cudev' module from 'opencv_contrib'

asked 2019-03-31 11:03:15 -0600

vchill gravatar image

Hi

I am new to opencv and i am building opencv on windows using the script here : https://docs.opencv.org/3.4.3/d3/d52/.... I enabled cuda, tests, perf_tests, docs and samples as i wanted to build eveything. but i get this compilation cmake error. I have installed CUDA toolkit 10.1 on my machine. CMake Error at modules/core/CMakeLists.txt:39 (message): CUDA: OpenCV requires enabled 'cudev' module from 'opencv_contrib' repository: https://github.com/opencv/opencv_contrib Call Stack (most recent call first): modules/world/CMakeLists.txt:13 (include) modules/world/CMakeLists.txt:32 (include_one_module)

I believe the script sets opencv_contrib path which has cudev module. Unable to figure out what's going wrong here.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-03-31 13:02:48 -0600

updated 2020-01-08 05:34:51 -0600

Those instructions are really old, I would follow a more up to date guide like Accelerating OpenCV 4.2.0 with CUDA if i were you and use CUDA 10. That guide also has instructions for accelerating the build with ninja and including bindings for accessing the opencv cuda modules from within python.

edit flag offensive delete link more

Comments

I was actually building opencv for C++ application. And i got it build a week ago from the script i mentioned, but this error, i am getting it recently since last 2 days. Thanks for the link. Il follow steps over there and try to build it but i am actually interested in why i am getting this error.

vchill gravatar imagevchill ( 2019-03-31 13:37:13 -0600 )edit

Are you building from the master or from a specific release (3.4, 4.0 etc)? If you are building from the master then it could be anything as changes are pushed all the time and you are best asking on git hub.

cudawarped gravatar imagecudawarped ( 2019-03-31 14:13:20 -0600 )edit

yes. I am building from master. Il move to github. Thanks

vchill gravatar imagevchill ( 2019-03-31 14:21:54 -0600 )edit

just saying: as of opencv 4 ALL cuda code was moved to opencv_contrib, so you need that, if youwant to build the master branch with cuda

berak gravatar imageberak ( 2019-04-01 01:58:55 -0600 )edit

It would be really good to update (at least) the Linux installation tutorial to reflect the need to set a path to opencv_contrib if you want to build with CUDA. It is simple to do, once you know it is needed but there are a lot of rabbit trails and mis-information out there if you google the error message.

mdresser gravatar imagemdresser ( 2020-04-02 22:49:34 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-03-31 10:51:35 -0600

Seen: 12,363 times

Last updated: Jan 08 '20