Orocos & OCL with ROS install questions.

Dear Orocos users,

I'm trying to install the OROCOS 2.0 environment with ROS. I'm new to
both and I'm struggling with two questions:

-Did my install work?
-What is my include and library path to install orocos ocl in non
default locations?

I think/hope I succeeded with the install because I got the following
lines in the terminal:

At first I was confused about the ROS_NOBUILD, but I found (ROS Wiki)
that these are placed in the package and ROS doesn't compile them, so I
assume it's just fine...or isn't it?

root@LinuxRT:/opt/ros/boxturtle/ros/orocos# rosmake rtt_2.0

[ rosmake ] Packages requested are: ['rtt_2.0']

[ rosmake ] Logging to directory

[ rosmake ] /home/mobilab/.ros/rosmake/rosmake_output-20100809-115154

[ rosmake ] Expanded args ['rtt_2.0'] to:

['rtt_2.0']

[ rosmake ] Checking rosdeps compliance for packages rtt_2.0. This may
take a few seconds.

[rosstack] warning: trailing slash found in ROS_PACKAGE_PATH

[ rosmake ] rosdep check passed all system dependencies in packages

[ rosmake ] [ 2 of 14 Completed ]

[rosmake-0] >>> rtt_2.0 >>> [ make ]

[rosmake-0] <<< rtt_2.0 <<< [PASS] [ 20.22 seconds ]

[ rosmake ] [ 3 of 14 Completed ]

[rosmake-0] >>> pycrypto >>> [ make ]

[rosmake-0] <<< pycrypto <<< ROS_NOBUILD in package pycrypto

...

[ rosmake ] [ 13 of 14 Completed ]

[rosmake-0] >>> rostest >>> [ make ]

[rosmake-0] <<< rostest <<< ROS_NOBUILD in package rostest

[ rosmake ] Summary output to directory

[ rosmake ] /home/mobilab/.ros/rosmake/rosmake_output-20100809-115154

Now, I'm trying to install the OCL (with help of the install file). I
got following error:

root@LinuxRT:/opt/ros/boxturtle/ros/orocos/rtt/orocos-ocl-1.99.4# cmake .

Orocos Component Library version (1.99.4)

No orocos-ocl.cmake file loaded, using default settings.See
orocos-ocl.default.cmake

Build type set to 'OCL' by user.

Found Doxygen -- documentation can be built

-- Detecting RTT

Searching RTT in /usr/local:

-- Looking for orocos-rtt >= 1.1.0 -- not found

-- Looking for orocos-rtt >= 1.0.0 -- not found

CMake Error at config/FindOrocosRTT.cmake:151 (MESSAGE):

Can't find Orocos Real-Time Toolkit (orocos-rtt.pc)

Call Stack (most recent call first):

CMakeLists.txt:153 (INCLUDE)

I see that cmake is looking in /usr/local. This is not my install
directory and I know I'm suppose to set it to the correct directory
with "export CMAKE_INCLUDE_PATH=???" & "CMAKE_LIBRARY_PATH"=???.

What is my install directory when I use ROSMAKE? (I guess it is
/opt/ros/boxturtle/ros/orocos, but there are no headers or library's
here).

I also don't find the "orocos-rtt.pc" file when I search my system, I
only found orocos-rtt.pc.in.
Is this normal or is it an indication that the install didn't go so
well as I hoped?

Thanks in advance!

Kind regards,

Roy

Ruben Smits's picture

Orocos & OCL with ROS install questions.

On Monday 09 August 2010 13:09:12 Roy Sevit wrote:
> Dear Orocos users,
>
> I'm trying to install the OROCOS 2.0 environment with ROS. I'm new to
> both and I'm struggling with two questions:
>
> -Did my install work?
> -What is my include and library path to install orocos ocl in non
> default locations?
>
> I think/hope I succeeded with the install because I got the following
> lines in the terminal:
>
> At first I was confused about the ROS_NOBUILD, but I found (ROS Wiki)
> that these are placed in the package and ROS doesn't compile them, so I
> assume it's just fine...or isn't it?

Can you check if there is something inside `rospack find rtt_2.0`/install. If
it's there rtt 2.0 was build correctly.

> root@LinuxRT:/opt/ros/boxturtle/ros/orocos# rosmake rtt_2.0
>
> [ rosmake ] Packages requested are: ['rtt_2.0']
>
> [ rosmake ] Logging to directory
>
> [ rosmake ] /home/mobilab/.ros/rosmake/rosmake_output-20100809-115154
>
> [ rosmake ] Expanded args ['rtt_2.0'] to:
>
> ['rtt_2.0']
>
> [ rosmake ] Checking rosdeps compliance for packages rtt_2.0. This may
> take a few seconds.
>
> [rosstack] warning: trailing slash found in ROS_PACKAGE_PATH

Maybe this warning is something you should resolve.

> [ rosmake ] rosdep check passed all system dependencies in packages
>
> [ rosmake ] [ 2 of 14 Completed ]
>
> [rosmake-0] >>> rtt_2.0 >>> [ make ]
>
> [rosmake-0] <<< rtt_2.0 <<< [PASS] [ 20.22 seconds ]
>
> [ rosmake ] [ 3 of 14 Completed ]
>
> [rosmake-0] >>> pycrypto >>> [ make ]
>
> [rosmake-0] <<< pycrypto <<< ROS_NOBUILD in package pycrypto
>
>
>
>
> ...
>
>
> [ rosmake ] [ 13 of 14 Completed ]
>
> [rosmake-0] >>> rostest >>> [ make ]
>
> [rosmake-0] <<< rostest <<< ROS_NOBUILD in package rostest
>
>
>
> [ rosmake ] Summary output to directory
>
> [ rosmake ] /home/mobilab/.ros/rosmake/rosmake_output-20100809-115154
>
> Now, I'm trying to install the OCL (with help of the install file). I
> got following error:
>
> root@LinuxRT:/opt/ros/boxturtle/ros/orocos/rtt/orocos-ocl-1.99.4# cmake .
>
> Orocos Component Library version (1.99.4)
>
> No orocos-ocl.cmake file loaded, using default settings.See
> orocos-ocl.default.cmake
>
> Build type set to 'OCL' by user.
>
> Found Doxygen -- documentation can be built
>
> -- Detecting RTT
>
> Searching RTT in /usr/local:
>
> -- Looking for orocos-rtt >= 1.1.0 -- not found
>
> -- Looking for orocos-rtt >= 1.0.0 -- not found
>
> CMake Error at config/FindOrocosRTT.cmake:151 (MESSAGE):
>
> Can't find Orocos Real-Time Toolkit (orocos-rtt.pc)
>
> Call Stack (most recent call first):
>
> CMakeLists.txt:153 (INCLUDE)
>
>
> I see that cmake is looking in /usr/local. This is not my install
> directory and I know I'm suppose to set it to the correct directory
> with "export CMAKE_INCLUDE_PATH=???" & "CMAKE_LIBRARY_PATH"=???.
>
> What is my install directory when I use ROSMAKE? (I guess it is
> /opt/ros/boxturtle/ros/orocos, but there are no headers or library's
> here).

How are you trying to make ocl_2.0? You should just do rosmake in the ocl_2.0
package (in the orocos stack: orocos/ocl/ocl_2.0). It looks like you are
trying to bypass the build system.

Ruben

> I also don't find the "orocos-rtt.pc" file when I search my system, I
> only found orocos-rtt.pc.in.
> Is this normal or is it an indication that the install didn't go so
> well as I hoped?
>
> Thanks in advance!
>
> Kind regards,
>
> Roy