安装cartgrapher遇到的问题2

在编译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

如果protobuf安装成功之后还是编译不行,可能是因为先后问题的原因,就是虽然protobuf成功安装了,但是之后cartographer安装到一半,现在是因为识别不了的原因,那么可以将cartographer的安装包删掉,重新来一遍,这样就成功了。

在这里插入图片描述

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值