caffe-fast-rcnn 错误解决途径

2023-11-10

CAFFE深度学习交流群:532629018



root@ubuntu:/usr/local/fast-rcnn/caffe-fast-rcnn# make -j16

CXX src/caffe/syncedmem.cpp
CXX src/caffe/net.cpp
CXX src/caffe/blob.cpp
CXX src/caffe/layer_factory.cpp
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/data_transformer.cpp
CXX src/caffe/solver.cpp
CXX src/caffe/util/upgrade_proto.cpp
CXX src/caffe/util/im2col.cpp
CXX src/caffe/util/math_functions.cpp
CXX src/caffe/util/io.cpp
CXX src/caffe/layers/prelu_layer.cpp
CXX src/caffe/layers/absval_layer.cpp
CXX src/caffe/layers/window_data_layer.cpp
CXX src/caffe/layers/data_layer.cpp
CXX src/caffe/layers/hdf5_output_layer.cpp
src/caffe/layers/hdf5_output_layer.cpp:3:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/layers/hdf5_output_layer.o' failed
make: *** [.build_release/src/caffe/layers/hdf5_output_layer.o] Error 1

make: *** Waiting for unfinished jobs....
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from ./include/caffe/syncedmem.hpp:7,
                 from src/caffe/syncedmem.cpp:4:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
compilation terminated.

Makefile:501: recipe for target '.build_release/src/caffe/syncedmem.o' failed
make: *** [.build_release/src/caffe/syncedmem.o] Error 1
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from src/caffe/util/im2col.cpp:6:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory

compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/util/im2col.o' failed
make: *** [.build_release/src/caffe/util/im2col.o] Error 1
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from ./include/caffe/syncedmem.hpp:7,
                 from ./include/caffe/blob.hpp:10,
                 from ./include/caffe/layer.hpp:8,
                 from src/caffe/net.cpp:9:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/net.o' failed
make: *** [.build_release/src/caffe/net.o] Error 1
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from ./include/caffe/syncedmem.hpp:7,
                 from ./include/caffe/blob.hpp:10,
                 from ./include/caffe/layer.hpp:8,
                 from src/caffe/layer_factory.cpp:3:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from ./include/caffe/syncedmem.hpp:7,
                 from ./include/caffe/blob.hpp:10,
                 from ./include/caffe/filler.hpp:10,
                 from src/caffe/layers/prelu_layer.cpp:4:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/layers/prelu_layer.o' failed
make: *** [.build_release/src/caffe/layers/prelu_layer.o] Error 1
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from ./include/caffe/syncedmem.hpp:7,
                 from ./include/caffe/blob.hpp:10,
                 from ./include/caffe/layer.hpp:8,
                 from src/caffe/layers/absval_layer.cpp:3:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/layers/absval_layer.o' failed
make: *** [.build_release/src/caffe/layers/absval_layer.o] Error 1
In file included from src/caffe/util/upgrade_proto.cpp:10:0:
./include/caffe/util/io.hpp:8:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from ./include/caffe/syncedmem.hpp:7,
                 from ./include/caffe/blob.hpp:10,
                 from ./include/caffe/net.hpp:10,
                 from src/caffe/solver.cpp:7:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/solver.o' failed
make: *** [.build_release/src/caffe/solver.o] Error 1
Makefile:501: recipe for target '.build_release/src/caffe/util/upgrade_proto.o' failed
make: *** [.build_release/src/caffe/util/upgrade_proto.o] Error 1
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from ./include/caffe/syncedmem.hpp:7,
                 from ./include/caffe/blob.hpp:10,
                 from src/caffe/blob.cpp:4:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/blob.o' failed
make: *** [.build_release/src/caffe/blob.o] Error 1
In file included from src/caffe/layers/data_layer.cpp:9:0:
./include/caffe/data_layers.hpp:9:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
In file included from src/caffe/layers/window_data_layer.cpp:15:0:
./include/caffe/data_layers.hpp:9:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/layers/window_data_layer.o' failed
make: *** [.build_release/src/caffe/layers/window_data_layer.o] Error 1
Makefile:501: recipe for target '.build_release/src/caffe/layers/data_layer.o' failed
make: *** [.build_release/src/caffe/layers/data_layer.o] Error 1
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from ./include/caffe/syncedmem.hpp:7,
                 from ./include/caffe/blob.hpp:10,
                 from ./include/caffe/data_transformer.hpp:6,
                 from src/caffe/data_transformer.cpp:6:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/data_transformer.o' failed
