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

本文提供了解决OpenCV 3.1安装过程中ippicv_linux_20151201文件下载失败的方法。通过手动下载ippicv文件并将其放置在指定目录,再进行OpenCV的编译配置,可以成功完成安装。

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

解决的办法是手动下载:

Download MD5 sum: 6082ee2124d4066581a7386972bfd52a
Download size: 76 MB
Estimated disk space required: 1.8 GB
Estimated build time: 4.9 SBU
  • 1
  • 2
  • 3
  • 4
  • 1
  • 2
  • 3
  • 4

解压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

转载于:https://www.cnblogs.com/huty/p/8517212.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值