CMake failed to find command "ocv_download". D:/GitHub/opencv_contrib/modules/dnn_modern/CMakeLists.txt:20
It's unable to download tiny-dnn library. I managed to manually download the library and extract it into the opencv/3rdparty directory. But now I get a different error: CMake Error at D:/GitHub/opencv_contrib/modules/text/CMakeLists.txt:22 (ocv_add_testdata):
Unknown CMake command "ocv_add_testdata".
Attaching my CMake log files.
CMakeError.txt
CMakeOutput.txt
Latest from git
You should keep repositories synchronized - fetch latest code from both opencv/opencv_contrib.
ocv_add_testdata is here
Hi Alexander, I do have the latest from both opencv and opencv_contrib.
Actually I've successfully built opencv by itself and also with
opencv_contrib 3.2.0. The CMake errors occur only when I try to build the
latest opencv_contrib from git.
Here's the first error: CMake failed to find command "ocv_download".
D:/GitHub/opencv_contrib/modules/dnn_modern/CMakeLists.txt:20. The GitHub
link on that line in the CMake file actually gives me a 404. Could that the
reason why it's failing?
And if I get past that by manually downloading tiny-dnn then I get the
error: CMake Error at
D:/GitHub/opencv_contrib/modules/text/CMakeLists.txt:22 (ocv_add_testdata):
Unknown CMake command "ocv_add_testdata".
I'm trying to build directly from the source as I'm interested in the
latest dnn module.
Thanks for your help.
I'm trying to build directly from the source as I'm interested in the latest dnn module.
DNN module is moved from opencv_contrib to opencv repository.
I pulled the latest opencv version from git and was able to generate VS 2015 solution files successfully.
But then I ran into opencv_core compilation issues
RC : fatal error RC1103: invalid option, /FID:/GitHub/opencv/modules/core/src/precomp.hpp
which was resolved by reverting to CMake 3.8.2
Thanks for your help!
RC : fatal error RC1103: invalid option
Related issue for this problem: https://github.com/opencv/opencv/issues/9100