编译caffe时候抛出的错误

我在安装ubuntu14.04上安装了cuda7.5,cudnn4.0等,使用起来都挺好的,没什么问题,最近,把21天实战caffe上面第五天的以来库都装完之后,准备装matcaffe,先装了matlab2015b,发现只支持gcc4.7,而ubuntu自带gcc4.8,然后我把4.7安上了,就在感觉快要大功告成之时,编译caffe,爆出错误和操作过程如下:

这里用了两种编译方法,一种直接在caffe根目录下编译,一种先建立build目录再在build目录下编译,结果都不行:

第一种:

prlab@prlab-All-Series:~$ ls

blob_demo.cpp  cuda-workspace    matlab                   公共的  图片  音乐

build          examples.desktop  NVIDIA_CUDA-7.5_Samples  模板    文档  桌面

caffe          local_install     tensorflow               视频    下载

prlab@prlab-All-Series:~$ cd caffe

prlab@prlab-All-Series:~/caffe$ ls

caffe.cloc       CONTRIBUTORS.md  docs        LICENSE          models     src

cmake            data             examples    Makefile         python     tools

CMakeLists.txt   distribute       include     Makefile.config  README.md

CONTRIBUTING.md  docker           INSTALL.md  matlab           scripts

prlab@prlab-All-Series:~/caffe$ make

报错:

CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin

/usr/bin/ld: warning: libboost_system.so.1.56.0, needed by .build_release/lib/libcaffe.so, not found (try using -rpath or -rpath-link)

/usr/bin/ld: warning: libboost_thread.so.1.56.0, needed by .build_release/lib/libcaffe.so, not found (try using -rpath or -rpath-link)

/usr/bin/ld: warning: libopenblas.so.0, needed by .build_release/lib/libcaffe.so, not found (try using -rpath or -rpath-link)

.build_release/lib/libcaffe.so:对‘cv::imread(cv::String const&, int)’未定义的引用

.build_release/lib/libcaffe.so:对‘cv::imencode(cv::String const&, cv::_InputArray const&, std::vector >&, std::vector > const&)’未定义的引用

.build_release/lib/libcaffe.so:对‘cv::imdecode(cv::_InputArray const&, int)’未定义的引用

collect2: 错误: ld 返回 1

make: *** [.build_release/tools/upgrade_net_proto_text.bin] 错误 1

--------------------------------------------------------------------------------------------------------------

第二种:

prlab@prlab-All-Series:~/caffe$ mkdir build

prlab@prlab-All-Series:~/caffe$ cd build

prlab@prlab-All-Series:~/caffe/build$ ls

prlab@prlab-All-Series:~/caffe/build$ cmake -DBLAS=open ..

-- The C compiler identification is GNU 4.7.3

-- The CXX compiler identification is GNU 4.7.3

-- Check for working C compiler: /usr/bin/cc

-- Check for working C compiler: /usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Boost version: 1.54.0

-- Found the following Boost libraries:

--   system

--   thread

--   filesystem

-- Looking for include file pthread.h

-- Looking for include file pthread.h - found

-- Looking for pthread_create

-- Looking for pthread_create - not found

-- Looking for pthread_create in pthreads

-- Looking for pthread_create in pthreads - not found

-- Looking for pthread_create in pthread

-- Looking for pthread_create in pthread - found

-- Found Threads: TRUE

-- Found GFlags: /usr/include

-- Found gflags  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)

-- Found Glog: /usr/include

-- Found glog    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)

-- Found PROTOBUF: /usr/lib/x86_64-linux-gnu/libprotobuf.so

-- Found PROTOBUF Compiler: /usr/bin/protoc

-- Found HDF5: /usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so

-- Found LMDB: /usr/include

-- Found lmdb    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)

-- Found LevelDB: /usr/include

-- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)

-- Found Snappy: /usr/include

-- Found Snappy  (include: /usr/include, library: /usr/lib/libsnappy.so)

-- CUDA detected: 7.5

-- Found cuDNN: ver. 4.0.7 found (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)

-- Added CUDA NVCC flags for: sm_61

-- OpenCV found (/usr/local/share/OpenCV)

-- Found OpenBLAS libraries: /usr/lib/libopenblas.so

