问题:
开源项目: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都是测试文件,可能也用不到,目前暂时的解决方案就直接注释掉。