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

google::protobuf:: 编译报错 #421

Open
Calm-wy opened this issue Jan 20, 2025 · 1 comment
Open

google::protobuf:: 编译报错 #421

Calm-wy opened this issue Jan 20, 2025 · 1 comment

Comments

@Calm-wy
Copy link

Calm-wy commented Jan 20, 2025

usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::internal::RegisterAllTypes(google::protobuf::Metadata const*, int)' /usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox.so: undefined reference to google::protobuf::io::CodedOutputStream::WriteVarint32SlowPath(unsigned int)'
/usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::internal::WireFormat::SerializeUnknownFields(google::protobuf::UnknownFieldSet const&, google::protobuf::io::CodedOutputStream*)' /usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox.so: undefined reference to google::protobuf::io::CodedOutputStream::CodedOutputStream(google::protobuf::io::ZeroCopyOutputStream*)'
/usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::internal::ArenaImpl::AllocateAligned(unsigned long)' /usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::internal::AssignDescriptors(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::internal::MigrationSchema const*, google::protobuf::Message const* const*, unsigned int const*, google::protobuf::Metadata*, google::protobuf::EnumDescriptor const**, google::protobuf::ServiceDescriptor const**)'
/usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&, unsigned char*)' /usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void ()(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&))'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/test_load_esdf.dir/build.make:90:/home/dji/catkin_ws/devel/lib/voxblox/test_load_esdf] 错误 1
make[1]: *** [CMakeFiles/Makefile2:500:CMakeFiles/test_load_esdf.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[100%] ^[[32m^[[1mLinking CXX executable /home/dji/catkin_ws/devel/lib/voxblox/tsdf_to_esdf^[[0m
/usr/bin/ld: CMakeFiles/tsdf_to_esdf.dir/test/tsdf_to_esdf.cc.o: in function char* google::protobuf::Arena::CreateInternalRawArray<char>(unsigned long)': /usr/include/google/protobuf/arena.h:588: undefined reference to google::protobuf::internal::ArenaImpl::AllocateAligned(unsigned long)'
/usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::internal::RegisterAllTypes(google::protobuf::Metadata const*, int)' /usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox.so: undefined reference to google::protobuf::io::CodedOutputStream::WriteVarint32SlowPath(unsigned int)'
/usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::internal::WireFormat::SerializeUnknownFields(google::protobuf::UnknownFieldSet const&, google::protobuf::io::CodedOutputStream*)' /usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox.so: undefined reference to google::protobuf::io::CodedOutputStream::CodedOutputStream(google::protobuf::io::ZeroCopyOutputStream
)'
/usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::internal::AssignDescriptors(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::internal::MigrationSchema const*, google::protobuf::Message const* const*, unsigned int const*, google::protobuf::Metadata*, google::protobuf::EnumDescriptor const**, google::protobuf::ServiceDescriptor const**)' /usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&, unsigned char*)'
/usr/bin/ld: /home/dji/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to `google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&))'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tsdf_to_esdf.dir/build.make:90:/home/dji/catkin_ws/devel/lib/voxblox/tsdf_to_esdf] 错误 1


编译报错

@Blackshaddock
Copy link

解决了嘛 我也遇到了同样的问题

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