Absolute and Relative paths
I get the following error when trying to generate ros2 interfaces.
[build] CMake Error at /opt/ros/dashing/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:80 (message):
[build] rosidl_generate_interfaces() the passed absolute file
[build] '/ros2_msgs/srv/Connect' must be represented as an absolute base path
[build] separated by a colon from the relative path to the interface file
[build] Call Stack (most recent call first):
[build] CMakeLists.txt:67 (rosidl_generate_interfaces)
You need to share your CMake code for people to be able to help you.
Apologies. Here is the CMake file.
Reason for setting the prefix path and the python path is because I am trying to build without using colcon,
The prefix path (
CMAKE_PREFIX_PATH
) has nothing to do with the error message. But you shouldn't put that into yourCMakeLists.txt
but instead set it in the environment before building your package - otherwise you can't build your package with other ROS distros - or in combination with a from-source build on other platforms.