opencv的cmake报错

opencv编译报错

CMakeDownloadLog.txt

#use_cache "D:/opencv/.cache"

#do_unpack "ippicv_2021.8_win_intel64_20230330_general.zip" "71e4f58de939f0348ec7fb58ffb17dbf" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/1224f78da6684df04397ac0f40c961ed37f79ccb/ippicv/ippicv_2021.8_win_intel64_20230330_general.zip" "D:/opencv/build/3rdparty/ippicv"

#check_md5 "D:/opencv/.cache/ippicv/71e4f58de939f0348ec7fb58ffb17dbf-ippicv_2021.8_win_intel64_20230330_general.zip"

#mismatch_md5 "D:/opencv/.cache/ippicv/71e4f58de939f0348ec7fb58ffb17dbf-ippicv_2021.8_win_intel64_20230330_general.zip" "d41d8cd98f00b204e9800998ecf8427e"

#delete "D:/opencv/.cache/ippicv/71e4f58de939f0348ec7fb58ffb17dbf-ippicv_2021.8_win_intel64_20230330_general.zip"

#cmake_download "D:/opencv/.cache/ippicv/71e4f58de939f0348ec7fb58ffb17dbf-ippicv_2021.8_win_intel64_20230330_general.zip" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/1224f78da6684df04397ac0f40c961ed37f79ccb/ippicv/ippicv_2021.8_win_intel64_20230330_general.zip"

#try 1

timeout on name lookup is not supported

getaddrinfo(3) failed for raw.githubusercontent.com:443

Could not resolve host: raw.githubusercontent.com

Closing connection

#do_unpack "v0.1.2a.zip" "fa4b3e25167319cb0fa9432ef8281945" "https://github.com/opencv/ade/archive/v0.1.2a.zip" "D:/opencv/build/3rdparty/ade"

#check_md5 "D:/opencv/.cache/ade/fa4b3e25167319cb0fa9432ef8281945-v0.1.2a.zip"

#mkdir "D:/opencv/build/3rdparty/ade"

#unpack "D:/opencv/build/3rdparty/ade" "D:/opencv/.cache/ade/fa4b3e25167319cb0fa9432ef8281945-v0.1.2a.zip"

#do_copy "opencv_videoio_ffmpeg.dll" "4aaef1456e282e5ef665d65555f47f56" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/7da61f0695eabf8972a2c302bf1632a3d99fb0d5/ffmpeg/opencv_videoio_ffmpeg.dll" "D:/opencv/build/3rdparty/ffmpeg"

#missing "D:/opencv/build/3rdparty/ffmpeg/opencv_videoio_ffmpeg.dll"

#check_md5 "D:/opencv/.cache/ffmpeg/4aaef1456e282e5ef665d65555f47f56-opencv_videoio_ffmpeg.dll"

#mismatch_md5 "D:/opencv/.cache/ffmpeg/4aaef1456e282e5ef665d65555f47f56-opencv_videoio_ffmpeg.dll" "d41d8cd98f00b204e9800998ecf8427e"

#delete "D:/opencv/.cache/ffmpeg/4aaef1456e282e5ef665d65555f47f56-opencv_videoio_ffmpeg.dll"

#cmake_download "D:/opencv/.cache/ffmpeg/4aaef1456e282e5ef665d65555f47f56-opencv_videoio_ffmpeg.dll" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/7da61f0695eabf8972a2c302bf1632a3d99fb0d5/ffmpeg/opencv_videoio_ffmpeg.dll"

#try 1

timeout on name lookup is not supported

getaddrinfo(3) failed for raw.githubusercontent.com:443

Could not resolve host: raw.githubusercontent.com

Closing connection

#do_copy "opencv_videoio_ffmpeg_64.dll" "38a638851e064c591ce812e27ed43f1f" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/7da61f0695eabf8972a2c302bf1632a3d99fb0d5/ffmpeg/opencv_videoio_ffmpeg_64.dll" "D:/opencv/build/3rdparty/ffmpeg"

#missing "D:/opencv/build/3rdparty/ffmpeg/opencv_videoio_ffmpeg_64.dll"

#check_md5 "D:/opencv/.cache/ffmpeg/38a638851e064c591ce812e27ed43f1f-opencv_videoio_ffmpeg_64.dll"

