[计算机视觉][ARM-Linux开发]OpenCV 3.1下载 ippicv_linux_20151201失败

来源:互联网 发布:淘宝店铺推广策划书 编辑:程序博客网 时间:2024/06/13 11:12

安装OpenCV 3.1的过程中要下载ippicv_linux_20151201,由于网络的原因,这个文件经常会下载失败。

解决的办法是手动下载:

  • 先下载 OpenCV 3.1
Download MD5 sum: 6082ee2124d4066581a7386972bfd52aDownload size: 76 MBEstimated disk space required: 1.8 GBEstimated build time: 4.9 SBU
  • 1
  • 2
  • 3
  • 4
  • 1
  • 2
  • 3
  • 4
  • 下载 ippicv_linux_20151201

解压OpenCV并进入其目录,运行下面的命令。

  • 创建ippicv_linux_20151201的目录,带MD5.
ipp_file=../ippicv_linux_20151201.tgz             &&ipp_hash=$(md5sum $ipp_file | cut -d" " -f1)      &&ipp_dir=3rdparty/ippicv/downloads/linux-$ipp_hash &&mkdir -p $ipp_dir &&cp $ipp_file $ipp_dir
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 编译OpenCV
mkdir build &&cd    build &&cmake -DCMAKE_INSTALL_PREFIX=/usr \      -DWITH_XINE=ON              \      -DBUILD_TESTS=OFF           \      -Wno-dev  ..make
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

或者更简单一点,在确保MD5是808b791a6eac9ed78d32a7666804320e的情况下: 
在OpenCV源代码的根目录下创建目录: 
opencv-3.1.0/3rdparty/ippicv/downloads/Linux-808b791a6eac9ed78d32a7666804320e 
将下载后的ippicv文件拷进去。 
编译OpenCV:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local  ..make
2 0
原创粉丝点击