autoproj build orogen fails on Mac OSX 10.6.7

Hi,

I got one step closer to completing a succesfull build of the entire orocos-toolchain, I've got everything but orogen compiling (didn't test everything yet though). Orogen gives me the following error (after sourcing the env.sh script off course):

rake default' returned status 1
see /Users/rubensmits/orocos-toolchain/install/log/orogen-post-install.log for details
last 9 lines are:

Wed Mar 23 20:58:44 +0100 2011: running
rake default

(in /Users/rubensmits/orocos-toolchain/orogen)
WARN: cannot load the Hoe gem, or Hoe fails. Publishing tasks are disabled
WARN: error message is: No such file or directory - History.txt
cannot load oroGen: no such file to load -- utilrb/module/const_defined_here_p
did you install Typelib's Ruby bindings and update the RUBYLIB environment variable accordingly ?
did you add /Users/rubensmits/orocos-toolchain/orogen/lib to RUBYLIB ?

My RUBYLIB looks as follows:

rsmits ~/orocos-toolchain $ echo $RUBYLIB
/Users/rubensmits/orocos-toolchain/utilrb/lib:/Users/rubensmits/orocos-toolchain/orogen/lib:/Users/rubensmits/ros/orocos_toolchain_ros/utilrb/lib:/Users/rubensmits/ros/orocos_toolchain_ros/orogen/lib:/Users/rubensmits/ros/orocos_toolchain_ros/typelib/bindings/ruby/lib:/Users/rubensmits/ros/orocos_toolchain_ros/typelib/lib

What could be the cause of this (it looks like a utilrb issue???)?

-- Ruben

Ruben Smits's picture

autoproj build orogen fails on Mac OSX 10.6.7

On 23 Mar 2011, at 21:04, Ruben Smits wrote:

> Hi,
>
> I got one step closer to completing a succesfull build of the entire orocos-toolchain, I've got everything but orogen compiling (didn't test everything yet though). Orogen gives me the following error (after sourcing the env.sh script off course):
>
> rake default' returned status 1
> see /Users/rubensmits/orocos-toolchain/install/log/orogen-post-install.log for details
> last 9 lines are:
>
> Wed Mar 23 20:58:44 +0100 2011: running
> rake default
>
> (in /Users/rubensmits/orocos-toolchain/orogen)
> WARN: cannot load the Hoe gem, or Hoe fails. Publishing tasks are disabled
> WARN: error message is: No such file or directory - History.txt
> cannot load oroGen: no such file to load -- utilrb/module/const_defined_here_p
> did you install Typelib's Ruby bindings and update the RUBYLIB environment variable accordingly ?
> did you add /Users/rubensmits/orocos-toolchain/orogen/lib to RUBYLIB ?
>

I fixed this by updating my utilrb to rock's master branch of utilrb, now I got the following:

'rake default' returned status 1
see /Users/rubensmits/orocos-toolchain/install/log/orogen-post-install.log for details
last 9 lines are:

Wed Mar 23 22:13:08 +0100 2011: running
rake default

(in /Users/rubensmits/orocos-toolchain/orogen)
WARN: cannot load the Hoe gem, or Hoe fails. Publishing tasks are disabled
WARN: error message is: No such file or directory - History.txt
cannot load oroGen: no such file to load -- typelib_ruby
did you install Typelib's Ruby bindings and update the RUBYLIB environment variable accordingly ?
did you add /Users/rubensmits/orocos-toolchain/orogen/lib to RUBYLIB ?

With my RUBYLIB set to:

cho $RUBYLIB
/Users/rubensmits/orocos-toolchain/utilrb/lib:/Users/rubensmits/orocos-toolchain/orogen/lib:/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8/universal-darwin10.0:/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8:/Users/rubensmits/orocos-toolchain/utilrb/lib:/Users/rubensmits/orocos-toolchain/orogen/lib:/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8/universal-darwin10.0:/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8:/Users/rubensmits/orocos-toolchain/utilrb/lib:/Users/rubensmits/orocos-toolchain/orogen/lib:/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8/universal-darwin10.0:/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8:/Users/rubensmits/orocos-toolchain/utilrb/lib:/Users/rubensmits/orocos-toolchain/orogen/lib:/Users/rubensmits/ros/orocos_toolchain_ros/utilrb/lib:/Users/rubensmits/ros/orocos_toolchain_ros/orogen/lib:/Users/rubensmits/ros/orocos_toolchain_ros/typelib/bindings/ruby/lib:/Users/rubensmits/ros/orocos_toolchain_ros/typelib/lib

I can see a typelib_ruby.so in :/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8/universal-darwin10.0 but I don't know what might be wrong here. Should it be typelib_ruby.dylib, is there a typelib_ruby.rb missing?

-- Ruben

autoproj build orogen fails on Mac OSX 10.6.7

