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
最后解决方式是:
之前的脚本都需要运行
在运行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
相关文章推荐
- Makefile:160: recipe for target 'all' failed (Ubuntu 16.06 + Opencv3.2)解决办法
- Osmocombb项目编译GnuArmToolchain中的GCC4.5.2时遇到recipe for target 'doc/cpp.info' failed(texinfo)错误的解决方法
- 解决u-boot 2016.11 ”ERROR: Makefile:1385: recipe for target 'checkarmreloc' failed”
- 很感谢这篇文张【已解决】Makefile:xxx: recipe for target xxx failed +【顺带搞懂了】如何忽略makefile执行过程中的某些命令的错误而得以继续运行
- Apache2 安装错误 recipe for target 'all-recursive' failed
- 采用MingW编译OPENCV,出现recipe for target xxx/can't create precompiled header错误解决方法
- 编译ROS的package包出错,提示recipe for target 'all' failed
- Caffe编译出现:Makefile:603: recipe for target '.build_release/lib/libcaffe-nv.so.0.16.6' failed
- recipe for target 'doc/cpp.info' failed
- /opt/linux/linux-3.5/scripts/kconfig/Makefile:21: recipe for target 'menuconfig' failed错误
- Makefile:944: recipe for target 'drivers' failed
- 交叉编译openssh出现错误Makefile:548: recipe for target 'install_sw' failed
- Makefile:xxx: recipe for target xxx failed +如何忽略makefile执行过程中的某些命令的错误而得以继续运行
- recipe for target 'ninja_wrapper' failed
- Makefile:589: recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed
- cocos2d-x Cygwin编译:recipe for target "xxx/libcocos2d.so" fail解决办法
- 【caffe install】recipe for target 'xxx' failed
- 编译BusyBox时scripts/Makefile.build:197: recipe for target 'loginutils/passwd.o' failed
- makefile:5: recipe for target ' ' failed
- ERROR: Makefile:1385: recipe for target 'checkarmreloc' failed