make: *** [.build_release/src/caffe/data_transformer.o] Error 1
In file included from src/caffe/util/io.cpp:18:0:
./include/caffe/util/io.hpp:8:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/util/io.o' failed
make: *** [.build_release/src/caffe/util/io.o] Error 1
In file included from ./include/caffe/util/math_functions.hpp:11:0,
                 from src/caffe/util/math_functions.cpp:7:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
compilation terminated.
Makefile:501: recipe for target '.build_release/src/caffe/util/math_functions.o' failed

make: *** [.build_release/src/caffe/util/math_functions.o] Error 1



*************************************原因分析*********************************************

我在caffe-fast-rcnn 文件夹下使用命令make -j16时,出现了上述错误,我分析 是没有安装CBLAS的缘故。接下来安装CBLAS看看能不能解决这个问题。





没有装cblas,参考:http://blog.csdn.net/cleverysm/article/details/1925549,http://www.linuxidc.com/Linux/2015-02/113169.htm
http://www.netlib.org/blas/blast-forum/cblas.tgz
具体:
1. 编译blas,进入BLAS目录执行下面的命令

    gfortran -c  -O3    *.f                # 编译所有的 .f 文件,生成 .o文件 
    ar rv libblas.a      *.o                # 链接所有的 .o文件,生成 .a 文件 

2. 编译cblas,进入CBLAS目录,首先根据自己的操作系统平台,将某个Makefiel.XXX复制为Makefile.in,XXX表示操作系统。如果是Linux,那么就将Makefile.LINUX 复制为 Makefile.in。

    cp ../BLAS/libblas.a  testing  # 将上一步编译成功的 libblas.a 复制到 CBLAS目录下的testing子目录 
    make                                            # 编译所有的目录 

此时会在CBLAS安装目录下的lib目录中产生一个静态链接库文件cblas_LINUX.a,这个库文件和上面得到的libblas.a文件就是我们所需要的。另外还需要的就是CBLAS/include中的cblas.h头文件。将三个文件全部拷贝到,你需调用的应用程序源码目录中。

拷贝到路径下:
cp include/cblas.h /usr/include/
cp lib/cblas_LINUX.a /usr/local/libcblas.a
cp testing/libblas.a /usr/local/lib



照着上面几步走,就可以解决没有cblas.h的问题。





可是又出现了一个问题。



./include/caffe/util/io.hpp:8:18: fatal error: hdf5.h: No such file or directory
compilation terminated.



找不到hdf5.h这个目录,看来CAFFE 的配置就是一个大大的坑啊。


怎么办,继续填坑呗。



请看下一个博客,如何找hdf5.h这个文件 。


本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

caffe-fast-rcnn 错误解决途径 的相关文章

  • ❀OSPF协议面试题总结❀

    文章目录 一 简单介绍下ospf 二 ospf的骨干区域有什么用 为什么要划分一个骨干区域 三 ospf的状态机 四 ospf的lsa有几种 五 ospf路由的生成过程 六 介绍ospf的虚链路 一 简单介绍下ospf 开放式最短路径优先协
  • 力扣2594.修车的最少时间

    题目描述 给你一个整数数组 ranks 表示一些机械工的 能力值 ranksi 是第 i 位机械工的能力值 能力值为 r 的机械工可以在 r n2 分钟内修好 n 辆车 同时给你一个整数 cars 表示总共需要修理的汽车数目 请你返回修理所

