在编译humanoid_navigation相关软件包,出现以下错误:
Errors << humanoid_planner_2d:cmake /home/dji/catkin_ws/logs/humanoid_planner_2d/build.cmake.005.log
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
CMakeLists.txt:18 (pkg_check_modules)
解决方案:
错误中并没有提示缺失的依赖软件包名称,因此需要定位到出错软件包的CmakeList.txt中查询,比如上述错误发生在humanoid_planner_2d软件包中,打开相关CmakeList.txt可以发现:
pkg_check_modules(SBPL REQUIRED sbpl)
故此,缺失sbpl软件包,我使用的是ros kinetic 版本,故安装方法可以是
sudo apt-get install ros-kinetic-sbpl