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
答案 0 :(得分: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的路径安装在其他位置,则可能会有所不同。
如果这不是原因,则其他原因阻止了您的连接。例如防火墙,恶意软件防护等。