Ros make me some troubles...

Hi all,
I have some problems building OCL because I have also installed ROS and
when I compile:

make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find
rosbuild`/rostoolchain.cmake -DCMAKE_INSTALL_PREFIX=`rospack find
ocl`/install ..
[rospack] couldn't find package [ocl]
Orocos Component Library version (2.2.0)
No orocos-ocl.cmake file loaded, using default settings.See
orocos-ocl.default.cmake
[rosbuild] Building package ocl
CMake Error at /opt/ros/cturtle/ros/core/rosbuild/private.cmake:119
(message):
[rosbuild] rospack found package "ocl" at "", but the current directory is
"/home/fabrizio/workspace/orocos/ocl". You should double-check your
ROS_PACKAGE_PATH to ensure that packages are found in the correct
precedence order.
Call Stack (most recent call first):
/opt/ros/cturtle/ros/core/rosbuild/public.cmake:152
(_rosbuild_check_package_location)
CMakeLists.txt:129 (rosbuild_init)

I tried to do something (change the ros path, build the ocl ros pack
etc.) but nothing permit me to build ocl...

Thanks
Fabrizio

Ros make me some troubles...

On 01/19/2011 02:23 PM, Fabrizio wrote:
> Hi all,
> I have some problems building OCL because I have also installed ROS and
> when I compile:
>
> make
> mkdir -p bin
> cd build&& cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find
> rosbuild`/rostoolchain.cmake -DCMAKE_INSTALL_PREFIX=`rospack find
> ocl`/install ..
> [rospack] couldn't find package [ocl]
> Orocos Component Library version (2.2.0)
> No orocos-ocl.cmake file loaded, using default settings.See
> orocos-ocl.default.cmake
> [rosbuild] Building package ocl
> CMake Error at /opt/ros/cturtle/ros/core/rosbuild/private.cmake:119
> (message):
> [rosbuild] rospack found package "ocl" at "", but the current directory is
> "/home/fabrizio/workspace/orocos/ocl". You should double-check your
> ROS_PACKAGE_PATH to ensure that packages are found in the correct
> precedence order.
> Call Stack (most recent call first):
> /opt/ros/cturtle/ros/core/rosbuild/public.cmake:152
> (_rosbuild_check_package_location)
> CMakeLists.txt:129 (rosbuild_init)
>
> I tried to do something (change the ros path, build the ocl ros pack
> etc.) but nothing permit me to build ocl...
When you check the ros path:
echo $ROS_PACKAGE_PATH
Does it contain the path to the location of the folder with ocl in?
> Thanks
> Fabrizio
>

Ros make me some troubles...

On Wed, 19 Jan 2011 15:08:23 Dominick Vanthienen wrote:

> > I have some problems building OCL because I have also installed ROS and
> > when I compile:
> >
> > make
> > mkdir -p bin
> > cd build&& cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find
> > rosbuild`/rostoolchain.cmake -DCMAKE_INSTALL_PREFIX=`rospack find
> > ocl`/install ..
> > [rospack] couldn't find package [ocl]
> > Orocos Component Library version (2.2.0)
> > No orocos-ocl.cmake file loaded, using default settings.See
> > orocos-ocl.default.cmake
> > [rosbuild] Building package ocl
> > CMake Error at /opt/ros/cturtle/ros/core/rosbuild/private.cmake:119
> > (message):
> > [rosbuild] rospack found package "ocl" at "", but the current directory is
> > "/home/fabrizio/workspace/orocos/ocl". You should double-check your
> > ROS_PACKAGE_PATH to ensure that packages are found in the correct
> > precedence order.
> > Call Stack (most recent call first):
> > /opt/ros/cturtle/ros/core/rosbuild/public.cmake:152
> > (_rosbuild_check_package_location)
> > CMakeLists.txt:129 (rosbuild_init)
> >
> > I tried to do something (change the ros path, build the ocl ros pack
> > etc.) but nothing permit me to build ocl...
> When you check the ros path:
> echo $ROS_PACKAGE_PATH
> Does it contain the path to the location of the folder with ocl in?

Yes... Ok, the question is: "How can I compile the OCL source without ROS support?"
Thanks!

Fabrizio

Ruben Smits's picture

Ros make me some troubles...

On Thursday 20 January 2011 11:47:24 Fabrizio wrote:
> On Wed, 19 Jan 2011 15:08:23 Dominick Vanthienen wrote:
> > > I have some problems building OCL because I have also installed ROS
> > > and when I compile:
> > >
> > > make
> > > mkdir -p bin
> > > cd build&& cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find
> > > rosbuild`/rostoolchain.cmake -DCMAKE_INSTALL_PREFIX=`rospack find
> > > ocl`/install ..
> > > [rospack] couldn't find package [ocl]
> > > Orocos Component Library version (2.2.0)
> > > No orocos-ocl.cmake file loaded, using default settings.See
> > > orocos-ocl.default.cmake
> > > [rosbuild] Building package ocl
> > > CMake Error at /opt/ros/cturtle/ros/core/rosbuild/private.cmake:119
> > > (message):
> > > [rosbuild] rospack found package "ocl" at "", but the current
> > > directory is "/home/fabrizio/workspace/orocos/ocl". You should
> > > double-check your ROS_PACKAGE_PATH to ensure that packages are
> > > found in the correct precedence order.
> > > Call Stack (most recent call first):
> > > /opt/ros/cturtle/ros/core/rosbuild/public.cmake:152
> > > (_rosbuild_check_package_location)
> > > CMakeLists.txt:129 (rosbuild_init)
> > >
> > > I tried to do something (change the ros path, build the ocl ros pack
> > > etc.) but nothing permit me to build ocl...
> >
> > When you check the ros path:
> > echo $ROS_PACKAGE_PATH
> > Does it contain the path to the location of the folder with ocl in?
>
> Yes... Ok, the question is: "How can I compile the OCL source without ROS
> support?"

