文章目录
#include<caffe/caffe.hpp>出错记录
cublas_v2.h
参考这个
在device_alternate.hpp的头文件上加上 #define CPU_ONLY
OK!
caffe/proto/caffe.pb.h
又出错了
"message": "cannot open source file \"caffe/proto/caffe.pb.h\" (dependency of \"caffe/caffe.hpp\")",
参考这个
打开终端进入caffe
路径
mkdir include/caffe/proto
protoc ./src/caffe/proto/caffe.proto --cpp_out=.
mv ./src/caffe/proto/caffe.pb.h ./include/caffe/proto
make clean
make all -j4
此处重新编译了,修改caffe编译
OK
boost system
/tmp/ccIbmuee.o: In function `__static_initialization_and_destruction_0(int, int)':
mapnik-test.cpp:(.text+0x49): undefined reference to `boost::system::generic_category()'
mapnik-test.cpp:(.text+0x53): undefined reference to `boost::system::generic_category()'
mapnik-test.cpp:(.text+0x5d): undefined reference to `boost::system::system_category()'
collect2: ld returned 1 exit
参考这个
修改tasks.json
, "args"中加入