我試圖用CMake編譯器使用CMake安裝OpenCV 3.1.0。我得到一個錯誤,說文件哈希與預期的哈希不同。我無法在需要安裝的PC上訪問互聯網。我厭倦了將它成功安裝在帶有互聯網的PC上,以查看是否可以在沒有互聯網的情況下將這些文件複製到PC。但是,當CMake刪除這些文件並且嘗試以它自己的方式執行時,這並不起作用。我也試過this解決方案,但它沒有奏效。在Windows 7上使用CMake安裝OpenCV 3.1.0,opencv_ffmpeg.dll無效哈希
以下是錯誤消息:
CMake Warning at cmake/OpenCVUtils.cmake:872 (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:206 (include)
CMakeLists.txt:536 (include)
Downloading opencv_ffmpeg.dll...
CMake Error at cmake/OpenCVUtils.cmake:895 (file):
file DOWNLOAD HASH mismatch
for file: [C:/OpenCV/opencv/sources/3rdparty/ffmpeg/downloads/89c783eee1c47bfc733f08334ec2e31c/opencv_ffmpeg.dll]
expected hash: [89c783eee1c47bfc733f08334ec2e31c]
actual hash: [d41d8cd98f00b204e9800998ecf8427e]
status: [6;"Couldn't resolve host name"]
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:206 (include)
CMakeLists.txt:536 (include)
CMake Error at cmake/OpenCVUtils.cmake:899 (message):
Failed to download opencv_ffmpeg.dll. Status=6;"Couldn't resolve host
name"
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:206 (include)
CMakeLists.txt:536 (include)
我希望能夠在不上網安裝此,但它證明非常diffucult。有沒有人有任何解決方案?
在此先感謝。
有一個比較完整和好的教程[這裏](https://www.youtube.com/watch?v=akAAAvGyLn0) – Nacho