一.编译Cartographer及其相关文件出错(强烈建议删除所有的相关文件,然后重新按照下面步骤安装-----------可别怪我没有提醒你,亲测有效!!!!!!)
1.出错内容(1):
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
<== Failed to process package 'cartographer':
Command '['cmake', '/home/shuaimou/google_ws/src/cartographer', '-DCMAKE_INSTALL_PREFIX=/home/shuaimou/google_ws/install_isolated', '-G', 'Ninja']' returned non-zero exit status 1
Reproduce this error by running:
==> cd /home/shuaimou/google_ws/build_isolated/cartographer && cmake /home/shuaimou/google_ws/src/cartographer -DCMAKE_INSTALL_PREFIX=/home/shuaimou/google_ws/install_isolated -G Ninja
Command failed, exiting.
错误内容(2)
<== Failed to process package 'cartographer':
Command '['cmake', '/home/shuaimou/google_ws/src/cartographer', '-DCMAKE_INSTALL_PREFIX=/home/shuaimou/google_ws/install_isolated', '-G', 'Ninja']' returned non-zero exit status 1
Reproduce this error by running:
==> cd /home/shuaimou/google_ws/build_isolated/cartographer && cmake