unknown cmake command "ocv_define_module"

asked 2016-02-08 08:13:35 -0600

Priya Dharsini gravatar image

when i build opencv_contrib,it shows the error "Unknown CMake command "ocv_define_module".

Cmd:cmake -DOPENCV_EXTRA_MODULES_PATH=D:/dev/open-cv-sdk/opencv_contrib-master/modules D:/dev/open-cv-sdk/opencv_contrib-master/modules/xfeatures2d

edit retag flag offensive close merge delete

Comments

what is the D:/dev/open-cv-sdk/opencv_contrib-master/modules/xfeatures2d for ?

your cmdline should be like: cmake -DOPENCV_EXTRA_MODULES_PATH=D:/dev/open-cv-sdk/opencv_contrib-master/modules /path/to/main/opencv

berak gravatar imageberak ( 2016-02-08 08:16:04 -0600 )edit

can u please tell me what is /path/to/main/opencv?

Priya Dharsini gravatar imagePriya Dharsini ( 2016-02-09 03:37:59 -0600 )edit

your main opencv src directory, please have another look at the readme

berak gravatar imageberak ( 2016-02-09 03:50:15 -0600 )edit

Thanks for your reply,the main opencv src directory is /Users/dev/Downloads/OpenCV-android-sdk 2/sdk/java/src? is this correct?

Priya Dharsini gravatar imagePriya Dharsini ( 2016-02-09 04:19:10 -0600 )edit

oh android sdk, idk. , sorry

but i guess, you need the main opencv repo

berak gravatar imageberak ( 2016-02-09 04:27:35 -0600 )edit

Thanks for your reply..We are trying to develop the android based Application using opencv. We need SURF Algorithm for that App.. 1)We have downloaded the following SDK from the below link http://sourceforge.net/projects/openc... 2)Now we are Trying to get use the xfeatures2d module from below link https://github.com/Itseez/opencv_cont... Can you please tell me the detailed procedure to how to implement the whole process...Thanks in Advance..

Priya Dharsini gravatar imagePriya Dharsini ( 2016-02-09 04:48:11 -0600 )edit

sorry, never tried that, but my best guess is, that you have to rebuild the android sdk form opencv main (+ contrib) repo.

berak gravatar imageberak ( 2016-02-09 05:35:37 -0600 )edit