在編譯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