Ubuntu1804上源码安装cartographer问题整理
说明
问题一
- 本文章整理了ubuntu1804上源码安装cartographer问题
问题一
- 测试环境:Jetson Xavier NX+ Jetpack4.4 + Ubuntu 1804 + ROS Melodic
- 编译时出现缺少absl包
-- Found GMock: gmock_main;-lpthread解决方法
CMake Error at CMakeLists.txt:32 (find_package):
By not providing "Findabsl.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "absl", but
CMake did not find one.
Could not find a package configuration file provided by "absl" with any of
the following names:
abslConfig.cmake
absl-config.cmake
Add the installation prefix of "absl" to CMAKE_PREFIX_PATH or set
"absl_DIR" to a directory containing one of the above files. If "absl"
provides a separate development package or SDK, be sure it has been
installed.
- 在下载回来的cartographer上有安装absl的脚本
$ sudo apt-get install stow问题二
$ sudo chmod +x ~/cartographer_ws/src/cartographer/scriptsinstall_abseil.sh
$ cd ~/cartographer_ws/src/cartographer/scripts
$ ./install_abseil.sh
- 测试环境:Jetson Xavier NX+ Jetpack4.4 + Ubuntu 1804 + ROS Melodic
- 更新时遇到错误
ubuntu@ubuntu:~/cartographer_ws$ rosdep install --from-paths src --ignore-src --rosdistro=melodic -y -i解决方法
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
cartographer_turtlebot: Cannot locate rosdep definition for [turtlebot_bringup]