ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

include dir not found when catkin_make

asked 2017-07-12 08:09:55 -0600

mattMGN gravatar image


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 ?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-12 21:31:55 -0600

Ed Venator gravatar image

Looking through the relevant CMakeLists on GitHub, everything seems ok with them. Can you run catkin_make clean on your workspace, and see if that fixes the problem?

edit flag offensive delete link more


Still not building the package with this command But thank you for your input

mattMGN gravatar image mattMGN  ( 2017-07-13 03:45:01 -0600 )edit

Question Tools



Asked: 2017-07-12 08:09:55 -0600

Seen: 1,699 times

Last updated: Jul 12 '17