在编译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

opencv recipe for target 'all' failed解决相关推荐

  1. make make install出现recipe for target 'install-binPROGRAMS' failed解决办法

    原因:权限不足 解决方法: cd到上层目录,最好是更上层,例如我的系统中的usr目录 给你刚才工作的目录加入最高权限,代码如下,我是用我的local目录为例: sudo chmod -R 777 lo ...

  2. android 8.0.0-r1 源码编译遇到的问题build/core/main.mk:21: recipe for target 'run_soong_ui' failed 解决

    好处:使用studio查看源码的时候,如果不生成.ipr .iml文件,查看的Java文件是无法索引到其他的文件的,需要一个一个的搜索,很不方便,而.ipr .iml文件就可以解决这部分问题,而且它还 ...

  3. Makefile:160: recipe for target 'all' failed (Ubuntu 16.06 + Opencv3.2)解决办法

    前言 之前一直用的opencv 好好的,今天安装了anaconda之后,python中的opencv不能用了,即便是拷贝cv2.so之后也是不能用,问题如下: 根本原因 安装anaconda之后,很多 ...

  4. pcl的安装错误和高翔第5讲程序编译错误recipe for target 'all' failed

    今天编译程序的时候 遇到了这个错误: Makefile:149: recipe for target 'all' failed 之前其实安装pcl时也遇到过,但是以为是资源或者一些小原因,就只是照着网 ...

  5. 在Ubuntu下,编译Kernel报错:Makefile:xxx: recipe for target 'xxx' failed

    **在Ubuntu下,编译Kernel报如下错误:** Makefile:xxx: recipe for target 'xxx' failed make[2]:***[arch/arm/boot/c ...

  6. makefile recipe for target ‘install‘ failed 解决方案

    recipe for target 'install' failed 是什么原因 问题 常见原因:查看最近改的xxxx.mak (makefile)文件是否有空格/乱码/中间追究注释# 解决方法: 1 ...

  7. MPLAB构建项目报错“recipe for target ‘.build-conf‘ failed”

    "recipe for target '.build-conf' failed" 刚入门单片机,在写程序时,当时写完,build成功,但是第二天过来,改写了部分代码,然后去buil ...

  8. 处理 Makefile: recipe for target ‘xxxxx‘ failed 错误

    运行make命令的时候报错: Makefile:638: recipe for target 'xxxxxxx' failed make: *** [xxxxxx] Error 1 仔细检查,buil ...

  9. Makefile:104: recipe for target ‘product_timestamp‘ failed

    当vcs出现报错:Makefile:104: recipe for target 'product_timestamp' failed make[1]: *** [product_timestamp] ...

最新文章

  1. XCode中安装cocoapods步骤
  2. html局部可复制,截取网页局部区域css样式的方法和系统的制作方法
  3. Django入门-项目创建与初识子应用
  4. 简述python的编程规范_python编程规范
  5. 简单实现UITableView索引功能(中英文首字母索引)(一) ByH罗
  6. 编写第一个Java程序:helloworld
  7. html加了文档声明之后页面错乱,为登陆页面扩展和配置设计导入程序
  8. Android网络库的比较:OkHTTP,Retrofit和Volley [关闭]
  9. debian+gnu/linux+9,Steam for Debian GNU/Linux
  10. Vue快速上手笔记2 - 开发环境的搭建
  11. no phone android,NoPhoneSpam | F-Droid - Free and Open Source Android App Repository
  12. 谷歌学术首页url爬取
  13. Flask蓝本(Blueprint)
  14. Vulkan_Ray Tracing 01_API基础
  15. BPM平台在企业业务系统中使用的价值讨论
  16. 全网最新小白API查Q绑定带反查SGK+带接口
  17. 我为什么要辞掉20万的工作去读研?
  18. 如何用计算机播放高保真音乐,Marantz(马兰士)NA8005数字音乐流媒体播放机 各种音乐播放与操作方法详解...
  19. 链传动运动仿真(motion分析)制作包含源文件
  20. Git - 安装与配置

热门文章

  1. visual c 语言参考手册pdf,《Microsoft-Visual-C-6-0语言参考手册(三)》.pdf
  2. matlab中如何区分两幅图的亮度_高中历史教学中利用老地图设计习题的尝试
  3. $.post请求的参数在后台代码中得到为null_996难得休息,小伙打开steam网页看了一款游戏,输入密码后却习惯性按了F12研究起了JS代码...
  4. linux apache 安装 rewrite,linux下单独编译安装Apache rewrite_module
  5. linux mysql互为主从_mysql互为主从配置(双主模型)
  6. ApplicationStartedEvent 与 ContextStartedEvent 有区别吗?
  7. 成都有哪些牛逼的互联网公司?
  8. 每日一皮:程序员距离人生目标只有一个沟
  9. 速领:「人工智能算法从入门到精通教程」
  10. 实践Jenkins集成Cobertura自动化构建SpringBoot工程