typelib and utilmm

Hello,

I am trying to figure out why orogen/typegen does not work when I'm
cross-compiling the orocos toolchain.

The page

http://www.orocos.org/wiki/orocos/toolchain/getting-started

says that typelib and utilmm are "Helper libraries for the tools". I'm
assuming that

1. The 'tools' are orogen and typegen
2. Both orogen and typegen generate pure source code

Therefore, orogen and typegen should run natively. Since they are using
ruby, one assumes they are automatically platform independent.. but if
they depend on typelib and utilmm and these libraries are cross-compiled
instead of natively compiled, then the tools won't work on the native
machine!?

So the question is:

Should typelib and utilmm be compiled natively, regardless of whether
the rest of the toolchain is cross-compiled?

Regards,
Sagar

typelib and utilmm

On 01.07.2012 22:27, Sagar Behere wrote:
> Hello,
>
> I am trying to figure out why orogen/typegen does not work when I'm
> cross-compiling the orocos toolchain.
>
> The page
>
> http://www.orocos.org/wiki/orocos/toolchain/getting-started
>
> says that typelib and utilmm are "Helper libraries for the tools". I'm
> assuming that
>
> 1. The 'tools' are orogen and typegen
> 2. Both orogen and typegen generate pure source code
>
> Therefore, orogen and typegen should run natively. Since they are using
> ruby, one assumes they are automatically platform independent..
oroGen requires typelib and in that case it not just 'plain' Ruby, but
Ruby-bindings for natively compiled C++
> but if
> they depend on typelib and utilmm and these libraries are cross-compiled
> instead of natively compiled, then the tools won't work on the native
> machine!?
>
> So the question is:
>
> Should typelib and utilmm be compiled natively, regardless of whether
> the rest of the toolchain is cross-compiled?
To be able to use the tools locally yes - for compiling the oroGen
components with corba or mqueue transport you should be fine without a
crosscompiled typelib.
Otherwise it depends on the toolchain you want to use on your target
system. e.g. with Rock you will want typelib to be available, i.e. you
would (also) need to crosscompile.

Best
Thomas
>
> Regards,
> Sagar