Issues with packages recognizing external header files
So I am currently trying to get a given catkin package(description) to recognize header files stored in another catkin package(cat_ball). However, when I attempt to run catkin_make I get this error
fatal error: simulation/ControllerSimulator.h: No such file or directory
compilation terminated.
(Note: simulation/ControllerSimulator.h does exist in cat_ball/include)
Below is the CMakeLists.txt file and yes I have made sure that description is both run_dependent and build_dependent on cat_ball in the package.xml and that cat_ball is also a catkin package.
cmake_minimum_required(VERSION 2.8.3)
project(description)
find_package(catkin REQUIRED COMPONENTS roscpp gazebo_ros cat_ball)
# Find gazebo
include (FindPkgConfig)
if (PKG_CONFIG_FOUND)
pkg_check_modules(GAZEBO gazebo)
endif()
link_directories(${GAZEBO_LIBRARY_DIRS})
include_directories(include ${Boost_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} ${GAZEBO_INCLUDE_DIRS})
add_library(${PROJECT_NAME} src/plugin.cpp)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
catkin_package(DEPENDS roscpp gazebo_ros CATKIN_DEPENDS cat_ball)
If anyone could help me with this problem I would be very grateful, thanks.
Please post additional information. Especially the
CMakeLists.txt
of the "cat_ball" package. I guess you have both packages in a single workspace and invokedcatkin_make
for it?Sorry about that, I'll remember it in the future.