unset ROS_ROOT in your environment and/or use autoproj.

> Thanks!
>
> Fabrizio

Ruben

Ros make me some troubles...

On Friday 21 January 2011 09:39:14 Ruben Smits wrote:
> On Thursday 20 January 2011 11:47:24 Fabrizio wrote:
> > On Wed, 19 Jan 2011 15:08:23 Dominick Vanthienen wrote:
> > > > I have some problems building OCL because I have also installed ROS
> > > > and when I compile:
> > > >
> > > > make
> > > > mkdir -p bin
> > > > cd build&& cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find
> > > > rosbuild`/rostoolchain.cmake -DCMAKE_INSTALL_PREFIX=`rospack find
> > > > ocl`/install ..
> > > > [rospack] couldn't find package [ocl]
> > > > Orocos Component Library version (2.2.0)
> > > > No orocos-ocl.cmake file loaded, using default settings.See
> > > > orocos-ocl.default.cmake
> > > > [rosbuild] Building package ocl
> > > > CMake Error at /opt/ros/cturtle/ros/core/rosbuild/private.cmake:119
> > > > (message):
> > > > [rosbuild] rospack found package "ocl" at "", but the current
> > > > directory is "/home/fabrizio/workspace/orocos/ocl". You should
> > > > double-check your ROS_PACKAGE_PATH to ensure that packages are
> > > > found in the correct precedence order.
> > > > Call Stack (most recent call first):
> > > > /opt/ros/cturtle/ros/core/rosbuild/public.cmake:152
> > > > (_rosbuild_check_package_location)
> > > > CMakeLists.txt:129 (rosbuild_init)
> > > >
> > > > I tried to do something (change the ros path, build the ocl ros pack
> > > > etc.) but nothing permit me to build ocl...
> > >
> > > When you check the ros path:
> > > echo $ROS_PACKAGE_PATH
> > > Does it contain the path to the location of the folder with ocl in?
> >
> > Yes... Ok, the question is: "How can I compile the OCL source without ROS
> > support?"
>
> unset ROS_ROOT in your environment and/or use autoproj.

The only solution is to unset ROS_ROOT. autoproj will also use ROS_ROOT when
set.

Once ros is installed on your system, it's recommended to build the Orocos
toolchain with ros support and put your Orocos toolchain tree in the
ROS_PACKAGE_PATH.

We're still tuning the ros + autoproj / bootstrap builds, so don't hesitate to
drop us a mail if you run into a problem.

Peter

Ros make me some troubles...

On 01/21/2011 03:55 PM, Peter Soetens wrote:
> On Friday 21 January 2011 09:39:14 Ruben Smits wrote:
>> On Thursday 20 January 2011 11:47:24 Fabrizio wrote:
>>> ... "How can I compile the OCL source without ROS
>>> support?"
>> unset ROS_ROOT in your environment and/or use autoproj.
> The only solution is to unset ROS_ROOT. autoproj will also use ROS_ROOT when
> set.
>
> Once ros is installed on your system, it's recommended to build the Orocos
> toolchain with ros support and put your Orocos toolchain tree in the
> ROS_PACKAGE_PATH.
>
> We're still tuning the ros + autoproj / bootstrap builds, so don't hesitate to
> drop us a mail if you run into a problem.
>
Ok, thanks!
Fabrizio
> Peter
>

Ros make me some troubles...

On 01/21/2011 03:55 PM, Peter Soetens wrote:
> The only solution is to unset ROS_ROOT. autoproj will also use ROS_ROOT when
> set.
To clarify that statement: autoproj will do no such thing. The CMake
code of rtt,ocl,... have special paths for when ROS_ROOT is set.