随机推荐

  • Android ApiDemos示例解析(87):Media->MediaPlayer

    本例介绍了如何使用MediaPlayer类来播放声音或是视频 涉及的Activity有三个 MediaPlayerDemo 主Activity 显示示例列表 MediaPlayerDemo Audio 子Activity 用于播放声音 在L
  • ConcurrentHashMap1.8总结

    Java8 ConcurrentHashMap结构基本上和Java8的HashMap一样 不过保证线程安全性 在JDK8中ConcurrentHashMap的结构 由于引入了红黑树 使得ConcurrentHashMap的实现非常复杂 我们
  • FPGA学习专栏-串口通信(xinlinx)

    FPGA学习专栏 串口通信 本系列文章基于开发板黑金A309 FPGA芯片为Xilinx公司的spartan6 本系列文章记录FPGA学习历程 文章目录 FPGA学习专栏 串口通信 一 串口通信原理 二 硬件设计 三 verilog代码编写
  • react之装饰器报错:This experimental syntax requires enabling one of the following parser plugin(s): “decor

    在学习mobx时 遇到了 This experimental syntax requires enabling one of the following parser plugin s decorators decorators legac
  • STM32F103ZET6【标准库函数开发】------17 DMA实验

    STM32F103ZET6有2个DMA控制器 DMA1有7个通道 DMA2有5个通道 各个通道对应的外设如下
  • Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed解决方法

    前言 Android Studio 升级到最新版本后 构建项目时 构建失败 出现错误 Caused by org codehaus groovy control MultipleCompilationErrorsException star
  • MySQL的null与not null

    相信很多用了mysql很久的人 对这两个字段属性的概念还不是很清楚 一般会有以下疑问 我字段类型是not null 为什么我可以插入空值 为毛not null的效率比null高 判断字段不为空的时候 到底要 select from tabl
  • IDEA报错:Cannot start compilation: the output path is not specified for module “testSvnKit“.Specify th

    IDEA报错Cannot start compilation the output path is not specified for module testSvnKit Specify the output path in the Pro
  • List分组的两种方式

    java8之前List分组 假设有个student类 有id name score属性 list集合中存放所有学生信息 现在要根据学生姓名进行分组 public Map
  • 精确径向基(matlab工具箱)

    原文地址 精确径向基 matlab工具箱 作者 神经网络之家 作者 梁小h 日期 2015 10 26 09 30 47 0 lt 文档仅供查阅和简单了解 深入了解请关注神经网络之家发布的 神经网络教学视频 gt 精确径向基神经网络在mat
  • HTML详解连载(5)

    HTML详解连载 5 专栏链接 link http t csdn cn xF0H3 下面进行专栏介绍 开始喽 行高 设置多行文本的间距 属性名 属性值 行高的测量方法 行高 垂直居中 技巧 字体族 属性名 属性值 示例 扩展 font 复合
  • 学期总结-2018年上

    从现在开始 我需要养成一个写作的好习惯 之所以培养这个习惯 是因为 我开始发现我的一个重大缺陷 语言表达能力的欠缺 这种能力 在一般生活中并不会有太大的作用 而且很多时候 大部分人都体会不到其所带来的 破坏 这种破坏 会让你的交际陷入阻塞
  • 不能向服务器考文件,如何往云服务器考文件

    如何往云服务器考文件 内容精选 换一换 华为云帮助中心 为用户提供产品简介 价格说明 购买指南 用户指南 API参考 最佳实践 常见问题 视频帮助等技术文档 帮助您快速上手使用华为云服务 无法正常使用Cloud init 弹性云服务器获取M
  • 关于python爬虫逆向RPC的基础使用

    makeRequest function a b c d rpc使用的代码 function 防止重复创建websocket if window flagLX else window weiboLX makeRequest var ws n
  • egg初始化搭建swagger项目

    步骤 安装node 安装你喜欢的编辑器 初始化项目 输入安装 egg 命令 输入安装 egg dev 命令 修改 package json 基本目录结构 需手动创建 输入安装 egg sequelize 命令 数据库选择 配置 sequel
  • Android移动开发-调用摄像头进行拍照的实现

    现在Android智能手机的像素都会提供照相的功能 大部分的手机的摄像头的像素都在1000万以上的像素 有的甚至会更高 它们大多都会支持光学变焦 曝光以及快门等等 下面的程序Demo实例示范了使用Camera v2来进行拍照 当用户按下拍照
  • Windows修改MySQL数据库密码(修改或忘记密码)

    今天练习远程访问数据库时 为了方便访问 就想着把数据库密码改为统一的 以后我们也会经常遇到MySQL需要修改密码的情况 比如密码太简单 忘记密码等等 在这里我就借鉴其他人的方法总结几种修改MySQL密码的方法 我就以实际操作修改root密码
  • Android:安卓学习笔记之MVP模式的简单理解和使用

    Android MVP模式的简单理解和使用 MVP模式 1 为什么使用MVP模式 1 1 实例说明 2 一步步让你理解MVP 2 1 MVP实现第一步 将页面拆分为M V P三个模块 2 2 MVP实现第2步 使用接口通信 进一步解耦 2
  • 高并发中的惊群问题

    目录 1 惊群效应是什么 2 惊群效应消耗了什么 3 惊群的几种情况 3 1 accept惊群 新版内核已解决 3 2 epoll create 在 fork 之前创建 3 3 epoll create 在 fork 之后创建 4 Linu
  • caffe-fast-rcnn 错误解决途径

    CAFFE深度学习交流群 532629018 root ubuntu usr local fast rcnn caffe fast rcnn make j16 CXX src caffe syncedmem cpp CXX src caff