根据教程https://blog.csdn.net/jiajinrang93/article/details/80337513?tdsourcetag=s_pctim_aiomsg 在Linux服务器上配置caffe,
cmake 时出现:
CMake Error at CMakeLists.txt:107 (add_dependencies):
The dependency target "pycaffe" of target "pytest" does not exist.
但此错误不影响后续make 和 make install 以及 make runtest都可以通过
然后在配置python接口时使用命令:
cd ~/caffe
make pycaffe
出现错误:
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0:
.build_release/src/caffe/proto/caffe.pb.h:9:42: fatal error: google/protobuf/stubs/common.h: No such file or directory
compilation terminated.
Makefile:598: recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1
以上问题已经解决√
新的问题:
make pycaffe出现
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lhdf5_serial_hl
/usr/bin/ld: cannot find -lhdf5_serial
/usr/bin/ld: cannot find -lboost_python
collect2: error: ld returned 1 exit status
Makefile:582: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1