oroGen: cannot configure the rtt-typelib's build system

HI,
I just got the master branch from orocos_toolchain_ros.
I'm trying to compile it, now I'm stuck on oroGen

I've sourced the env.sh and my RUBYLIB variable states the following (which looks ok to me)
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/utilrb/lib:/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/lib:/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/typelib/install/lib/ruby/1.8/i686-linux:/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/typelib/install/lib/ruby/1.8

system info:
64 bit system with 32 bit installation
Ubuntu 10.10
boost 1.42
ROS diamondback by ros diamondback orocos toolchain ros debian pkgs
toolchian master branch from git at 5024e64a05160cd9ae761af812fb40f325592d9d
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]

error:
-- checking for module 'orocos-rtt-mqueue-'
-- package 'orocos-rtt-mqueue-' not found
-- MQ transport not found, MQ typelib marshaller disabled
-- checking for module 'typelib'
-- found typelib, version 1.1
-- Configuring incomplete, errors occurred!
cannot load oroGen
did you install Typelib's Ruby bindings and update the RUBYLIB environment variable accordingly ?
did you add /home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/lib to RUBYLIB ?
the error is: cannot configure the rtt-typelib's build system

/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/Rakefile:16
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/Rakefile:13:in `chdir'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/Rakefile:13
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/gems/rake-0.8.7/bin/rake:31
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/bin/rake:19:in `load'
/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/.gems/bin/rake:19

thanks

nick

oroGen: cannot configure the rtt-typelib's build system

On 05/05/2011 03:42 PM, Dominick Vanthienen wrote:
> I just got the master branch from orocos_toolchain_ros.
> I'm trying to compile it, now I'm stuck on oroGen
Can you copy the attached Makefile in the orogen folder and try again ?

It should fix your particular problem ... But I have no ros installation
so I can't test ...

Best regards,

oroGen: cannot configure the rtt-typelib's build system

On 05/05/2011 04:27 PM, Sylvain Joyeux wrote:
> On 05/05/2011 03:42 PM, Dominick Vanthienen wrote:
>> I just got the master branch from orocos_toolchain_ros.
>> I'm trying to compile it, now I'm stuck on oroGen
> Can you copy the attached Makefile in the orogen folder and try again ?
Same error again
do I have to include some export in env.sh too?
{-------------------------------------------------------------------------------
-- package 'orocos-rtt-' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
CMakeLists.txt:6 (pkg_check_modules)

-- checking for module 'orocos-rtt-mqueue-'
-- package 'orocos-rtt-mqueue-' not found
-- MQ transport not found, MQ typelib marshaller disabled
-- Configuring incomplete, errors occurred!
cannot load oroGen
did you install Typelib's Ruby bindings and update the RUBYLIB environment variable accordingly ?
did you add /home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/lib to RUBYLIB ?
the error is: cannot configure the rtt-typelib's build system

> It should fix your particular problem ... But I have no ros installation
> so I can't test ...
>
> Best regards,

oroGen: cannot configure the rtt-typelib's build system

On Thursday 05 May 2011 17:09:54 Dominick Vanthienen wrote:
> On 05/05/2011 04:27 PM, Sylvain Joyeux wrote:
> > On 05/05/2011 03:42 PM, Dominick Vanthienen wrote:
> >> I just got the master branch from orocos_toolchain_ros.
> >> I'm trying to compile it, now I'm stuck on oroGen
> >
> > Can you copy the attached Makefile in the orogen folder and try again ?
>
> Same error again
> do I have to include some export in env.sh too?

The env.sh of autoproj contains an OROCOS_TARGET export, so the Makefile tries
to pick that one up.

I think it's best to include OROCOS_TARGET=gnulinux in the env.sh ofthe orocos
ros stack as well, and that people can override that if needed.

Peter

oroGen: cannot configure the rtt-typelib's build system

On 05/05/2011 05:32 PM, Peter Soetens wrote:
> On Thursday 05 May 2011 17:09:54 Dominick Vanthienen wrote:
>> On 05/05/2011 04:27 PM, Sylvain Joyeux wrote:
>>> On 05/05/2011 03:42 PM, Dominick Vanthienen wrote:
>>>> I just got the master branch from orocos_toolchain_ros.
>>>> I'm trying to compile it, now I'm stuck on oroGen
>>> Can you copy the attached Makefile in the orogen folder and try again ?
>> Same error again
>> do I have to include some export in env.sh too?
> The env.sh of autoproj contains an OROCOS_TARGET export, so the Makefile tries
> to pick that one up.
>
> I think it's best to include OROCOS_TARGET=gnulinux in the env.sh ofthe orocos
> ros stack as well, and that people can override that if needed.
>

this helps!

new problem:
It seems that I need to install it with root rights??

make[2]: Leaving directory `/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/rtt-typelib/build'
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/librtt-typelib.so
CMake Error at cmake_install.cmake:42 (FILE):
file INSTALL cannot copy file
"/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/rtt-typelib/build/librtt-typelib.so"
to "/usr/local/lib/librtt-typelib.so".

make[1]: *** [install] Error 1

> Peter

oroGen: cannot configure the rtt-typelib's build system

On Thursday 05 May 2011 17:40:42 Dominick Vanthienen wrote:
> On 05/05/2011 05:32 PM, Peter Soetens wrote:
> > On Thursday 05 May 2011 17:09:54 Dominick Vanthienen wrote:
> >> On 05/05/2011 04:27 PM, Sylvain Joyeux wrote:
> >>> On 05/05/2011 03:42 PM, Dominick Vanthienen wrote:
> >>>> I just got the master branch from orocos_toolchain_ros.
> >>>> I'm trying to compile it, now I'm stuck on oroGen
> >>>
> >>> Can you copy the attached Makefile in the orogen folder and try again ?
> >>
> >> Same error again
> >> do I have to include some export in env.sh too?
> >
> > The env.sh of autoproj contains an OROCOS_TARGET export, so the Makefile
> > tries to pick that one up.
> >
> > I think it's best to include OROCOS_TARGET=gnulinux in the env.sh ofthe
> > orocos ros stack as well, and that people can override that if needed.
>
> this helps!
>
> new problem:
> It seems that I need to install it with root rights??
>
> make[2]: Leaving directory
> `/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/
> rtt-typelib/build' Install the project...
> -- Install configuration: ""
> -- Installing: /usr/local/lib/librtt-typelib.so
> CMake Error at cmake_install.cmake:42 (FILE):
> file INSTALL cannot copy file
>
> "/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/
> rtt-typelib/build/librtt-typelib.so" to "/usr/local/lib/librtt-typelib.so".
>
>
> make[1]: *** [install] Error 1
>

No, we need to provide the CMAKE_INSTALL_PREFIX=`rospack find orogen`/install
flag to rake as well in the Makefile. you then also need to update the env.sh
file to include this directory in various path settings...

As a different solution, I'm seriously thinking of having a single 'install'
subdirectory of the orocos_toolchain_ros package, for all upstream toolchain
packages (rtt->orogen), while the ros extensions keep respecting the 'ros
layout' (no make install).

This would mean that the Makefile contains for every normal package the line:
EXTRA_CMAKE_FLAGS=-DCMAKE_INSTALL_PREFIX=`rospack find <pkgname>`/../install

and to update the env.sh file to include its subdirs in the pkg config prefix
paths etc.

I don't know how this will disrupt Debian packages, or if this will work in a
relyable way.

It seems like a nice thing to introduce on the master branch or the
orocos_toolchain_ros :-)

