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

"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
(Helios). Adjust CMAKE_ECLIPSE_VERSION
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
/opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake
[rosbuild] Including
/opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
[rosbuild] Including
/opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake
-- 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
/opt/ros/fuerte/share/ros/core/mk/eclipse.awk
.project-cmake     .project rm
.project-cmake python
/opt/ros/fuerte/share/ros/core/mk/make_pydev_project.py
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 
.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
2

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"
Icon=PATH_TO_ECLIPSE/icon.xpm
Type=Application
Terminal=false
StartupNotify=true
Name=Eclipse
GenericName=Integrated Development Environment
MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;
Categories=Eclipse;Development; IDE;
InitialPreference=9

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
6

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?

Check:

$ 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
0

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

Comments

2

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

Stats

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

Seen: 1,807 times

Last updated: Aug 27 '12