On 03/23/2011 10:16 PM, Ruben Smits wrote:
> I can see a typelib_ruby.so in :/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8/universal-darwin10.0 but I don't know what might be wrong here. Should it be typelib_ruby.dylib, is there a typelib_ruby.rb missing?
I don't really know about ruby and darwin. Can you check if, in the
system's ruby installation, in ruby/1.8/universal-darwin10.0, you have
dynlib or .so ?

Sylvain

Ruben Smits's picture

autoproj build orogen fails on Mac OSX 10.6.7

On 24 Mar 2011, at 10:12, Sylvain Joyeux wrote:

> On 03/23/2011 10:16 PM, Ruben Smits wrote:
>> I can see a typelib_ruby.so in :/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8/universal-darwin10.0 but I don't know what might be wrong here. Should it be typelib_ruby.dylib, is there a typelib_ruby.rb missing?
> I don't really know about ruby and darwin. Can you check if, in the
> system's ruby installation, in ruby/1.8/universal-darwin10.0, you have
> dynlib or .so ?
>

Its .bundle :), I'm looking into how cmake can generate this, no luck yet.

-- Ruben

autoproj build orogen fails on Mac OSX 10.6.7

On 03/24/2011 11:22 AM, Ruben Smits wrote:
>
> On 24 Mar 2011, at 10:12, Sylvain Joyeux wrote:
>
>> On 03/23/2011 10:16 PM, Ruben Smits wrote:
>>> I can see a typelib_ruby.so in :/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8/universal-darwin10.0 but I don't know what might be wrong here. Should it be typelib_ruby.dylib, is there a typelib_ruby.rb missing?
>> I don't really know about ruby and darwin. Can you check if, in the
>> system's ruby installation, in ruby/1.8/universal-darwin10.0, you have
>> dynlib or .so ?
>>
>
> Its .bundle :), I'm looking into how cmake can generate this, no luck yet.
If you manage to get a .dylib, maybe it can be loaded by the ruby
interpreter as well ...

Ruben Smits's picture

autoproj build orogen fails on Mac OSX 10.6.7

On 24 Mar 2011, at 11:27, Sylvain Joyeux wrote:

> On 03/24/2011 11:22 AM, Ruben Smits wrote:
>>
>> On 24 Mar 2011, at 10:12, Sylvain Joyeux wrote:
>>
>>> On 03/23/2011 10:16 PM, Ruben Smits wrote:
>>>> I can see a typelib_ruby.so in :/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8/universal-darwin10.0 but I don't know what might be wrong here. Should it be typelib_ruby.dylib, is there a typelib_ruby.rb missing?
>>> I don't really know about ruby and darwin. Can you check if, in the
>>> system's ruby installation, in ruby/1.8/universal-darwin10.0, you have
>>> dynlib or .so ?
>>>
>>
>> Its .bundle :), I'm looking into how cmake can generate this, no luck yet.
> If you manage to get a .dylib, maybe it can be loaded by the ruby
> interpreter as well ...

I tried that with replacing MODULE by SHARED in the add_rubyextension cmake macro, it did create the dylib. But it stilled complained about not being able to load:

rake in orogen gives me:

in /Users/rubensmits/orocos-toolchain/orogen)
running cmake with -DOROCOS_TARGET=macosx
-- checking for module 'orocos-rtt-mqueue-macosx'
-- package 'orocos-rtt-mqueue-macosx' not found
-- MQ transport not found, MQ typelib marshaller disabled
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/rubensmits/orocos-toolchain/orogen/rtt-typelib/build
[100%] Built target rtt-typelib
Install the project...
-- Install configuration: ""
-- Installing: /Users/rubensmits/orocos-toolchain/install/lib/librtt-typelib.dylib
-- Up-to-date: /Users/rubensmits/orocos-toolchain/install/include/rtt/typelib/TypelibMarshallerBase.hpp
-- Up-to-date: /Users/rubensmits/orocos-toolchain/install/include/rtt/typelib/TypelibMarshaller.hpp
-- Up-to-date: /Users/rubensmits/orocos-toolchain/install/include/rtt/typelib/TypelibMarshallerHandle.hpp
-- Up-to-date: /Users/rubensmits/orocos-toolchain/install/include/rtt/typelib/MQTypelibMarshaller.hpp
-- Up-to-date: /Users/rubensmits/orocos-toolchain/install/include/rtt/typelib/OpaqueTypelibMarshaller.hpp
-- Up-to-date: /Users/rubensmits/orocos-toolchain/install/lib/pkgconfig/rtt-typelib.pc
cannot load oroGen
did you install Typelib's Ruby bindings and update the RUBYLIB environment variable accordingly ?
did you add /Users/rubensmits/orocos-toolchain/orogen/lib to RUBYLIB ?
the error is: no such file to load -- typelib_ruby
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/rubensmits/orocos-toolchain/install/lib/ruby/1.8/typelib.rb:1835
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/rubensmits/orocos-toolchain/orogen/Rakefile:23

-- Ruben