You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the newest catkin version introduced in hydro (currently 0.5.73) I am getting the following cmake errors whenever cmake is run the second time in the same catkin workspace (e.g. if a CMakeLists.txt file has been changed):
-- ==> add_subdirectory(msgs/fmp_msgs)
-- fmp_msgs: 2 messages, 0 services
CMake Error at /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:335 (message):
catkin_package() include dir 'include' is neither an absolute directory nor
exists relative to '/opt/uxvcos/hydro/msgs/fmp_msgs'
Call Stack (most recent call first):
/opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
msgs/fmp_msgs/CMakeLists.txt:51 (catkin_package)
The fmp_msgs is nothing special, just a standard message only package that has no include directories at all:
I guess the problem is that the cmake cache contains the fmp_msgs_INCLUDE_DIRS variable after the first invocation and catkin_package() prepends these paths to the INCLUDE_DIRS specified in its arguments in catkin_package.cmake:119 and then complains about the missing directory in catkin_package.cmake:335:
Hmm, I cannot reproduce the cmake error anymore in a clean workspace. Nevertheless, it might be wrong if pkg-config reports a relative include directory on a fresh installation from the ROS Ubuntu repositories:
$ pkg-config --cflags-only-I std_msgs
include
$ rospack cflags-only-I std_msgs
include
With the newest catkin version introduced in hydro (currently 0.5.73) I am getting the following cmake errors whenever cmake is run the second time in the same catkin workspace (e.g. if a CMakeLists.txt file has been changed):
The fmp_msgs is nothing special, just a standard message only package that has no include directories at all:
I guess the problem is that the cmake cache contains the
fmp_msgs_INCLUDE_DIRS
variable after the first invocation andcatkin_package()
prepends these paths to the INCLUDE_DIRS specified in its arguments in catkin_package.cmake:119 and then complains about the missing directory in catkin_package.cmake:335:The relative
include
entry was pulled in fromstd_msgs.pc
somehow:Is this problem related to #490, or is there anything else I might be doing wrong here?
The text was updated successfully, but these errors were encountered: