set -o errexit
set -o verbose
git clone https://github.com/abseil/abseil-cpp.git
cd abseil-cpp
git checkout d902eb869bcfacc1bad14933ed9af4bed006d481
mkdir build
cd build
cmake -G Ninja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DCMAKE_INSTALL_PREFIX=/usr/local/stow/absl
…
ninja
sudo ninja install
cd /usr/local/stow
sudo stow absl
提示错误 sudo: stow: command not found
sudo apt-get install stow
cd /usr/local/stow
sudo stow absl
其实都在:/home/wsh/catkin_google_ws/src/cartographer/scripts 里面
参考添加链接描述