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)
I got it.
In order to build the samples one has to change the default configuration for cmake by providing it via -D
. What I did wrong was that I tried to execute cmake from within the samples
directory.
The proper way to build the samples is invoking cmake like so (from within the root directory of the unpacked archive):
cmake -DBUILD_SAMPLES .
which will turn samples ON. One can proceed using make, make install than. The samples can be found in bin
after building.
See also FAQ