【问题标题】:CMake error for OpenCV Building in Windows在 Windows 中构建 OpenCV 的 CMake 错误
【发布时间】:2020-11-02 09:05:15
【问题描述】:

https://www.youtube.com/watch?v=9xFTXSDw_9U

我使用 Python 3.7 版

CMake 最新

OpenCV 4.1.0 版

OpenCV_contrib 4.1.0

我参考链接上的视频搭建了OpenCV,但是遇到如下错误:


CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
  IPPICV: Download failed: 22;"HTTP response code said error"

  For details please refer to the download log file:

  C:/opencv/build/CMakeDownloadLog.txt

Call Stack (most recent call first):
  3rdparty/ippicv/ippicv.cmake:42 (ocv_download)
  cmake/OpenCVFindIPP.cmake:243 (download_ippicv)
  cmake/OpenCVFindLibsPerf.cmake:12 (include)
  CMakeLists.txt:773 (include)

CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
  ADE: Download failed: 22;"HTTP response code said error"

  For details please refer to the download log file:

  C:/opencv/build/CMakeDownloadLog.txt

Call Stack (most recent call first):
  modules/gapi/cmake/DownloadADE.cmake:10 (ocv_download)
  modules/gapi/cmake/init.cmake:16 (include)
  cmake/OpenCVModule.cmake:312 (include)
  cmake/OpenCVModule.cmake:375 (_add_modules_1)
  modules/CMakeLists.txt:7 (ocv_glob_modules)

 For details please refer to the download log file:

  C:/opencv/build/CMakeDownloadLog.txt

Call Stack (most recent call first):
  3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
  modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
  modules/videoio/cmake/init.cmake:3 (include)
  modules/videoio/cmake/init.cmake:24 (add_backend)
  cmake/OpenCVModule.cmake:312 (include)
  cmake/OpenCVModule.cmake:375 (_add_modules_1)
  modules/CMakeLists.txt:7 (ocv_glob_modules)

CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
  FFMPEG: Download failed: 22;"HTTP response code said error"

  For details please refer to the download log file:

  C:/opencv/build/CMakeDownloadLog.txt

Call Stack (most recent call first):
  3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
  modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
  modules/videoio/cmake/init.cmake:3 (include)
  modules/videoio/cmake/init.cmake:24 (add_backend)
  cmake/OpenCVModule.cmake:312 (include)
  cmake/OpenCVModule.cmake:375 (_add_modules_1)
  modules/CMakeLists.txt:7 (ocv_glob_modules)

请帮帮我。

【问题讨论】:

    标签: opencv cmake


    【解决方案1】:

    根据日志,一些下载失败:HTTP response code said error

    设置尝试例如从https://raw.githubusercontent.com/opencv/opencv_3rdparty/${IPPICV_COMMIT}/ippicv/ 下载IPPICV,鉴于在撰写此答案时,GitHub 正在经历中断,一旦 GitHub 再次运行,此问题可能会消失 (https://www.githubstatus.com/)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-17
      • 2013-05-25
      • 2019-05-18
      • 1970-01-01
      • 2012-01-18
      • 1970-01-01
      • 2020-08-12
      相关资源
      最近更新 更多