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

generate cmake debug files for isolated catkin workspace

asked 2019-03-12 14:51:25 -0500

JanOr gravatar image

updated 2022-01-22 16:09:55 -0500

Evgeny gravatar image

Hi everyone,

I have a problem while trying to use eclipse to debug ros c++ projects in an isolated catkin workspace. In this workspace I have several packages, that I build with:

catkin_make_isolated --force-cmake -G"Eclipse CDT4 - Unix Makefiles"

However, in order to debug, I have to create the corresponding tracing files that typically would have to be created by going to the "catkin_ws/build" directoy and using

cmake ../src -DCMAKE_BUILD_TYPE=Debug

Unfortunately, if I try to use this in the build folder for the isolated catkin workspace "catkin_ws/build_isolated/", I get the error:

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:95 (message):
  This workspace contains non-catkin packages in it, and catkin cannot build
  a non-homogeneous workspace without isolation.  Try the
  'catkin_make_isolated' command instead.

Without building these debug files, I get the following eclipse error while debugging:

No source available for main

Do you have any idea where and how to get these cmake debug files? Thanks a lot!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-03-13 01:45:18 -0500

mgruhler gravatar image

You can pass the build type directly by calling

catkin_make_isolated -DCMAKE_BUILD_TYPE=Debug
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-03-12 14:51:25 -0500

Seen: 1,021 times

Last updated: Mar 13 '19