include dir not found when catkin_make
Hello,
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
'/home/matt/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins//home/matt/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/include'.
Ask the maintainer 'John Hsu <hsu@osrfoundation.org>' 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 gazeborospkgs package but not from source, with apt-get. So I am sure that '/home/matt/catkinws/src/gazeborospkgs/gazeboplugins/include' set as 'not found' is ultimately somewhere. But hectorgazebothermal_camera/CMakeLists.txt is not watching to the right direction.
In opening this hectorgazebothermal_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 catkinINCLUDEDIRS ?
- What other directory shoud I add in : includedirectories(include ${catkinINCLUDEDIRS} ${catkinOTHER_DIR}) to point toward package installed with apt-get ?
Best
Matt
Asked by mattMGN on 2017-07-12 08:09:55 UTC
Answers
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?
Asked by Ed Venator on 2017-07-12 21:31:55 UTC
Comments
Still not building the package with this command But thank you for your input
Asked by mattMGN on 2017-07-13 03:45:01 UTC
Comments