【cartograph】编译出错,找不到GMOCK_LIBRARY包

问题:
开源项目:cartographer_superbuild 编译
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
GMOCK_LIBRARY
linked by target “cartographer_test_library” in directory /home/echou…

解决方案:

根据链接:https://blog.csdn.net/xiaokai1999/article/details/113937073
https://ask.csdn.net/questions/7392012
使用sudo apt install google-mock安装GMOCK,使用 sudo apt install libgmock-dev。
提示找不到libgmock-dev包。
在这里插入图片描述

搜索一下https://github.com/anbox/anbox/issues/1382发现libgmock-dev依赖,ubuntu版本要求是 20.04,我目前是ubuntu18.04,所以不能用这个方法。

libgmock-dev/focal,now 1.10.0-2 amd64 [installed]
  Google's framework for writing C++ tests

https://github.com/anbox/anbox/issues/1382
gmock/gtest都是测试文件,可能也用不到,目前暂时的解决方案就直接注释掉。
在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值