libcaffe.so: undefined reference

142 views
Skip to first unread message

針島マナ

unread,
Dec 4, 2018, 9:28:10 AM12/4/18
to Caffe Users
Hi,
I have some problems building caffe when "make all".
Ubuntu 16.04 
gcc 4.8.5


.build_release/lib/libcaffe.so: undefined reference to `google::base::CheckOpMessageBuilder::NewString()'
.build_release/lib/libcaffe.so: undefined reference to `cv::imread(std::string const&, int)'
.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 `cv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `leveldb::Status::ToString() const'
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_release/tools/upgrade_net_proto_binary.bin' failed
make: *** [.build_release/tools/upgrade_net_proto_binary.bin] Error 1


How can I solve it?

Dennis Mungai

unread,
Dec 4, 2018, 9:33:15 AM12/4/18
to harih...@gmail.com, Caffe Users
Hello there,

You seem to be missing some dependencies, particularly protobuf and OpenCV dev packages.
Fix that first then proceed.

--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/c0da4565-c7f9-4bd8-a55d-210905a8794f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages