caffe下 make clean后make all后出现
CXX/LD -o .build_release/tools/convert_imageset.bin
/usr/bin/ld: .build_release/tools/convert_imageset.o: undefined reference to symbol '_ZN6google14FlagRegistererC1EPKcS2_S2_S2_PvS3_'
//usr/lib/x86_64-linux-gnu/libgflags.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:626: recipe for target '.build_release/tools/convert_imageset.bin' failed
make: *** [.build_release/tools/convert_imageset.bin] Error 1
很明显是你的gflags没有装好,建议你通过下载源码编译安装,这样出错概率小一些。不要用apt-get安装caffe的一些依赖库。
安装指导见:
https://github.com/gflags/gflags/blob/master/INSTALL.md
望采纳!
谢谢,我把之前的依赖项都卸了,再重新装一遍,可以编译成功,但在另一个caffe工程中出现
make pycaffe
PROTOC src/caffe/proto/caffe.proto
caffe.proto:793:36: Field numbers must be positive integers.
Makefile:632: recipe for target '.build_release/src/caffe/proto/caffe.pb.cc' failed
make: *** [.build_release/src/caffe/proto/caffe.pb.cc] Error 1