#mismatch_md5 "D:/opencv/.cache/ffmpeg/38a638851e064c591ce812e27ed43f1f-opencv_videoio_ffmpeg_64.dll" "d41d8cd98f00b204e9800998ecf8427e"

#delete "D:/opencv/.cache/ffmpeg/38a638851e064c591ce812e27ed43f1f-opencv_videoio_ffmpeg_64.dll"

#cmake_download "D:/opencv/.cache/ffmpeg/38a638851e064c591ce812e27ed43f1f-opencv_videoio_ffmpeg_64.dll" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/7da61f0695eabf8972a2c302bf1632a3d99fb0d5/ffmpeg/opencv_videoio_ffmpeg_64.dll"

#try 1

timeout on name lookup is not supported

getaddrinfo(3) failed for raw.githubusercontent.com:443

Could not resolve host: raw.githubusercontent.com

Closing connection

#do_copy "ffmpeg_version.cmake" "8862c87496e2e8c375965e1277dee1c7" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/7da61f0695eabf8972a2c302bf1632a3d99fb0d5/ffmpeg/ffmpeg_version.cmake" "D:/opencv/build/3rdparty/ffmpeg"

#missing "D:/opencv/build/3rdparty/ffmpeg/ffmpeg_version.cmake"

#check_md5 "D:/opencv/.cache/ffmpeg/8862c87496e2e8c375965e1277dee1c7-ffmpeg_version.cmake"

#mismatch_md5 "D:/opencv/.cache/ffmpeg/8862c87496e2e8c375965e1277dee1c7-ffmpeg_version.cmake" "d41d8cd98f00b204e9800998ecf8427e"

#delete "D:/opencv/.cache/ffmpeg/8862c87496e2e8c375965e1277dee1c7-ffmpeg_version.cmake"

#cmake_download "D:/opencv/.cache/ffmpeg/8862c87496e2e8c375965e1277dee1c7-ffmpeg_version.cmake" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/7da61f0695eabf8972a2c302bf1632a3d99fb0d5/ffmpeg/ffmpeg_version.cmake"

#try 1

timeout on name lookup is not supported

getaddrinfo(3) failed for raw.githubusercontent.com:443

Could not resolve host: raw.githubusercontent.com

Closing connection

问题,如上述已经很清楚,缺什么补什么

1、下载 ippicv_2021.8_win_intel64_20230330_general.zip、v0.1.2a.zip、opencv_videoio_ffmpeg.dll、opencv_videoio_ffmpeg_64.dll、ffmpeg_version.cmake

由于下载源在https://raw.githubusercontent.com,由于网络原因下载不顺畅,可以先找到文件下载到对应文件夹下,或者更改网络环境。

ffmpeg_version.cmake文件,打开后显示如下, 另存即可

资源已上传CSDN,可直接下载。

https://download.csdn.net/download/nownow_/89154249

https://download.csdn.net/download/nownow_/89154223

https://download.csdn.net/download/nownow_/89154217

https://download.csdn.net/download/nownow_/89140838

https://download.csdn.net/download/nownow_/89161391

2、.cache 下的与之对应的文件删除

3、建议更改网络环境,如果上不去对应网站,可参考这篇文章解决

CSDNhttps://mp.csdn.net/mp_blog/creation/editor/137785429

相关推荐
奋斗的小花生1 小时前
c++ 多态性
开发语言·c++
闲晨1 小时前
C++ 继承:代码传承的魔法棒,开启奇幻编程之旅
java·c语言·开发语言·c++·经验分享
UestcXiye2 小时前
《TCP/IP网络编程》学习笔记 | Chapter 3:地址族与数据序列
c++·计算机网络·ip·tcp
霁月风4 小时前
设计模式——适配器模式
c++·适配器模式
jrrz08284 小时前
LeetCode 热题100(七)【链表】(1)
数据结构·c++·算法·leetcode·链表
咖啡里的茶i4 小时前
Vehicle友元Date多态Sedan和Truck
c++
海绵波波1074 小时前
Webserver(4.9)本地套接字的通信
c++
@小博的博客4 小时前
C++初阶学习第十弹——深入讲解vector的迭代器失效
数据结构·c++·学习
爱吃喵的鲤鱼5 小时前
linux进程的状态之环境变量
linux·运维·服务器·开发语言·c++
7年老菜鸡6 小时前
策略模式(C++)三分钟读懂
c++·qt·策略模式