caffe
caffe copied to clipboard
run make all,error
Important - read before submitting
Please read the guidelines for contributing before submitting this issue!
Please do not post installation, build, usage, or modeling questions, or other requests for help to Issues. Use the caffe-users list instead. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.
Issue summary
Steps to reproduce
Tried solutions
CXX/LD -o .build_release/tools/caffe.bin
.build_release/tools/caffe.o: In function std::string* google::MakeCheckOpString<unsigned long, int>(unsigned long const&, int const&, char const*)': caffe.cpp:(.text._ZN6google17MakeCheckOpStringImiEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringImiEEPSsRKT_RKT0_PKc]+0x43): undefined reference to
google::base::CheckOpMessageBuilder::NewString()'
.build_release/tools/caffe.o: In function main': caffe.cpp:(.text.startup+0x3e): undefined reference to
google::SetVersionString(std::string const&)'
caffe.cpp:(.text.startup+0x6e): undefined reference to google::SetUsageMessage(std::string const&)' .build_release/tools/caffe.o: In function
_GLOBAL__sub_I_caffe.cpp':
caffe.cpp:(.text.startup+0x34c): undefined reference to google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)' caffe.cpp:(.text.startup+0x3f8): undefined reference to
google::FlagRegisterer::FlagRegistererstd::string(char const*, char const*, char const*, std::string*, std::string*)'
caffe.cpp:(.text.startup+0x49d): undefined reference to google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)' caffe.cpp:(.text.startup+0x542): undefined reference to
google::FlagRegisterer::FlagRegistererstd::string(char const*, char const*, char const*, std::string*, std::string*)'
caffe.cpp:(.text.startup+0x616): undefined reference to google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)' .build_release/tools/caffe.o:caffe.cpp:(.text.startup+0x6bb): more undefined references to
google::FlagRegisterer::FlagRegistererstd::string(char const*, char const*, char const*, std::string*, std::string*)' follow
.build_release/lib/libcaffe.so: undefined reference to leveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)' .build_release/lib/libcaffe.so: undefined reference to
leveldb::Status::ToString() const'
collect2: error: ld returned 1 exit status
Makefile:635: recipe for target '.build_release/tools/caffe.bin' failed
make: *** [.build_release/tools/caffe.bin] Error 1
System configuration
- Operating system: ubuntu18.04
- Compiler: gcc-4.8
- CUDA version (if applicable):
- CUDNN version (if applicable):
- BLAS:
- Python version (if using pycaffe):
- MATLAB version (if using matcaffe):
Issue checklist
- [ ] read the guidelines and removed the first paragraph
- [ ] written a short summary and detailed steps to reproduce
- [ ] explained how solutions to related problems failed (tick if found none)
- [ ] filled system configuration
- [ ] attached relevant logs/config files (tick if not applicable)
The last question is passed.
ubuntu 18.04 gcc-4.8 g++-4.8 CUDA9.0 CUDNN7.6,but no use
New question:
[ 86%] Building CXX object tools/CMakeFiles/upgrade_solver_proto_text.dir/upgrade_solver_proto_text.cpp.o
[ 87%] Linking CXX executable upgrade_solver_proto_text
../lib/libcaffe.so.1.0.0: undefined reference to `leveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)'
../lib/libcaffe.so.1.0.0: undefined reference to `google::base::CheckOpMessageBuilder::NewString()'
../lib/libcaffe.so.1.0.0: undefined reference to `leveldb::Status::ToString() const'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/upgrade_solver_proto_text.dir/build.make:141: recipe for target 'tools/upgrade_solver_proto_text' failed
make[2]: *** [tools/upgrade_solver_proto_text] Error 1
CMakeFiles/Makefile2:457: recipe for target 'tools/CMakeFiles/upgrade_solver_proto_text.dir/all' failed
make[1]: *** [tools/CMakeFiles/upgrade_solver_proto_text.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
I want to know the resons.
solve?
is the question solved ?