ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

Problem integrating ROS with Eclipse Indigo

asked 2011-09-29 04:41:46 -0500

alfa_80 gravatar image

updated 2014-01-28 17:10:28 -0500

ngrennan gravatar image

Hi,

I've tried to integrate ROS with eclipse following this link. According to step no.2, I had to run "make eclipse-project" in my package directory, however, i got an error "make: * No rule to make target `eclipse-project'. Stop."

What could be the problem? Thanks in advance.

-alfa-

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-09-29 05:03:02 -0500

kwc gravatar image

updated 2011-09-29 05:19:27 -0500

Are you trying to integrate rosjava code or roscpp code?

The instructions for rosjava (in progress) are here:

http://www.ros.org/wiki/rosjava/Build/Eclipse

For roscpp, your project needs to follow the standard package template, where the Makefile looks like:

 include $(shell rospack find mk)/cmake.mk

And nothing more (i.e. the rest of your bulid is configured via CMake). The above cmake.mk file declares the eclipse-project target.

If you don't wish to use the cmake.mk file, then you can grab the necessary Makefile rule from mk/cmake.mk and adapt it to your needs.

edit flag offensive delete link more

Comments

1
roscpp, not rosjava.
alfa_80 gravatar imagealfa_80 ( 2011-09-29 05:08:00 -0500 )edit
see updated answer above then
kwc gravatar imagekwc ( 2011-09-29 05:19:11 -0500 )edit
I didn't get you. Did you mean I have to include "include $(shell rospack find mk)/cmake.mk" in Makefile? As far as I know, it is not recommended to alter the Makefile, to alter CMakeList.txt makes sense.
alfa_80 gravatar imagealfa_80 ( 2011-09-29 05:27:25 -0500 )edit
Yes, but if you do that include, your Makefile cannot contain anything else -- it is a wrapper for invoking into CMake. So, an alternative is to copy the 'eclipse-project' target out of cmake.mk instead, and put that directly into your Makefile.
kwc gravatar imagekwc ( 2011-09-29 05:28:35 -0500 )edit
Yeah, that works by using that include..By the way, which way is the best practice between those two?
alfa_80 gravatar imagealfa_80 ( 2011-09-29 05:43:01 -0500 )edit
Most ROS packages use the include and then do all the build configuration in CMake.
kwc gravatar imagekwc ( 2011-09-29 09:04:53 -0500 )edit
@kwc: Thanks a lot anyway..
alfa_80 gravatar imagealfa_80 ( 2011-09-29 18:35:02 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-09-29 04:41:46 -0500

Seen: 2,297 times

Last updated: Sep 29 '11