Ask Your Question

Revision history [back]

Compile opencv_contrib

Hello, I work on ubuntu 16.04 and I try to compile a module in opencv_contrib. I have already install Opencv 3.2 but I am stuck with opencv_contrib.

So I downloaded opencv_contrib I go to opencv_contrib/modules/tracking and then:

mkdir build cd build cmake .. and I get that error:

CMake Error at CMakeLists.txt:2 (ocv_define_module): Unknown CMake command "ocv_define_module".

CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.5)

should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred! See also "/home/xxxx/Bureau/dev/opencv_contrib/modules/tracking/CMakeFiles/CMakeOutput.log".