opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.34k stars 5.75k forks source link

CMake errors on opencv_contrib master #1351

Closed mihaibujanca closed 6 years ago

mihaibujanca commented 7 years ago
System information (version)
Detailed description

When trying to build opencv with opencv contrib, the following error comes up when executing cmake:

 CMake Error at opencv_3.2/cmake/OpenCVUtils.cmake:1005 (file):
   file MD5 failed to read file
   "opencv_3.2/build/3rdparty/tinydnn/": Success
 Call Stack (most recent call first):
opencv_contrib/modules/dnn_modern/CMakeLists.txt:18 (ocv_download)

 CMake Error at opencv_3.2/cmake/OpenCVUtils.cmake:1043 (file):
   file DOWNLOAD cannot open file for write.
 Call Stack (most recent call first):
   opencv_contrib/modules/dnn_modern/CMakeLists.txt:18 (ocv_download)

 CMake Error at opencv_3.2/cmake/OpenCVUtils.cmake:1047 (message):
   Failed to download .  Status=
 Call Stack (most recent call first):
opencv_contrib/modules/dnn_modern/CMakeLists.txt:18 (ocv_download)

When building with opencv_contrib on branch 3.2.0, this does not occur

mlee980 commented 6 years ago

I am having the same problem:

-- Downloading ... CMake Error at cmake/OpenCVUtils.cmake:947 (file): file DOWNLOAD cannot open file for write. Call Stack (most recent call first): modules/opencv_contrib/modules/dnn_modern/CMakeLists.txt:18 (ocv_download)

CMake Error at cmake/OpenCVUtils.cmake:951 (message): Failed to download . Status= Call Stack (most recent call first): modules/opencv_contrib/modules/dnn_modern/CMakeLists.txt:18 (ocv_download)

on macOS 10.12, opencv 3.1.0

alalek commented 6 years ago

opencv 3.1.0

You should keep both repositories synchronized (the same code version). There is nothing to fix in OpenCV, so closing this.