Peter

oroGen: cannot configure the rtt-typelib's build system

On Thursday 05 May 2011 15:42:51 Dominick Vanthienen wrote:
> HI,
> I just got the master branch from orocos_toolchain_ros.
> I'm trying to compile it, now I'm stuck on oroGen
>
> I've sourced the env.sh and my RUBYLIB variable states the following (which
> looks ok to me)
> /home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/utilrb/l
> ib:/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen
> /lib:/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/type
> lib/install/lib/ruby/1.8/i686-linux:/home/u0065688/src/svn/robotics-ros/pac
> kages/orocos_toolchain_ros/typelib/install/lib/ruby/1.8
>
> system info:
> 64 bit system with 32 bit installation
> Ubuntu 10.10
> boost 1.42
> ROS diamondback by ros diamondback orocos toolchain ros debian pkgs
> toolchian master branch from git at
> 5024e64a05160cd9ae761af812fb40f325592d9d ruby 1.8.7 (2010-06-23 patchlevel
> 299) [i686-linux]
>
>
> error:
> -- checking for module 'orocos-rtt-mqueue-'
> -- package 'orocos-rtt-mqueue-' not found

The OROCOS_TARGET has not been set (it should follow the dash). This is
already bad...

> -- MQ transport not found, MQ typelib marshaller disabled
> -- checking for module 'typelib'
> -- found typelib, version 1.1
> -- Configuring incomplete, errors occurred!
> cannot load oroGen
> did you install Typelib's Ruby bindings and update the RUBYLIB
> environment variable accordingly ? did you add
> /home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/l
> ib to RUBYLIB ? the error is: cannot configure the rtt-typelib's build
> system
>

It's probably caused by this missing OROCOS_TARGET. Is it set in env.sh or set
in orogen's Makefile ? I think autoproj handles this by setting the
OROCOS_TARGET, but I was not aware that orogen required any cmake
configuration. This is probably new on master...

Peter

oroGen: cannot configure the rtt-typelib's build system

