**ERROR building Eclipse project!** with "make eclipse-project"
Hi,
I am currently trying to create eclipse projects for my cpp nodes in ros fuerte according to this guidelines. Unfortunately the error "ERROR building Eclipse project!" occurs (the whole output is in the quote at the end of this post) if I move to the package directory (via roscd) and type "make eclipse-project" . After that the directory does not contain eclipse project files. The only new file in the package folder is named "cmake_install.cmake". Do you have any suggestions what might have gone wrong?
Thanks & Regards scr
user@computer:~/path/my_package$ 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
-- 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/python2.7
[rosbuild] Building package my_package
[rosbuild] Cached build flags older than manifests; calling rospack to get flags
[rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake
[rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake
[rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /path/my_package
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 'my_package'
Writing .pydevproject, adding 27 modules
EDIT1: I am using ros fuerte - edited in text above.
EDIT2: I tried to set back the cmake.mk to the electric version by exchanging the following line from the fuerte file:
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
with the following lines of the electric file:
cmake -G"Eclipse CDT4 - Unix Makefiles" -Wno-dev .
rm Makefile
rm CMakeCache.txt
rm -rf CMakeFiles
Unfortunately, the eclipse project files are still not build.
I just wrote a very simple test and it worked for me in ROS Electric. All I did was "roscreate-pkg test" and inside the package folder "make eclipse-project". The project was created successfully. I have used this feature in my own projects as well. Could this be a problem in Fuerte?
Thanks for the replies. Yes I am using ros fuerte (just edited that)! I will try changing the makefile and report back.
I just tried to modify the make file as stated in EDIT2 of the main post. As a result the error message did of course not occur. However, the project files still do not occur in the package folder. Do you have any other ideas what could be wrong?
Not really... I suggest looking into the repository for rosbuild and checking out the revision history, perhaps: https://code.ros.org/svn/ros/stacks/ros/trunk/core/rosbuild
Otherwise, I suggest trying the downgrade to Electric in a virtual machine to test this feature: apparently there was a major update in the build system, and it might actually be broken in Fuerte.
This is the commit log for that change, made by Gerkey himself: https://code.ros.org/gf/project/ros/mailman/?action=ListThreads&mailman_id=3&_forum_action=MessageReply&message_id=88464
What programming language are you working with? Have you installed Eclipse CDT?