Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling opencv samples: unknown cmake command ocv_check_dependencies

I am trying to build the OpenCV samples which come with the source package and I get the following:

CMake Error at CMakeLists.txt:10 (ocv_check_dependencies):
  Unknown CMake command "ocv_check_dependencies".

I did install OpenCV using

cmake .
make
sudo make install

and I got a tutorial snippet working (thus I suppose it is installed correctly as a library). However, compiling the samples does not work.

I guess I have to somehow configure CMake to have “ocv_check_dependencies” - but how? I am lost!

like image 926
scravy Avatar asked Oct 30 '12 19:10

scravy


1 Answers

Actually for OpenCV 2.4.4 beta the root CMakeList.txt file says:

OCV_OPTION(BUILD_EXAMPLES "Build all examples"

-DBUILD_EXAMPLES=ON worked just fine for me.

like image 152
Zzirconium Avatar answered Sep 20 '22 16:09

Zzirconium