costmap_2d expects non-existing include dir
I am on ROS Kinetic and Ubuntu 16.04. When I call a catkin_make after cloning https://github.com/DLu/navigation_layers into my catkin_ws/src, I get the following error:
+++ processing catkin package: 'range_sensor_layer'
-- ==> add_subdirectory(navigation_layers/range_sensor_layer)
CMake Error at /opt/ros/kinetic/share/costmap_2d/cmake/costmap_2dConfig.cmake:106 (message):
Project 'costmap_2d' specifies '/usr/include/hdf5/openmpi' as an include
dir, which is not found. It does neither exist as an absolute directory
nor in '/opt/ros/kinetic//usr/include/hdf5/openmpi'. Ask the maintainer
'David V. Lu!! <davidvlu@gmail.com>, Michael Ferguson
<mferguson@fetchrobotics.com>' to fix it.
Call Stack (most recent call first):
/opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
navigation_layers/range_sensor_layer/CMakeLists.txt:4 (find_package)
costmap_2d wants to have a library in this dir /usr/include/hdf5/openmpi, which does not exist. However, /usr/include/hdf5/ DOES exist, so does /usr/include/openmpi
Why does my ROS installation seem to differ from what costmap_2d expects? More important: How to fix this?
I've seen issues like this happen occasionally if the include directory exists but is then removed; cmake caches the old path and then complains when it ceases to exist. You may want to try cleaning your workspace and rebuilding.
In addition to what @ahendrix writes:
hdf5
is not a dependency ofrange_sensor_layer
, nor (but I can't be certain) of one of its immediate dependencies.It would appear the OpenMPI is then a dependency of
hdf5
, which does something strange (the include path doesn't make sense).It could be that
hdf5
comes in via thepcl
dependency ofcostmap_2d
(here).Do you have a from-source build of PCL?
@gvdhoorn I wrote an answer, maybe you can shed some light on the things that are still unclear for me. That way we might help future readers ;)
@ahendrix Thanks for the suggestion but I already tried that before posting my qeustion here, it did nothing
although this question is quite old, the problem just recently popped up again: https://github.com/ros-planning/navig...
any ideas how to properly solve this?