1. caffe.pb.h丢失问题

错误代码如图:
caffe编译错误记录 随笔 第1张

zhuoshi@zhuoshi-SYS-7048GR-TR:~/ZSZT/Geoffrey/caffe/caffe-master$ make all –j8
PROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/layer.cpp
In file included from ./include/caffe/common.hpp:19:0,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layer.hpp:8,
                 from src/caffe/layer.cpp:1:
./include/caffe/util/device_alternate.hpp:34:23: fatal error: cublas_v2.h: No such file or directory
compilation terminated.
Makefile:591: recipe for target '.build_release/src/caffe/layer.o' failed
make: *** [.build_release/src/caffe/layer.o] Error 1

解决方法

解决办法参考这个博客:http://blog.csdn.net/xmzwlw/article/details/48270225, 用protoc从caffe/src/caffe/proto/caffe.proto生成caffe.pb.h和caffe.pb.cc.
但是有个问题需要注意,此处不能使用'~', 而要使用完整路径
caffe编译错误记录 随笔 第2张

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

2. 未定义的引用, undefined reference to 'cblas_scopy'

caffe编译错误记录 随笔 第3张
参考这篇博客,https://blog.csdn.net/sdlypyzq/article/details/85237512, 的确是搞笑, 我也在open后面多了个空格,去掉就可以了.
caffe编译错误记录 随笔 第4张

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