C3D
C3D copied to clipboard
make all in C3D-v1.0 always failed
Hello, I git clone C3D and copied Makefile.config from caffe installed successful. Then, I make all in C3D-v1.0,but I always get fault result such as
:upgrade_proto.cppbase::(:.CheckOpMessageBuildertext:+:0xa3dNewString)(:) 'undefined
buildreference/ libto/ libcaffe.a(googleimage_io.o:)::protobuf :In: internalfunction: :
empty_string_caffe':
:upgrade_proto.cppReadImageSequenceToVolumeDatum:((char. textconst+0xd35,) :int ,undefined intreference, toint ,googleint:,: protobufint:,: internalint:,: empty_string_caffe': :upgrade_proto.cppVolumeDatum:*().'text:+ 0x23f3image_io.cpp)::( .undefinedtext +reference0x4ee )to:
undefinedgoogle :reference: protobufto: :internalgoogle::::empty_string_protobuf': :buildinternal/:lib:/empty_string_libcaffe.a'( upgrade_proto.oimage_io.cpp)::( .Intext +function0x9fb )
:caffe :undefined: NetParameterToPrettyPrintreference( caffeto: :NetParametergoogle :const:&protobuf,: :caffeinternal::::NetParameterPrettyPrintempty_string_*') 'build:/ libupgrade_proto.cpp/:libcaffe.a((.image_io.otext)+:0x30b1 )In: functionundefined
referencecaffe :to: ReadVideoToVolumeDatum(googlechar: :constprotobuf*:,: internalint:,: StringTypeHandlerBaseint:,: Newint(,) 'int ,upgrade_proto.cpp :int(,. textint+,0x3233 )caffe:: :undefinedVolumeDatum *reference) 'to:
image_io.cppgoogle::(:.protobuftext:+:0x1ccbinternal)::: empty_string_undefined'
referencebuild /tolib /libcaffe.agoogle(:upgrade_proto.o:)protobuf:: :Ininternal :function: empty_string_
'caffe
:image_io.cpp::UpgradeV0Net((.caffetext:+:0x1f47NetParameter) :const &undefined, referencecaffe :to: NetParameter*google):'::protobuf :upgrade_proto.cpp::internal(:.:textempty_string_+'0x3ea1 ): undefined reference to
google::protobuf::internal::StringTypeHandlerBase::New()'
upgrade_proto.cpp:(.text+0x3fa0): undefined reference to google::protobuf::internal::empty_string_' build/lib/libcaffe.a(upgrade_proto.o): In function
std::string google::MakeCheckOpString<std::string, char [5]>(std::string const&, char const (&) [5], char const)':
collect2: error: ld returned 1 exit statusupgrade_proto.cpp:
(.text._ZN6google17MakeCheckOpStringISsA5_cEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringISsA5_cEEPSsRKT_RKT0_PKc]+0x59): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(math_functions.o): In function
std::string google::MakeCheckOpString<float, float>(float const&, float const&, char const*)':
math_functions.cpp:(.text._ZN6google17MakeCheckOpStringIffEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIffEEPSsRKT_RKT0_PKc]+0x4a): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(math_functions.o): In function
std::string* google::MakeCheckOpString<double, double>(double const&, double const&, char const*)':
math_functions.cpp:(.text._ZN6google17MakeCheckOpStringIddEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIddEEPSsRKT_RKT0_PKc]+0x44): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(math_functions.o): In function
std::string* google::MakeCheckOpString<float, int>(float const&, int const&, char const*)':
math_functions.cpp:(.text._ZN6google17MakeCheckOpStringIfiEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIfiEEPSsRKT_RKT0_PKc]+0x45): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/Makefile:316: recipe for target 'build/tools/test_net.bin' failed libcaffe.a(math_functions.o):make: *** [build/tools/test_net.bin] Error 1 In function
std::string* google::MakeCheckOpString<double, int>(double const&, int const&, char const*)':
math_functions.cpp:(.text._ZN6google17MakeCheckOpStringIdiEEPSsRKT_RKT0_PKc[ZN6google17MakeCheckOpStringIdiEEPSsRKT_RKT0_PKc]+0x42): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(insert_splits.o): In function
caffe::ConfigureSplitLayer(std::string const&, std::string const&, int, int, caffe::LayerParameter*)':
insert_splits.cpp:(.text+0x8ee): undefined reference to google::protobuf::internal::StringTypeHandlerBase::New()' insert_splits.cpp:(.text+0x92b): undefined reference to
google::protobuf::internal::empty_string'
insert_splits.cpp:(.text+0x992): undefined reference to google::protobuf::internal::StringTypeHandlerBase::New()' build/lib/libcaffe.a(video_segmentation_data_layer.o): In function
std::string* google::MakeCheckOpString<unsigned long, unsigned int>(unsigned long const&, unsigned int const&, char const*)':
video_segmentation_data_layer.cpp:(.text._ZN6google17MakeCheckOpStringImjEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringImjEEPSsRKT_RKT0_PKc]+0x41): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(window_data_layer.o): In function
std::string* google::MakeCheckOpString<std::string, char [2]>(std::string const&, char const (&) [2], char const*)':
window_data_layer.cpp:(.text._ZN6google17MakeCheckOpStringISsA2_cEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringISsA2_cEEPSsRKT_RKT0_PKc]+0x59): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(volume_data_layer.o): In function
void* caffe::VolumeDataLayerPrefetchgoogle::protobuf::MessageLite::ParseFromString(std::string const&)' build/lib/libcaffe.a(volume_data_layer.o): In function
void* caffe::VolumeDataLayerPrefetchgoogle::protobuf::MessageLite::ParseFromString(std::string const&)' build/lib/libcaffe.a(volume_data_layer.o): In function
caffe::VolumeDataLayerleveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)' volume_data_layer.cpp:(.text._ZN5caffe15VolumeDataLayerIdE5SetUpERKSt6vectorIPNS_4BlobIdEESaIS5_EEPS7_[_ZN5caffe15VolumeDataLayerIdE5SetUpERKSt6vectorIPNS_4BlobIdEESaIS5_EEPS7_]+0x452): undefined reference to
google::protobuf::MessageLite::ParseFromString(std::string const&)'
volume_data_layer.cpp:(.text.ZN5caffe15VolumeDataLayerIdE5SetUpERKSt6vectorIPNS_4BlobIdEESaIS5_EEPS7[ZN5caffe15VolumeDataLayerIdE5SetUpERKSt6vectorIPNS_4BlobIdEESaIS5_EEPS7]+0x1426): undefined reference to leveldb::Status::ToString() const' build/lib/libcaffe.a(volume_data_layer.o): In function
caffe::VolumeDataLayerleveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)' volume_data_layer.cpp:(.text._ZN5caffe15VolumeDataLayerIfE5SetUpERKSt6vectorIPNS_4BlobIfEESaIS5_EEPS7_[_ZN5caffe15VolumeDataLayerIfE5SetUpERKSt6vectorIPNS_4BlobIfEESaIS5_EEPS7_]+0x452): undefined reference to
google::protobuf::MessageLite::ParseFromString(std::string const&)'
volume_data_layer.cpp:(.text.ZN5caffe15VolumeDataLayerIfE5SetUpERKSt6vectorIPNS_4BlobIfEESaIS5_EEPS7[ZN5caffe15VolumeDataLayerIfE5SetUpERKSt6vectorIPNS_4BlobIfEESaIS5_EEPS7]+0x1426): undefined reference to leveldb::Status::ToString() const' build/lib/libcaffe.a(data_layer.o): In function
void* caffe::DataLayerPrefetchgoogle::protobuf::MessageLite::ParseFromString(std::string const&)' build/lib/libcaffe.a(data_layer.o): In function
void* caffe::DataLayerPrefetchgoogle::protobuf::MessageLite::ParseFromString(std::string const&)' build/lib/libcaffe.a(data_layer.o): In function
caffe::DataLayerleveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)' data_layer.cpp:(.text._ZN5caffe9DataLayerIdE5SetUpERKSt6vectorIPNS_4BlobIdEESaIS5_EEPS7_[_ZN5caffe9DataLayerIdE5SetUpERKSt6vectorIPNS_4BlobIdEESaIS5_EEPS7_]+0x452): undefined reference to
google::protobuf::MessageLite::ParseFromString(std::string const&)'
data_layer.cpp:(.text.ZN5caffe9DataLayerIdE5SetUpERKSt6vectorIPNS_4BlobIdEESaIS5_EEPS7[ZN5caffe9DataLayerIdE5SetUpERKSt6vectorIPNS_4BlobIdEESaIS5_EEPS7]+0x13f6): undefined reference to leveldb::Status::ToString() const' build/lib/libcaffe.a(data_layer.o): In function
caffe::DataLayerleveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)' data_layer.cpp:(.text._ZN5caffe9DataLayerIfE5SetUpERKSt6vectorIPNS_4BlobIfEESaIS5_EEPS7_[_ZN5caffe9DataLayerIfE5SetUpERKSt6vectorIPNS_4BlobIfEESaIS5_EEPS7_]+0x452): undefined reference to
google::protobuf::MessageLite::ParseFromString(std::string const&)'
data_layer.cpp:(.text.ZN5caffe9DataLayerIfE5SetUpERKSt6vectorIPNS_4BlobIfEESaIS5_EEPS7[ZN5caffe9DataLayerIfE5SetUpERKSt6vectorIPNS_4BlobIfEESaIS5_EEPS7]+0x13f6): undefined reference to leveldb::Status::ToString() const' build/lib/libcaffe.a(common.o): In function
std::string* google::MakeCheckOpString<cublasStatus_t, cublasStatus_t>(cublasStatus_t const&, cublasStatus_t const&, char const*)':
common.cpp:(.text._ZN6google17MakeCheckOpStringI14cublasStatus_tS1_EEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringI14cublasStatus_tS1_EEPSsRKT_RKT0_PKc]+0x40): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(common.o): In function
std::string* google::MakeCheckOpString<curandStatus, curandStatus>(curandStatus const&, curandStatus const&, char const*)':
common.cpp:(.text._ZN6google17MakeCheckOpStringI12curandStatusS1_EEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringI12curandStatusS1_EEPSsRKT_RKT0_PKc]+0x40): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(common.o): In function
std::string* google::MakeCheckOpString<cudaError, cudaError>(cudaError const&, cudaError const&, char const*)':
common.cpp:(.text._ZN6google17MakeCheckOpStringI9cudaErrorS1_EEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringI9cudaErrorS1_EEPSsRKT_RKT0_PKc]+0x40): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(blob.o): In function
std::string* google::MakeCheckOpString<int, int>(int const&, int const&, char const*)':
blob.cpp:(.text._ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc]+0x40): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(io.o): In function
caffe::ReadImageToDatum(std::string const&, int, int, int, caffe::Datum*)':
io.cpp:(.text+0x40a): undefined reference to google::protobuf::internal::empty_string_' build/lib/libcaffe.a(io.o): In function
std::string* google::MakeCheckOpString<H5T_class_t, H5T_class_t>(H5T_class_t const&, H5T_class_t const&, char const*)':
io.cpp:(.text._ZN6google17MakeCheckOpStringI11H5T_class_tS1_EEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringI11H5T_class_tS1_EEPSsRKT_RKT0_PKc]+0x40): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(pooling_layer.o): In function
std::string* google::MakeCheckOpString<caffe::PoolingParameter_PoolMethod, caffe::PoolingParameter_PoolMethod>(caffe::PoolingParameter_PoolMethod const&, caffe::PoolingParameter_PoolMethod const&, char const*)':
pooling_layer.cpp:(.text._ZN6google17MakeCheckOpStringIN5caffe27PoolingParameter_PoolMethodES2_EEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIN5caffe27PoolingParameter_PoolMethodES2_EEPSsRKT_RKT0_PKc]+0x40): undefined reference to google::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(split_layer.o): In function
std::string* google::MakeCheckOpString<caffe::Blobgoogle::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(split_layer.o): In function
std::string* google::MakeCheckOpString<caffe::Blobgoogle::base::CheckOpMessageBuilder::NewString()' build/lib/libcaffe.a(image_io.o): In function
caffe::ReadImageSequenceToVolumeDatum(char const*, int, int, int, int, int, int, caffe::VolumeDatum*)':
image_io.cpp:(.text+0x4ee): undefined reference to google::protobuf::internal::empty_string_' image_io.cpp:(.text+0x9fb): undefined reference to
google::protobuf::internal::empty_string'
build/lib/libcaffe.a(image_io.o): In function caffe::ReadVideoToVolumeDatum(char const*, int, int, int, int, int, int, caffe::VolumeDatum*)': image_io.cpp:(.text+0x1ccb): undefined reference to
google::protobuf::internal::empty_string'
image_io.cpp:(.text+0x1f47): undefined reference to `google::protobuf::internal::empty_string
However, when I use same Makefile.config and Makefile to make in C3D-v1.1, it is always successful. Besides, I both successfully installed caffe and py-faster-rcnn. So, I am very confused now. By the way, may be reason of situation,so I can't download c3d_resnet18_sports1m_r2_iter_2800000.caffemodel.
I think the issue caused by the version of the Open CV. Which is the version of your Open CV? 2.x or 3.x?
It looks like you got linking issue, some of them from protobuf. which may cause by verion miss-match.