undefined references to google::protobuf but building protobuf_catkin just fine
Closed this issue · 1 comments
luisfer12 commented
I am building protobuf_catkin just fine but voxplot doesn't seem to be linked correctly. I have seem many similar issues online but no suggestion seems to fix my problem. Any suggestion of what I could try?
Errors << voxblox:make /home/luisfer/catkin_ws/logs/voxblox/build.make.000.log
/home/luisfer/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to `google::protobuf::RepeatedField<unsigned int>::unsafe_data() const'
/home/luisfer/catkin_ws/devel/lib/libvoxblox.so: undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint32SlowPath(unsigned int)'
/home/luisfer/catkin_ws/devel/lib/libvoxblox.so: undefined reference to `google::protobuf::io::CodedOutputStream::CodedOutputStream(google::protobuf::io::ZeroCopyOutputStream*)'
/home/luisfer/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to `google::protobuf::internal::ArenaImpl::AllocateAligned(unsigned long)'
/home/luisfer/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to `google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&, unsigned char*)'
/home/luisfer/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to `google::protobuf::internal::WireFormat::SerializeUnknownFields(google::protobuf::UnknownFieldSet const&, google::protobuf::io::CodedOutputStream*)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/luisfer/catkin_ws/devel/lib/voxblox/test_load_esdf] Error 1
make[1]: *** [CMakeFiles/test_load_esdf.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/luisfer/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to `google::protobuf::RepeatedField<unsigned int>::unsafe_data() const'
/home/luisfer/catkin_ws/devel/lib/libvoxblox.so: undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint32SlowPath(unsigned int)'
/home/luisfer/catkin_ws/devel/lib/libvoxblox.so: undefined reference to `google::protobuf::io::CodedOutputStream::CodedOutputStream(google::protobuf::io::ZeroCopyOutputStream*)'
/home/luisfer/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to `google::protobuf::internal::ArenaImpl::AllocateAligned(unsigned long)'
/home/luisfer/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to `google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&, unsigned char*)'
/home/luisfer/catkin_ws/devel/lib/libvoxblox_proto.so: undefined reference to `google::protobuf::internal::WireFormat::SerializeUnknownFields(google::protobuf::UnknownFieldSet const&, google::protobuf::io::CodedOutputStream*)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/luisfer/catkin_ws/devel/lib/voxblox/tsdf_to_esdf] Error 1
make[1]: *** [CMakeFiles/tsdf_to_esdf.dir/all] Error 2
make: *** [all] Error 2
cd /home/luisfer/catkin_ws/build/voxblox; catkin build --get-env voxblox | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
luisfer12 commented
sorry, posted in the wrong place