BVLC / caffe

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

run make all,error #6961

Open lccui opened 3 years ago

lccui commented 3 years ago

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 togoogle::base::CheckOpMessageBuilder::NewString()' .build_release/tools/caffe.o: In function main': caffe.cpp:(.text.startup+0x3e): undefined reference togoogle::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 togoogle::FlagRegisterer::FlagRegisterer(char const, char const, char const, std::string, std::string)' caffe.cpp:(.text.startup+0x49d): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const, char const, char const, std::string, std::string)' caffe.cpp:(.text.startup+0x542): undefined reference to google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)' caffe.cpp:(.text.startup+0x616): undefined reference togoogle::FlagRegisterer::FlagRegisterer(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::FlagRegisterer(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 toleveldb::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

Issue checklist

lccui commented 3 years ago

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.

haiduo commented 3 years ago

solve?

JiangxinkeTao commented 3 years ago

is the question solved ?