gmapping编译安装出错Unknown CMake command "check_symbol_exists"

╄→尐↘猪︶ㄣ 提交于 2020-01-20 01:30:41

在源码编译安装gmapping的时候,报错

CMake Error at gmapping/navigation/amcl/CMakeLists.txt:58 (check_symbol_exists):
  Unknown CMake command "check_symbol_exists".


-- Configuring incomplete, errors occurred!
See also "/home/lucky/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/lucky/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:1692: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
解决办法:

在出错的CMakeLists文件里加一行

include(CheckSymbolExists)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!