-- Found OpenBLAS include: /usr/include

-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7")

-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.6", minimum required is "2.7")

Traceback (most recent call last):

File "", line 1, in

ImportError: No module named numpy

-- Could NOT find NumPy (missing:  NUMPY_INCLUDE_DIR NUMPY_VERSION) (Required is at least version "1.7.1")

-- Boost version: 1.54.0

-- Found the following Boost libraries:

--   python

-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)

-- Python interface is disabled or not all required dependencies found. Building without it...

-- Found Git: /usr/bin/git (found version "1.9.1")

--

-- ******************* Caffe Configuration Summary *******************

-- General:

--   Version           :   1.0.0-rc3

--   Git               :   rc3-222-g375003a-dirty

--   System            :   Linux

--   C++ compiler      :   /usr/bin/c++

--   Release CXX flags :   -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized

--   Debug CXX flags   :   -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized

--   Build type        :   Release

--

--   BUILD_SHARED_LIBS :   ON

--   BUILD_python      :   ON

--   BUILD_matlab      :   OFF

--   BUILD_docs        :   ON

--   CPU_ONLY          :   OFF

--   USE_OPENCV        :   ON

--   USE_LEVELDB       :   ON

--   USE_LMDB          :   ON

--   ALLOW_LMDB_NOLOCK :   OFF

--

-- Dependencies:

--   BLAS              :   Yes (open)

--   Boost             :   Yes (ver. 1.54)

--   glog              :   Yes

--   gflags            :   Yes

--   protobuf          :   Yes (ver. 2.5.0)

--   lmdb              :   Yes (ver. 0.9.10)

--   LevelDB           :   Yes (ver. 1.15)

--   Snappy            :   Yes (ver. 1.1.0)

--   OpenCV            :   Yes (ver. 3.0.0)

--   CUDA              :   Yes (ver. 7.5)

--

-- NVIDIA CUDA:

--   Target GPU(s)     :   Auto

--   GPU arch(s)       :   sm_61

--   cuDNN             :   Yes (ver. 4.0.7)

--

-- Documentaion:

--   Doxygen           :   No

--   config_file       :

--

-- Install:

--   Install path      :   /home/prlab/caffe/build/install

--

-- Configuring done

-- Generating done

-- Build files have been written to: /home/prlab/caffe/build

prlab@prlab-All-Series:~/caffe/build$ make all

报错:

[  0%] Running C++/Python protocol buffer compiler on /home/prlab/caffe/src/caffe/proto/caffe.proto

Scanning dependencies of target proto

[  0%] Building CXX object src/caffe/CMakeFiles/proto.dir/__/__/include/caffe/proto/caffe.pb.cc.o

Linking CXX static library ../../lib/libproto.a

[  0%] Built target proto

[  0%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile.dir/layers/./cuda_compile_generated_eltwise_layer.cu.o

nvcc fatal   : Unsupported gpu architecture 'compute_61'

CMake Error at cuda_compile_generated_eltwise_layer.cu.o.cmake:206 (message):

Error generating

/home/prlab/caffe/build/src/caffe/CMakeFiles/cuda_compile.dir/layers/./cuda_compile_generated_eltwise_layer.cu.o

make[2]: *** [src/caffe/CMakeFiles/cuda_compile.dir/layers/./cuda_compile_generated_eltwise_layer.cu.o] 错误 1

make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] 错误 2

make: *** [all] 错误 2

求解决办法!!

没有找到相关结果

已邀请:

与内容相关的链接

