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

CLion and messages

asked 2017-11-12 17:31:22 -0500

clyde gravatar image

updated 2017-11-12 17:31:50 -0500

For CLion users out there:

I'm trying out CLion, and wondering how to deal w/ msgs that are created by the build process. I was able to make CLion happy by hacking up my src/myproj/CMakeLists.txt file:

## Set up include directories
include_directories(
  include
  ../../devel/include # Hack for Clion
  ${catkin_INCLUDE_DIRS}
)

Is there a better way?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-11-13 01:40:14 -0500

Femer gravatar image

updated 2017-11-13 01:41:18 -0500

Hi Clyde,

Did you try to: (1) compile the package containing the new messages, (2) source catkin_ws/devel/setup.bash (3) launch Clion from the terminal where you sourced catkin_ws/devel/setup.bash?

It works on my machine. Maybe have a look at this other post: link text

Cheers,

Marco.

edit flag offensive delete link more

Comments

Ah... I was confused about proj/devel vs. proj/src/cmake-build-devel. I [re-]built the targets using CLion and now it's all happy.

It appears that CLion users to be careful about managing 2 build environments: CLion and catkin.

Thanks!

clyde gravatar image clyde  ( 2017-11-13 11:50:28 -0500 )edit

For future users, go to proj/src/cmake-build-devel and run "make". This will generate the custom messages and then Clion will pick up on the new included messages.

PSA gravatar image PSA  ( 2018-09-28 13:00:32 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-11-12 17:31:22 -0500

Seen: 881 times

Last updated: Nov 13 '17