Typegen error

Hi all.

I'm working with the latest debian packages of the Orocos-toolchain in ROS (v2.5 - electric - Ubuntu 11.04).

When I try to use typegen it reports me the following errors:

luca@luca-desktop:~/workspace/YouBot-types$ typegen --transport=corba --output . YouBot-types /home/brics/workspace/YouBot/YouBot-types.hpp 
/opt/ros/electric/stacks/orocos_toolchain/orogen/lib/orogen/gen/imports.rb:19:in `merge_xml': cannot load xml: plugin not found (ArgumentError)
    from /opt/ros/electric/stacks/orocos_toolchain/orogen/lib/orogen/gen/imports.rb:19:in `from_raw_data'
    from /opt/ros/electric/stacks/orocos_toolchain/orogen/lib/orogen/gen/project.rb:259:in `using_rtt_typekit'
    from /opt/ros/electric/stacks/orocos_toolchain/orogen/lib/orogen/gen/typekit.rb:823:in `initialize'
    from /opt/ros/electric/stacks/orocos_toolchain/orogen/bin/typegen:11:in `new'
    from /opt/ros/electric/stacks/orocos_toolchain/orogen/bin/typegen:11

Is it a bug?

The same input file worked with the toolchain v2.4.

Thanks, Luca

Typegen error

On 31 Oct 2011, at 1:11 PM, Peter Soetens wrote:

> On Mon, Oct 31, 2011 at 12:41 PM, Sylvain Joyeux <sylvain [dot] joyeux [..] ...> wrote:
>> On 10/31/2011 12:11 PM, Steven Bellens wrote:
>>> 2011/10/31 Sylvain Joyeux<sylvain [dot] joyeux [..] ...>:
>>>> On 10/31/2011 10:45 AM, Steven Bellens wrote:
>>>>> 2011/10/31 Ruben Smits<ruben [dot] smits [..] ...>:
>>>>>> On Friday 28 October 2011 10:43:17 luca [dot] gherardi [..] ... wrote:
>>>>>>> Hi all. I'm working with the latest debian packages of the Orocos-toolchain
>>>>>>> in ROS (v2.5 - electric - Ubuntu 11.04). When I try to use typegen it
>>>>>>> reports me the following errors:

>>>>>>> luca@luca-desktop:~/workspace/YouBot-types$ typegen --transport=corba
>>>>>>> --output . YouBot-types
>>>>>>> /home/brics/workspace/YouBot/YouBot-types.hpp
>>>>>>> /opt/ros/electric/stacks/orocos_toolchain/orogen/lib/orogen/gen/imports.rb:1
>>>>>>> 9:in `merge_xml': cannot load xml: plugin not found (ArgumentError) from
>>>>>>> /opt/ros/electric/stacks/orocos_toolchain/orogen/lib/orogen/gen/imports.rb:
>>>>>>> 19:in `from_raw_data' from
>>>>>>> /opt/ros/electric/stacks/orocos_toolchain/orogen/lib/orogen/gen/project.rb:2
>>>>>>> 59:in `using_rtt_typekit' from
>>>>>>> /opt/ros/electric/stacks/orocos_toolchain/orogen/lib/orogen/gen/typekit.rb:8
>>>>>>> 23:in `initialize' from
>>>>>>> /opt/ros/electric/stacks/orocos_toolchain/orogen/bin/typegen:11:in `new'
>>>>>>> from /opt/ros/electric/stacks/orocos_toolchain/orogen/bin/typegen:11<code>
>>>>>>> Is it a bug? The same input file worked with the toolchain v2.4. Thanks,
>>>>>> 
>>>>>> This has been reported before, I don't know whether it is already solved.
>>>>> 
>>>>> It is not. I traced down the problem to the typelib library, but did
>>>>> not find what exactly caused it.
>>>> This is caused by typelib not being able to load the typelib-gccxml.rb file
>>>> 
>>>> When installed, this file is installed in the standard Ruby folder(s)
>>>> (lib/ruby/<version>), and made available through the RUBYLIB environment
>>>> variable if not in a standard prefix like /usr and /usr/local
>>> 
>>> In my git checkout, the file is there indeed, and the RUBYLIB variable
>>> includes the correct folder. So either the file is not correctly
>>> installed or the environment variable export goes wrong in the
>>> automated build process?
>> 
>>  ruby -rtypelib-gccxml -e exit
>> 
>> should either work fine or give you more info on the actual problem
>> 
>> I just realized that typelib was missing a dependency on the facets gem.
>> Might be the source of your problem ...
> 
> The problem was that the path to the  typelib-gccxml.rb was set
> incorrectly in the Makefile of typelib.
> 
> We pushed and released the fixed versions, but it will take some time
> before the debs are available,
> as I posted earlier.
 
Thank you!
 
Anyway I downloaded the source from gitorius 3 days ago and they works.
 
Luca
 
> 
> Peter
 
 
------------------------------------------------------------------------------
 
Luca Gherardi
PhD Student at University of Bergamo
Dept. of Information Technology and Mathematics
V.le Marconi, 5 - 24044 Dalmine, Italy
Tel +39 333 8396279
Home: http://www.lucagherardi.it
 
 
 
 
-- 
Orocos-Users mailing list
Orocos-Users@lists.mech.kuleuven.be
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users