cmake error "Unknown Cmake command 'ocv_glob_modules' "

asked 2015-07-02 00:40:01 -0600

andikt gravatar image

Hello,

i tried to compile opencv_contrib on a raspberry pi B2 using raspbian. I already compiled and use opencv-3.0.0. The directory of opencv is /home/pi/opencv-3.0.0. inside this directory i put the folder opencv_contrib.

In the directory /home/pi/opencv-3.0.0, i type the following command

cmake -D OPENCV_EXTRA_MODULES_PATH=opencv_contrib_modules .

and this leads to the following error:

CMake Error at ''CMakeLists.txt.7 (ocv_glob_modules): Unkown Cmake command "ocv_glob_modules"

It seems that the CMakeLists.txt which causes the error is located in /home/pi/opencv-3.0.0/modules

The macro "ocv_glob_modules" is located in /home/pi/opencv-3.0.0/cmake/OpenCVModule.cmake

What is wrong? can anybody please helP?

Best regards,

andikt

edit retag flag offensive close merge delete