Robotics StackExchange | Archived questions

Devel environment for C++?

do u guys just use emacs/vim + cscope/ctags ?

eclipse CDT would give u real-time compile/syntax check, and easier and more powerful code browsing/refactoring, would it be possible to use eclipse CDT? anybody had experience using CDT with ROS code base?

Asked by teddyyyy123 on 2015-12-22 15:00:57 UTC

Comments

Answers

Yes, it is possible to use the Eclipse CDT. I am using it myself. You can import the project like any other C++ project but you need to change the C++ build settings to use catkin_make (catkin_make --pkg ) and your build directory to your catkin_ws directory.

Asked by mkhansen on 2015-12-22 15:21:58 UTC

Comments

Please see IDEs wiki page and particularly for Eclipse. If you are on a modern ROS distro with catkin build system, the following will generate Eclipse-project that you can import:

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

The above command will generate one project for all packages you have in your workspace. The project files .project and .cproject will be placed inside build directory of your catkin workspace.

Asked by Boris on 2015-12-22 18:23:36 UTC

Comments

The following will generate the .project and .cproject files for only the current directory. Useful if only one package is necessary.

cmake -G "Eclipse CDT4 - Unix Makefiles"

Asked by kmhallen on 2015-12-23 19:00:02 UTC