gpt4 book ai didi

opencv - 尝试使用cmake-gui构建 'opencv_contrib'时出错

转载 作者:行者123 更新时间:2023-12-02 17:34:47 27 4
gpt4 key购买 nike

enter image description here 1.我已经从Git存储库下载并提取了“opencv_contrib-master”和“opencv-master”。
2.已安装cmake 3.9版本。

运行cmake时,出现以下错误:

我正在使用Visual Studio 2017和Windows10。有什么帮助?

这是CMAkeDownloadLog.txt的片段
ErrorLog

从ErrorLog:

#use_cache "C:/Downloads/OPENCV/opencv-master/.cache"
#do_copy "opencv_ffmpeg.dll" "b8120c07962d591e2e9071a1bf566fd0" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/0a0e88972a7ea97708378d0488a65f83e7cc5e69/ffmpeg/opencv_ffmpeg.dll" "C:/OpenCV/3rdparty/ffmpeg"
#missing "C:/OpenCV/3rdparty/ffmpeg/opencv_ffmpeg.dll"
#check_md5 "C:/Downloads/OPENCV/opencv-master/.cache/ffmpeg/b8120c07962d591e2e9071a1bf566fd0-opencv_ffmpeg.dll"
#mismatch_md5 "C:/Downloads/OPENCV/opencv-master/.cache/ffmpeg/b8120c07962d591e2e9071a1bf566fd0-opencv_ffmpeg.dll" "d41d8cd98f00b204e9800998ecf8427e"
#delete "C:/Downloads/OPENCV/opencv-master/.cache/ffmpeg/b8120c07962d591e2e9071a1bf566fd0-opencv_ffmpeg.dll"
#cmake_download "C:/Downloads/OPENCV/opencv-master/.cache/ffmpeg/b8120c07962d591e2e9071a1bf566fd0-opencv_ffmpeg.dll" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/0a0e88972a7ea97708378d0488a65f83e7cc5e69/ffmpeg/opencv_ffmpeg.dll"
# timeout on name lookup is not supported
# Trying 151.101.112.133...
# TCP_NODELAY set
# connect to 151.101.112.133 port 443 failed: Timed out
# Failed to connect to raw.githubusercontent.com port 443: Timed out
# Closing connection 0

最佳答案

您可能已经注意到,CMake无法连接到提供需要下载文件的服务器。最有可能是您的网络连接出现问题。

对我而言,CMake不了解公司的https代理。 CMake通过环境变量HTTP_PROXY和HTTPS_PROXY知道这一点。如果这是您的问题,则可以为系统设置这些变量。如果无法在系统范围内设置环境变量,或者只想进行快速测试,请启动命令提示符并运行

set HTTP_PROXY=<your-proxy-here>
set HTTPS_PROXY=<your-proxy-here>
c:\program files\cmake\bin\cmake-gui.exe

如果将cmake安装在其他位置,则该路径可能会有所不同。

如果这不是原因,则其他原因阻止了您的连接。例如防火墙,恶意软件防护等

关于opencv - 尝试使用cmake-gui构建 'opencv_contrib'时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52316732/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com