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".
" I go to opencv_contrib/modules/tracking and ..." -- wrong place to start the whole thing. (you won't be able to build ONLY the tracking module, to start with, dependancies and whatnot)
also, please make sure, you're using EXACTLY the same opencv main and opencv_contrib version ! (3.2 main and 3.3.1 contrib will NOT work)
please try to follow the receipe here
It seems to work. But how could I activate the OpenCL part in the algorithm?