compiling typekits without CORBA transport

Hello,

I made a typekit with: orocreate-pkg myTypes typekit

when I try to build it with cmake, the build system detects that rtt has
CORBA transport and it tries to generate the
myTypes-transport-corba-xenomai target. However, I am cross-compiling
and the compilation of that target fails. (All other targets
cross-compile okay)

Is there a way to tell the build system to NOT attempt to build the
corba transport? I can compile them on the native platform if I need the
corba transport for it.

Regards,
Sagar

compiling typekits without CORBA transport

Hi Sagar,

Yes it's possible, just pass an option to typegen itself. For example:

$ typegen --help
usage: typegen [--transports=NAME1,NAME2] [--output=output_dir]
[--import=LIBRARY,TYPEKIT] name inputs
this installation of typegen knows the following transports: corba, mqueue,
typelib
-i, --import=LIBRARY a library or typekit to get headers
and/or types from, using its pkg-config name
-n, --notransports=NAME1,NAME2 list of transports to disable (by
default, corba, typelib, mqueue are enabled)
-t, --transports=NAME1,NAME2 list of transports to enable only (by
default, corba, typelib, mqueue are enabled)
-o, --output=DIR the directory to which the generated
typekit should be written
-v, --verbose
-d, --debug
--help

So modify your CMakeLists.txt file as such:

orocos_typegen_headers( -n corba myheader.hpp)

Peter

On Tue, May 14, 2013 at 1:28 PM, Sagar Behere <sagar [dot] behere [..] ...>wrote:

> Hello,
>
> I made a typekit with: orocreate-pkg myTypes typekit
>
> when I try to build it with cmake, the build system detects that rtt has
> CORBA transport and it tries to generate the
> myTypes-transport-corba-xenomai target. However, I am cross-compiling
> and the compilation of that target fails. (All other targets
> cross-compile okay)
>
> Is there a way to tell the build system to NOT attempt to build the
> corba transport? I can compile them on the native platform if I need the
> corba transport for it.
>
> Regards,
> Sagar
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

compiling typekits without CORBA transport

On 05/14/2013 10:06 PM, Peter Soetens wrote:
> Hi Sagar,
>
> Yes it's possible, just pass an option to typegen itself. For example:
>
> $ typegen --help
> usage: typegen [--transports=NAME1,NAME2] [--output=output_dir]
> [--import=LIBRARY,TYPEKIT] name inputs
> this installation of typegen knows the following transports: corba,
> mqueue, typelib
> -i, --import=LIBRARY a library or typekit to get
> headers and/or types from, using its pkg-config name
> -n, --notransports=NAME1,NAME2 list of transports to disable (by
> default, corba, typelib, mqueue are enabled)
> -t, --transports=NAME1,NAME2 list of transports to enable only
> (by default, corba, typelib, mqueue are enabled)
> -o, --output=DIR the directory to which the
> generated typekit should be written
> -v, --verbose
> -d, --debug
> --help
>
> So modify your CMakeLists.txt file as such:
>
> orocos_typegen_headers( -n corba myheader.hpp)

That worked perfectly! :)

Thank you very much,
Sagar

> On Tue, May 14, 2013 at 1:28 PM, Sagar Behere <sagar [dot] behere [..] ...
> <mailto:sagar [dot] behere [..] ...>> wrote:
>
> Hello,
>
> I made a typekit with: orocreate-pkg myTypes typekit
>
> when I try to build it with cmake, the build system detects that rtt has
> CORBA transport and it tries to generate the
> myTypes-transport-corba-xenomai target. However, I am cross-compiling
> and the compilation of that target fails. (All other targets
> cross-compile okay)
>
> Is there a way to tell the build system to NOT attempt to build the
> corba transport? I can compile them on the native platform if I need the
> corba transport for it.
>
> Regards,
> Sagar
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> <mailto:Orocos-Users [..] ...>
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>