Skip to content

Unable to build from Source: Unknown CMake command "ocv_download". #1275

@SpinUpAshwin

Description

@SpinUpAshwin
System information (version)
  • OpenCV => Latest from git
  • Operating System / Platform => Windows 10, 64 bit
  • Compiler => Visual Studio 2017, 64 bit
Detailed description

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

Steps to reproduce
  1. Clone the latest opencv and opencv_contrib from github
  2. Run CMake and select VS 2017 Win64 as the compiler (also tried with VS 2012 and 2015)
  3. Set OPENCV_EXTRA_MODULES_PATH to D:/GitHub/opencv_contrib/modules

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions