1. 程式人生 > >Mac安裝OpenCV下載ippicv_macosx_20141027.tgz失敗解決方案

Mac安裝OpenCV下載ippicv_macosx_20141027.tgz失敗解決方案

先附上當時的報錯資訊:

-- ICV: Downloading ippicv_macosx_20141027.tgz...
CMake Error at 3rdparty/ippicv/downloader.cmake:71 (file):
  file DOWNLOAD HASH mismatch

    for file: [/Users/zhaozhaokaliang/opencv-3.0.0/3rdparty/ippicv/downloads/macosx-9662fe0694a67e59491a0dcc82fa26e0/ippicv_macosx_20141027.tgz]
      expected hash: [9662
fe0694a67e59491a0dcc82fa26e0] actual hash: [14cb99aa35c53adfb648ca84e9790a82] status: [56;"Failure when receiving data from the peer"] ................

簡單來說就是Cmake在下載ippicv_macosx_20141027.tgz這個檔案的時候遇到了錯誤,導致下載的檔案Hash值和預期的Hash值不同,所以需要我們自己下載ippicv_macosx_20141027.tgz這個檔案然後覆蓋過去。

下載地址:

http://download.csdn.net/detail/alanzjl/8961695

大家如果使用Safari下載的話要仔細看看字尾名是不是tgz,因為系統可能會自動解壓成tar,這樣在重新封裝成tgz的話hash值會改變,還是成功不了。所以可以換個瀏覽器下載,或者進入終端,使用wget指令下載

wget http://www.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/o/op/opencvlibrary/3rdparty/ippicv/ippicv_macosx_20141027.tgz

把下載下來的檔案覆蓋到報錯資訊所提到的目錄,每個人目錄可能不同,比如我的就是
/Users/zhaozhaokaliang/opencv-3.0.0/3rdparty/ippicv/downloads/macosx-9662fe0694a67e59491a0dcc82fa26e0/ippicv_macosx_20141027.tgz