CMake Error at cmake/OpenCVUtils.cmake:1047 (message):
  Failed to download .  Status=
Call Stack (most recent call first):
  ../opencv_contrib/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
  ../opencv_contrib/modules/dnn/CMakeLists.txt:5 (include)



解决:到/opencv_contrib/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake中,并打开编辑,
FILENAMEPACKAGE替代

uses FILENAME as the first parameter, but should be using PACKAGE instead.

同样适用于其他的.cmake error

参考:
https://stackoverflow.com/questions/43081022/ubuntu-opencv-not-compiling


I think I've found the issue, though. I opened an issue in the opencv_contrib github. There is a call to ocv_download in the dnn and xfeatures2d cmake files that uses FILENAME as the first parameter, but should be using PACKAGE instead. When I changed the parameters to PACKAGE, CMake successfully configured opencv with the opencv_contrib modules.

相关文章:

  • 2021-04-25
  • 2021-10-26
  • 2021-06-07
  • 2021-06-27
  • 2021-07-18
  • 2021-07-30
  • 2021-10-06
  • 2022-12-23
猜你喜欢
  • 2021-12-28
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
  • 2021-10-05
相关资源
相似解决方案