Skip to content

Instantly share code, notes, and snippets.

@mayankjuneja
Created January 20, 2014 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayankjuneja/8517932 to your computer and use it in GitHub Desktop.
Save mayankjuneja/8517932 to your computer and use it in GitHub Desktop.
Error log while building caffe on Mavericks
Undefined symbols for architecture x86_64:
"cv::imread(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)", referenced from:
caffe::ReadImageToDatum(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, int, caffe::Datum*) in io.o
"google::protobuf::MessageLite::ParseFromString(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
caffe::DataLayer<double>::SetUp(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> >*) in data_layer.o
caffe::DataLayer<float>::SetUp(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> >*) in data_layer.o
void* caffe::DataLayerPrefetch<float>(void*) in data_layer.o
void* caffe::DataLayerPrefetch<double>(void*) in data_layer.o
caffe::Net<double>::Forward(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in net.o
caffe::Net<float>::Forward(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in net.o
"google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))", referenced from:
caffe::protobuf_AddDesc_caffe_2fproto_2fcaffe_2eproto() in caffe.pb.o
"google::protobuf::internal::WireFormatLite::ReadString(google::protobuf::io::CodedInputStream*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)", referenced from:
caffe::FillerParameter::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in caffe.pb.o
caffe::SolverParameter::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in caffe.pb.o
caffe::SolverState::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in caffe.pb.o
caffe::LayerParameter::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in caffe.pb.o
caffe::LayerConnection::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in caffe.pb.o
caffe::NetParameter::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in caffe.pb.o
"google::protobuf::internal::WireFormatLite::WriteBytes(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)", referenced from:
caffe::Datum::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in caffe.pb.o
"google::protobuf::internal::WireFormatLite::WriteString(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)", referenced from:
caffe::SolverState::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in caffe.pb.o
caffe::LayerConnection::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in caffe.pb.o
caffe::FillerParameter::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in caffe.pb.o
caffe::SolverParameter::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in caffe.pb.o
caffe::NetParameter::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in caffe.pb.o
caffe::LayerParameter::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in caffe.pb.o
"google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)", referenced from:
caffe::Datum::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*) in caffe.pb.o
"google::protobuf::internal::StringTypeHandlerBase::Delete(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)", referenced from:
google::protobuf::RepeatedPtrField<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::~RepeatedPtrField() in caffe.pb.o
"leveldb::DB::Open(leveldb::Options const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, leveldb::DB**)", referenced from:
caffe::DataLayer<double>::SetUp(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> >*) in data_layer.o
caffe::DataLayer<float>::SetUp(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> >*) in data_layer.o
"google::protobuf::MessageLite::SerializeToString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const", referenced from:
caffe::Net<double>::Forward(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in net.o
caffe::Net<float>::Forward(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in net.o
"google::protobuf::DescriptorPool::FindFileByName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const", referenced from:
caffe::protobuf_AssignDesc_caffe_2fproto_2fcaffe_2eproto() in caffe.pb.o
"google::protobuf::Message::SerializeToOstream(std::basic_ostream<char, std::char_traits<char> >*) const", referenced from:
caffe::WriteProtoToBinaryFile(google::protobuf::Message const&, char const*) in io.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [libcaffe.so] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment