本文介绍了OpenCV 3.0.0“配置”失败,ffmpeg未下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图在Windows上使用CMake的配置OpenCV的,当我收到以下错误:

 在CMake的警告的CMake / OpenCVUtils.cmake :865(消息):
下载:opencv_ffmpeg.dll的本地副本具有无效的MD5哈希值:
d41d8cd98f00b204e9800998ecf8427e(预期:
89c783eee1c47bfc733f08334ec2e31c)

调用堆栈(最新首先调用):
的3rdParty /的ffmpeg / ffmpeg.cmake:10(ocv_download)
的CMake / OpenCVFindLibsVideo.cmake:193(含)
的CMakeLists.txt:527(含)


下载opencv_ffmpeg.dll ...
。在cmake的/ OpenCVUtils.cmake CMake的错误:888(文件):
文件下载MD5不匹配

为文件:C:/research/opencv300/sources/3rdparty/ffmpeg/downloads/89c783eee1c47bfc733f08334ec2e31c/opencv_ffmpeg.dll]
预计MD5校验码:[89c783eee1c47bfc733f08334ec2e31c]
实际的MD5校验码:[d41d8cd98f00b204e9800998ecf8427e]

调用堆栈(最近一次调用在前):
的3rdParty /的ffmpeg / ffmpeg.cmake:10(ocv_download)
的CMake / OpenCVFindLibsVideo.cmake:193(含)
的CMakeLists.txt :527(包含)


CMake错误在cmake / OpenCVUtils.cmake:892(消息):
无法下载opencv_ffmpeg.dll。状态= 1;不支持的协议
调用堆栈(最近一次调用在前):
的3rdParty /的ffmpeg / ffmpeg.cmake:10(ocv_download)
的CMake / OpenCVFindLibsVideo.cmake:193(包括)
CMakeLists.txt:527(include)


配置不完整,发生错误!

我尝试手动下载opencv_ffmpeg.dll,但配置过程不起作用。


解决方案

有什么问题吗?最近用opencv 3.1.0。通过使用opencv提取的 ./ build / bin 目录中的相应dll解决此问题。至于,从给出的链接,抓住它。替换 ./ sources / 3rd party / ffmpeg 下的文件,然后重新配置cmake。


I get the following error when trying to configure OpenCV using CMAKE on windows:

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!

I tried downloading opencv_ffmpeg.dll manually, but the configure process didn't work.

Can you help me, how to fix that?

解决方案

Had the same problem recently with opencv 3.1.0. Resolved the situation by using corresponding dll(s) from the ./build/bin directory of an opencv extract. As for ffmpeg_version.cmake, grabbed it from the link given. Replace the files under ./sources/3rd party/ffmpeg then reconfigure cmake.

这篇关于OpenCV 3.0.0“配置”失败,ffmpeg未下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 15:00