Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

include dir not found when catkin_make


I would want to install hector_gazebo package from source.

After cloning source code in workspace and running catkin_make, I get the following error :

-- +++ processing catkin package: 'hector_gazebo_thermal_camera'
-- ==> add_subdirectory(hector_gazebo/hector_gazebo_thermal_camera)
CMake Error at /home/matt/catkin_ws/devel/share/gazebo_plugins/cmake/gazebo_pluginsConfig.cmake:106 (message):
  Project 'gazebo_plugins' specifies
  '/home/matt/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/include' as an
  include dir, which is not found.  It does neither exist as an absolute
  directory nor in
  Ask the maintainer 'John Hsu <>' to fix it.
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  hector_gazebo/hector_gazebo_thermal_camera/CMakeLists.txt:7 (find_package)

However I already installed the gazebo_ros_pkgs package but not from source, with apt-get. So I am sure that '/home/matt/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/include' set as 'not found' is ultimately somewhere. But hector_gazebo_thermal_camera/CMakeLists.txt is not watching to the right direction.

In opening this hector_gazebo_thermal_camera/CMakeLists.txt and searching on the web, I guess that the problem come from those lines :

find_package(catkin REQUIRED COMPONENTS nodelet image_transport dynamic_reconfigure driver_base gazebo_plugins)
include_directories(include ${catkin_INCLUDE_DIRS})

Where include_directories's variable don't point to the repository where packages installed by apt-get are.

So my questions are :

  • It is the good way to fix the pbm ?
  • How to set directories defined in catkin_INCLUDE_DIRS ?
  • What other directory shoud I add in : include_directories(include ${catkin_INCLUDE_DIRS} ${catkin_OTHER_DIR}) to point toward package installed with apt-get ?