在编译cartograher的时候,倒数第二部执行
catkin_make_isolated --install --use-ninja
的时候会遇到
ibcartographer.a(normal_estimation_options_2d.pb.cc.o): In function `cartographer::mapping::proto::NormalEstimationOptions2D::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*)':
normal_estimation_options_2d.pb.cc:(.text+0x9ea): undefined reference to `google::protobuf::io::CodedInputStream::ReadTagFallback(unsigned int)'
normal_estimation_options_2d.pb.cc:(.text+0xa36): undefined reference to `google::protobuf::io::CodedInputStream::ReadVarint32Fallback(unsigned int)'
libcartographer.a(normal_estimation_options_2d.pb.cc.o): In function `cartographer::mapping::proto::protobuf_cartographer_2fmapping_2fproto_2f2d_2fnormal_5festimation_5foptions_5f2d_2eproto::TableStruct::InitDefaultsImpl()':
normal_estimation_options_2d.pb.cc:(.text+0x760): undefined reference to `google::protobuf::internal::OnShutdownDestroyMessage(void const*)'
libcartographer.a(normal_estimation_options_2d.pb.cc.o): In function `void google::protobuf::Arena::Own<cartographer::mapping::proto::NormalEstimationOptions2D>(cartographer::mapping::proto::NormalEstimationOptions2D*)':
normal_estimation_options_2d.pb.cc:
之类的问题。
解决方法
针度这个问题解决方法应该是protobuf的安装问题,可以看之前的文章
https://blog.csdn.net/lxn9492878lbl/article/details/88553834