BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.13k stars 18.68k forks source link

.build_release/tools/extract_features.bin] Error 1 #5693

Open pearlmary opened 7 years ago

pearlmary commented 7 years ago

Please use the caffe-users list for usage, installation, or modeling questions, or other requests for help. Do not post such requests to Issues. Doing so interferes with the development of Caffe.

Please read the guidelines for contributing before submitting this issue.

Issue summary

Steps to reproduce

If you are having difficulty building Caffe or training a model, please ask the caffe-users mailing list. If you are reporting a build error that seems to be due to a bug in Caffe, please attach your build configuration (either Makefile.config or CMakeCache.txt) and the output of the make (or cmake) command.

Your system configuration

Operating system: Compiler: CUDA version (if applicable): CUDNN version (if applicable): BLAS: Python or MATLAB version (for pycaffe and matcaffe respectively):

pearlmary commented 7 years ago

CXX/LD -o .build_release/tools/extract_features.bin .build_release/tools/extract_features.o: In function std::string* google::MakeCheckOpString<int, int>(int const&, int const&, char const*)': extract_features.cpp:(.text._ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc]+0x40): undefined reference togoogle::base::CheckOpMessageBuilder::NewString()' .build_release/tools/extract_features.o: In function std::string* google::MakeCheckOpString<unsigned long, unsigned long>(unsigned long const&, unsigned long const&, char const*)': extract_features.cpp:(.text._ZN6google17MakeCheckOpStringImmEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringImmEEPSsRKT_RKT0_PKc]+0x42): undefined reference togoogle::base::CheckOpMessageBuilder::NewString()' .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 toleveldb::Status::ToString() const' collect2: error: ld returned 1 exit status Makefile:625: recipe for target '.build_release/tools/extract_features.bin' failed make: *** [.build_release/tools/extract_features.bin] Error 1

My os is ubuntu 16.04 I downgraded my gcc and g++ to 4.7 for matlab interface I installed protobuf 2.5.0 from source

Any help is appreciated

guoqiaomixian commented 7 years ago

@pearlmary i am also have same issue, haven't you solved it!

pearlmary commented 7 years ago

Yeah, I solved it. Try to build leveldb from source.