On 05/05/2011 03:59 PM, Peter Soetens wrote:
> It's probably caused by this missing OROCOS_TARGET. Is it set in env.sh or set
> in orogen's Makefile ? I think autoproj handles this by setting the
> OROCOS_TARGET, but I was not aware that orogen required any cmake
> configuration. This is probably new on master...
It is indeed new on master
The full syntax is

rake setup[CMAKE_OPTIONS]

for instance, on my machine, autoproj calls

setup[-DCMAKE_INSTALL_PREFIX=/home/doudou/dfki/imoby/install
-DOROCOS_TARGET=gnulinux]

oroGen: cannot configure the rtt-typelib's build system

On Thursday 05 May 2011 16:26:47 Sylvain Joyeux wrote:
> On 05/05/2011 03:59 PM, Peter Soetens wrote:
> > It's probably caused by this missing OROCOS_TARGET. Is it set in env.sh
> > or set in orogen's Makefile ? I think autoproj handles this by setting
> > the OROCOS_TARGET, but I was not aware that orogen required any cmake
> > configuration. This is probably new on master...
>
> It is indeed new on master
> The full syntax is
>
> rake setup[CMAKE_OPTIONS]
>
> for instance, on my machine, autoproj calls
>
> setup[-DCMAKE_INSTALL_PREFIX=/home/doudou/dfki/imoby/install
> -DOROCOS_TARGET=gnulinux]

Who'se linking against this library ? Only the new MQueue marshaller ? What
are possible applications for this library ?

Peter

oroGen: cannot configure the rtt-typelib's build system

On 05/05/2011 06:08 PM, Peter Soetens wrote:
> On Thursday 05 May 2011 16:26:47 Sylvain Joyeux wrote:
>> On 05/05/2011 03:59 PM, Peter Soetens wrote:
>>> It's probably caused by this missing OROCOS_TARGET. Is it set in env.sh
>>> or set in orogen's Makefile ? I think autoproj handles this by setting
>>> the OROCOS_TARGET, but I was not aware that orogen required any cmake
>>> configuration. This is probably new on master...
>>
>> It is indeed new on master
>> The full syntax is
>>
>> rake setup[CMAKE_OPTIONS]
>>
>> for instance, on my machine, autoproj calls
>>
>> setup[-DCMAKE_INSTALL_PREFIX=/home/doudou/dfki/imoby/install
>> -DOROCOS_TARGET=gnulinux]
>
> Who'se linking against this library ? Only the new MQueue marshaller ? What
> are possible applications for this library ?
Also orocos.rb (the Ruby binding for orocos) as well, and some other
libraries we have in rock.

In general, it is a plug between types coming from the RTT and typelib.

oroGen: cannot configure the rtt-typelib's build system

On 05/05/2011 03:59 PM, Peter Soetens wrote:
> On Thursday 05 May 2011 15:42:51 Dominick Vanthienen wrote:
>> HI,
>> I just got the master branch from orocos_toolchain_ros.
>> I'm trying to compile it, now I'm stuck on oroGen
>>
>> I've sourced the env.sh and my RUBYLIB variable states the following (which
>> looks ok to me)
>> /home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/utilrb/l
>> ib:/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen
>> /lib:/home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/type
>> lib/install/lib/ruby/1.8/i686-linux:/home/u0065688/src/svn/robotics-ros/pac
>> kages/orocos_toolchain_ros/typelib/install/lib/ruby/1.8
>>
>> system info:
>> 64 bit system with 32 bit installation
>> Ubuntu 10.10
>> boost 1.42
>> ROS diamondback by ros diamondback orocos toolchain ros debian pkgs
>> toolchian master branch from git at
>> 5024e64a05160cd9ae761af812fb40f325592d9d ruby 1.8.7 (2010-06-23 patchlevel
>> 299) [i686-linux]
>>
>>
>> error:
>> -- checking for module 'orocos-rtt-mqueue-'
>> -- package 'orocos-rtt-mqueue-' not found
> The OROCOS_TARGET has not been set (it should follow the dash). This is
> already bad...
>
>> -- MQ transport not found, MQ typelib marshaller disabled
>> -- checking for module 'typelib'
>> -- found typelib, version 1.1
>> -- Configuring incomplete, errors occurred!
>> cannot load oroGen
>> did you install Typelib's Ruby bindings and update the RUBYLIB
>> environment variable accordingly ? did you add
>> /home/u0065688/src/svn/robotics-ros/packages/orocos_toolchain_ros/orogen/l
>> ib to RUBYLIB ? the error is: cannot configure the rtt-typelib's build
>> system
>>
> It's probably caused by this missing OROCOS_TARGET. Is it set in env.sh or set
> in orogen's Makefile ?
nope, both don't containt OROCOS_TARGET
(btw I see in the Makefile of orogen
install:
rake=> is this right? didn't you mean make?)
> I think autoproj handles this by setting the
> OROCOS_TARGET, but I was not aware that orogen required any cmake
> configuration. This is probably new on master...
>
> Peter