作者:张火蓉景荣馨季 | 来源:互联网 | 2023-06-25 18:57
尝试在Windows上使用CMAKE配置OpenCV时出现以下错误:CMakeWarningatcmakeOpenCVUtils.cmake:865(message):Downlo
尝试在Windows上使用CMAKE配置OpenCV时出现以下错误:
CMake Warning at cmake/OpenCVUtils.cmake:865 (message):
Download: Local copy of opencv_ffmpeg.dll has invalid MD5 hash:
d41d8cd98f00b204e9800998ecf8427e (expected:
89c783eee1c47bfc733f08334ec2e31c)
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:193 (include)
CMakeLists.txt:527 (include)
Downloading opencv_ffmpeg.dll...
CMake Error at cmake/OpenCVUtils.cmake:888 (file):
file DOWNLOAD MD5 mismatch
for file: [C:/research/opencv300/sources/3rdparty/ffmpeg/downloads/89c783eee1c47bfc733f08334ec2e31c/opencv_ffmpeg.dll]
expected MD5 sum: [89c783eee1c47bfc733f08334ec2e31c]
actual MD5 sum: [d41d8cd98f00b204e9800998ecf8427e]
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:193 (include)
CMakeLists.txt:527 (include)
CMake Error at cmake/OpenCVUtils.cmake:892 (message):
Failed to download opencv_ffmpeg.dll. Status=1;"unsupported protocol"
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:193 (include)
CMakeLists.txt:527 (include)
Configuring incomplete, errors occurred!
我尝试手动下载opencv_ffmpeg.dll,但配置过程不起作用.
你能帮助我吗,如何解决这个问题?
解决方法:
最近与opencv 3.1.0有同样的问题.通过使用opencv提取的./build/bin目录中的相应dll解决了这种情况.至于ffmpeg_version.cmake,从给定的链接抓住它.替换./sources/3rd party / ffmpeg下的文件,然后重新配置cmake.