Problems using Eclipse and Orocos

I am trying to integrate Orocos (orocos_toolchain_ros) and Eclipse (Eclipse IDE for C/C++ Developers, Version: Helios Service Release 2). I read the instructions given in http://www.orocos.org/wiki/rtt/eclipse/another-way-using-eclipse-and-orocos. But when I create my Orocos package (using orocreate-pkg) and then do a 'Makefile Project with Existing Code' in Eclipse I get a make error. The eclipse console reply showing the error is in the lower part or the message.

I don't if the problem is the version of Ubuntu (I use 10.4). The cmakelist and makefile are the ones generated by orocreate-pkg. Apparently the makefile is not entering the 'ifdef ROS_ROOT'.

BR

Santiago

----eclipse console---

make all

mkdir -p build

Makefile:7: This Makefile builds this package with default settings

cd build ; cmake .. -DINSTALL_PATH=orocos && make

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

CMake Error at CMakeLists.txt:27 (find_package):

  Could not find module FindOROCOS-RTT.cmake or a configuration file for
  package OROCOS-RTT.

  Adjust CMAKE_MODULE_PATH to find FindOROCOS-RTT.cmake or set OROCOS-RTT_DIR
-- Configuring incomplete, errors occurred!

  to the directory containing a CMake configuration file for OROCOS-RTT.  The
  file will have one of the following names:

    OROCOS-RTTConfig.cmake
    orocos-rtt-config.cmake
CMake Error at CMakeLists.txt:31 (include):
  include could not find load file:

    /UseOROCOS-RTT.cmake
CMake Error at CMakeLists.txt:45 (orocos_component):
  Unknown CMake command "orocos_component".
make: *** [all] Error 1

Problems using Eclipse and Orocos

On Thu, May 12, 2011 at 2:11 PM, <focke [dot] 85 [..] ...> wrote:
> I am trying to integrate Orocos (orocos_toolchain_ros) and Eclipse (Eclipse IDE for C/C++ Developers, Version: Helios Service Release 2). I read the instructions given in http://www.orocos.org/wiki/rtt/eclipse/another-way-using-eclipse-and-orocos. But when I create my Orocos package (using orocreate-pkg) and then do a 'Makefile Project with Existing Code' in Eclipse I get a make error. The eclipse console reply showing the error is in the lower part or the message.
>
> I don't if the problem is the version of Ubuntu (I use 10.4). The cmakelist and makefile are the ones generated by orocreate-pkg. Apparently the makefile is not entering the 'ifdef ROS_ROOT'.

as you guessed, eclipse did not pick-up the ROS_ROOT environment
variable. There are two possible ways out of this;

1. define ROS_ROOT and ROS_PACKAGE_PATH in your eclipse project
environment settings
2. (preferred:) Generate an eclipse project with 'make
eclipse-project' in the project source directory (where Makefile is)
and import this project in eclipse.

I updated the wiki page, so maybe it's more clear now.

Cheers,
Peter