Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问一下protobuf用的哪一个版本呢? #36

Open
121649982 opened this issue Jun 24, 2020 · 2 comments
Open

请问一下protobuf用的哪一个版本呢? #36

121649982 opened this issue Jun 24, 2020 · 2 comments

Comments

@121649982
Copy link

No description provided.

@wsora
Copy link

wsora commented Nov 4, 2020

编译时候遇到下面的错误,感觉可能是protobuf的版本不对,试了2.6.1和3.0.0的版本都不行。

[ 94%] Linking CXX executable ../../buildEngine
../../lib/libmynvonnxparser.so:对‘google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::string const&, google::protobuf::io::CodedOutputStream*)’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::string const&, unsigned char*)’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::TextFormat::PrintToString(google::protobuf::Message const&, std::string*)’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::Message::GetTypeName() const’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void ()(std::string const&))’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::internal::WireFormatLite::WriteBytes(int, std::string const&, google::protobuf::io::CodedOutputStream
)’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::string const&, google::protobuf::io::CodedOutputStream*)’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::internal::empty_string_’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::internal::WireFormatLite::WriteString(int, std::string const&, google::protobuf::io::CodedOutputStream*)’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::DescriptorPool::FindFileByName(std::string const&) const’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::string const*, google::protobuf::internal::ArenaStringPtr)’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::string*)’未定义的引用
../../lib/libmynvonnxparser.so:对‘google::protobuf::Message::InitializationErrorString() const’未定义的引用
collect2: error: ld returned 1 exit status
example/CMakeFiles/buildEngine.dir/build.make:122: recipe for target '../buildEngine' failed
make[2]: *** [../buildEngine] Error 1
CMakeFiles/Makefile2:537: recipe for target 'example/CMakeFiles/buildEngine.dir/all' failed
make[1]: *** [example/CMakeFiles/buildEngine.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

@CaoWGG 您好,您能看下您的配置用的是哪个版本的protobuf。对了还有g++的版本。

@wsora
Copy link

wsora commented Nov 5, 2020

在cmake ==1.10.2,g++==7.5.0,libprotoc==3.0.0环境下终于编译成功了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants