typegen fails on laser.h from typegen tests directory

Hi,

I'm trying to get the Orocos Toolchain running on RHEL 6 and I'm
almost there, I have the full toolchain compiled succesfully and my
deployer and rttlua are working as expected. Only typegen is still
giving me a headache. I'm trying to parse one of the headers that are
in the typegen tests directory: laser.h but I get the following error.

typegen foo laser.h -o foo
/usr/lib/ruby/1.8/typelib-gccxml.rb:566:in `gccxml': cannot load one
of the header files /home/codac-dev/tmp/laser.h: gccxml returned an
error while parsing /tmp/orogen_pending_loads20120823-8048-1i3dv6k-0
(ArgumentError)
from /usr/lib/ruby/1.8/tempfile.rb:188:in `open'
from /usr/lib/ruby/1.8/typelib-gccxml.rb:563:in `gccxml'
from /usr/lib/ruby/1.8/typelib-gccxml.rb:590:in `load_from_gccxml'
from /usr/lib/ruby/1.8/typelib.rb:1886:in `call'
from /usr/lib/ruby/1.8/typelib.rb:1886:in `import'
from /usr/share/ros-stacks/orocos_toolchain/orogen/lib/orogen/gen/typekit.rb:1385:in
`do_import'
from /usr/share/ros-stacks/orocos_toolchain/orogen/lib/orogen/gen/typekit.rb:1136:in
`perform_pending_loads'
from /usr/lib/ruby/1.8/tempfile.rb:188:in `open'
from /usr/share/ros-stacks/orocos_toolchain/orogen/lib/orogen/gen/typekit.rb:1129:in
`perform_pending_loads'
from /usr/share/ros-stacks/orocos_toolchain/orogen/lib/orogen/gen/typekit.rb:1552:in
`generate'
from /usr/share/ros-stacks/orocos_toolchain/orogen/bin/typegen:113

Can someone point me into the right direction for solving this
problem? Is it gccxml or a problem in typegen itself?

Ruben

typegen fails on laser.h from typegen tests directory

Good question.

I tried with Rock's version of typegen on Ubuntu 12.04, and it worked
fine. However, that is no proof.

Could you try to run gccxml laser.h manually ?

typegen fails on laser.h from typegen tests directory

Hi Sylvain,

2012/9/14 Sylvain Joyeux <sylvain [dot] joyeux [..] ...>:
> Good question.
>
> I tried with Rock's version of typegen on Ubuntu 12.04, and it worked
> fine. However, that is no proof.
>
> Could you try to run gccxml laser.h manually ?

FYI, I believe the bug was that gccxml was just not there because it's
not installed 'by default' on RHEL.

The solution was to add an extra dependency on gccxml for RHEL systems.

Peter