您的位置:首页 > 大数据 > 人工智能

opencv recipe for target 'all' failed解决

2017-01-18 20:01 513 查看
在编译opencv3.0的时候,编译到了90%都成功了,然后报了这个异常,网上搜索,也没找到正确方法

最后解决方式是:

之前的脚本都需要运行

在运行apt-get update时,下载一个东西,下载了1000多遍也不成,把update注释掉,再执行前面的安装

再编译,就成功了。
https://github.com/cmayet/docker_python2.7_opencv3.0.0
#!/bin/bash

apt-get update

apt-get install -y --no-install-recommends apt-utils

apt-get install -y --no-install-recommends python python-pip \

libpython2.7 \

build-essential \

gfortran \

libatlas-base-dev \

python-dev \

python2.7-dev \

python-tk \

cmake pkg-config \

libjpeg8-dev \

libtiff5-dev \

libjasper-dev \

libpng12-dev \

libavcodec-dev \

libavformat-dev \

libswscale-dev \

libv4l-dev wget \

unzip

pip install --upgrade pip

pip install numpy

wget --no-check-certificate https://codeload.github.com/opencv/opencv/zip/3.0.0
unzip 3.0.0 && rm -rf 3.0.0

cd opencv-3.0.0&& mkdir build && cd build

cmake -D CMAKE_BUILD_TYPE=RELEASE ..

make -j 4

make install

apt-get remove --purge -y gfortran build-essential cmake python-pip

rm -rf /var/lib/apt/lists/* /var/cache/apt/archives
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