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

"make eclipse-project" - problem

asked 2012-08-24 00:40:51 -0500

rosrookie gravatar image

updated 2012-08-25 03:19:27 -0500

Hello to all,

i followed this tutorial. At this Step:

Open a terminal, roscd into the folder of your package, and execute:

make eclipse-project

You will now find two Eclipse files in your package. It is not recommended to add them to the repository, as they contain absolute links and will be different for different users checking out your software.

no ecplise files are generated in my package. Following text is shown by the terminal:

faps@UbuntuBioMech:~/ros_workspace/test$ make eclipse-project 
mv Makefile Makefile.ros if ! (cmake -G"Eclipse
CDT4 - Unix Makefiles" -Wno-dev . &&
rm Makefile && rm CMakeCache.txt && rm
-rf CMakeFiles); then mv Makefile.ros Makefile && echo "**ERROR building
Eclipse project!**" && false; fi
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Could not determine Eclipse version, assuming at least 3.6
if this is wrong.
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.3") [rosbuild]
Building package test [rosbuild]
Cached build flags older than
manifests; calling rospack to get
flags [rosbuild] Including
[rosbuild] Including
[rosbuild] Including
-- Configuring done
-- Generating done
-- Build files have been written to: /home/faps/ros_workspace/test mv
Makefile.ros Makefile mv .project
.project-cmake awk -f
.project-cmake     .project rm
.project-cmake python
Creating pydev project for package
'test' Writing .pydevproject, adding
25 modules

Any Ideas what is going wrong? Many Thanks in advance, Dominik

executing ls .project, the terminal shows:

faps@UbuntuBioMech:~/ros_workspace/test$ ls .project 

Eclipse cant find any project-files in the directionary.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2012-08-27 00:03:08 -0500

It seems that the project file is being generated correctly.

Now you only need to import it to your project into Eclipse. For that you should start eclipse from a terminal where the ROS-related environment variables are defined (they should be if you added the line source /opt/ros/ROS_VERSION/setup.bash to your .bashrc file).

To make it easier I have this launcher in $HOME/Desktop/eclipse.desktop:

[Desktop Entry]
Exec=bash -i -c "PATH_TO_ECLIPSE/eclipse"
GenericName=Integrated Development Environment
Categories=Eclipse;Development; IDE;

Once Eclipse is running go to File->Import...

Select "Existing Projects into Workspace" on the dialog and click "Next"

Choose "Select root directory" and click the button "Browse...". Now navigate until you find the folder where your ROS project is stored and select it. (You will not be able to see the .project file on the list, but that is fine, just hit the "OK" button.)

Now the project name will appear on the Projects list. Click the "Finish" button and you are done!

I hope this helps.

edit flag offensive delete link more

answered 2012-08-24 00:55:32 -0500

KruseT gravatar image

updated 2012-08-26 23:12:30 -0500

It seems nothing is going wrong.

The error message early in the log is never printed out really, you just see it there because it is part of the if/then command.

Are you sure no eclipse files are being generated?


$ ls .project

EDIT: As you can see, the .project file was generated, so everything is all right. Please be more precise when you say Eclipse does not find any project files. You need to import the project into your eclipse workspace.

EDIT2: Project files are hidden files, so your eclipse dialog might not show them. You umight right-click the dialog to show hidden files. However eclipse is also fine with you just giving the folder name. If eclipse gives you an error, please post the error in your question.

edit flag offensive delete link more

answered 2012-08-26 07:23:01 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Written with my second account (with my first account "rosrookie" i wasnt able to post answers see this treat):

I build the project in a directory inside of my eclipse-workpsace. If I click File | Import... | Existing projects into workspace and navigate the root path to the directory where I build the .project-file, none .project-file is shown or available.

edit flag offensive delete link more



Do not write answers to your own questions unless they solve the problem.

KruseT gravatar image KruseT  ( 2012-08-26 23:10:24 -0500 )edit

Question Tools


Asked: 2012-08-24 00:40:51 -0500

Seen: 1,809 times

Last updated: Aug 27 '12