caffe cmake matlab,编译caffe时候抛出的错误相关推荐

  1. php oracle 无查询结果,php - Oracle Insert查询不起作用,也不会抛出任何错误 - 堆栈内存溢出...

    嗨,我是Oracle的新手. 我试图在PHP中使用oracle将记录插入表中. 但它不起作用,也没有抛出任何错误. 以下是我的代码. 请告诉我我做错了什么. $insertSQL= "INS ...

  2. 一个js文件 多个html文件怎么打开,通过PHP在PhantomJs中打开多个html文件抛出语法错误...

    我想让我的php脚本从命令行调用phantomjs,这将从许多html文件中生成多个pdf.所以我有一个连接字符串与路径我的HTML文件,接下来我调用exec命令:通过PHP在PhantomJs中打开 ...

  3. getch计算机错误,为什么getch()在C中抛出一个错误

    我正在Windows XP中的Code :: Blocks中运行一个C程序. 我得到一个错误为什么getch()在C中抛出一个错误 "drawing operation is attempe ...

  4. Traceback抛出详细错误信息

    Traceback抛出详细错误信息 1.概述 在python默认的抛出异常错误信息中给出的提示很少时不利于定位问题原因,需要一个详细的信息辅助定位问题,使用Traceback模块可以打印出详细的信息, ...

  5. mvc4 renderpartial html,MVC4使用嵌套@ Html.RenderPartial()抛出编译器错误信息:CS1502...

    我使用MVC 4,想整理一下我的看法了一点,所以决定创建多个局部视图和渲染过程中把他们聚在一起.MVC4使用嵌套@ Html.RenderPartial()抛出编译器错误信息:CS1502 这个工作原 ...

  6. java 主动抛出 段错误_段错误产生的原因~

    原文:https://blog.csdn.net/qq_29350001/article/details/53780697 一.什么是段错误? 一旦一个程序发生了越界访问,cpu 就会产生相应的保护, ...

  7. 如何友好的处理 WebApi 中抛出的错误

    微软的 ASP.NET Web API 是一个轻量级的web框架,可用来构建基于 http 无状态的rest服务,异常是一种运行时错误,异常处理是一种处理运行时错误的技术,每一个开发者都应该知道如何处 ...

  8. java 发送邮件553错误_使用Java Mail API发送邮件,抛出认证错误553 authentication is required. 解决办法...

    转载原文:https://blog.csdn.net/sun2015_07_24/article/details/52074898 在使用Java Mail API的过程中,抛出553 authent ...

  9. 解决oracle数据库的表中存在异常日期值在查询时抛出ora-01841错误的办法

    生产环境的服务器上,在查询时抛出SQLDataException,错误代码为ora-01841 ORA-01841: (完整) 年份值必须介于 -4713 和 +9999 之间, 且不为 0 经排查是 ...

最新文章

  1. Java:获取数组中的子数组的多种方法
  2. 每天睡4小时上7门课
  3. 使用驱动器f:中的光盘之前需要将其格式化_硬盘无法使用,用DiskPart进行分区和格式化,非常简单...
  4. boost::mp11::mp_copy_if相关用法的测试程序
  5. pythonの鉴黄之路(二)——图片转base64码
  6. React基础篇(三)之 webpack打包项目配制
  7. Bootstrap 打印机类
  8. 全站仪与计算机之间的数据传输,必看!全站仪数据传输的三种方式详解,都安排得明明白白(上)...
  9. 简要分析JM8.6代码中foreman_part_qcif.yuv文件的YUV数据如何悄无声息地进入程序
  10. lombok 的使用
  11. c++线程间通信的几种方法_JAVA并发之线程amp;进程
  12. 洛谷oj---P1896 [SCOI2005] 互不侵犯
  13. 关于ReWrite配置及iis重启命令
  14. 3dB短缝波导耦合器设计
  15. 武汉市政府官网转载,长江日报、武汉电视台重磅报道,这场区块链大会厉害了!...
  16. NX二次开发(Python)-UIStyler-选择体和按钮操作
  17. 软考之---软件设计师考试经验与笔记分享
  18. 华为的冬天 任正非
  19. java:多线程的 共享资源冲突问题
  20. 20130723 上海OOW第二日

热门文章

  1. 一个程序员多年的收藏
  2. 管理系统开发的常见软件
  3. 人工智能和嵌入式|大数据|云计算等的关系
  4. jqfactor_analyzer源代码解读02
  5. 这款 SQL自动检查神器,吊炸天的功能,真TMD多!!
  6. 全站仪坐标计算机公式,全站仪测量时,坐标n,e,z如何对应于图形坐标x,y,z?...
  7. 用马青公式计算圆周率,Python语言
  8. android 代码浅黄色,Android工程中让人很不爽的“黄色警告”
  9. 第14.4节 使用IE浏览器获取网站访问的http信息
  10. YTU 3837问题 E: 一道老卢题