Discussion:
[Rock-dev] [rock] #319: CMake RockRuby finds the wrong ruby version
rock
2013-08-20 06:29:24 UTC
Permalink
#319: CMake RockRuby finds the wrong ruby version
--------------------+--------------------
Reporter: mago02 | Owner: thro02
Type: defect | Status: new
Priority: major | Milestone:
Component: base | Keywords:
--------------------+--------------------
If the bootstrap of an rock-installation is done by caling an special ruby
version like

ruby1.9.1 autoproj_bootstrap ....

and the system-default ruby points to ruby1.8 the CMake variable
RUBY_LIBRARY_INSTALL_DIR is resolved to install/<someting>/ruby1.8/...
which is inconsistent to the ruby version which is created within
install/bin/ruby.

This leads into several error like require "eigen" failes since the
eigen.rb binding is installed in the wrong directory.
--
Ticket URL: <https://rock.opendfki.de/ticket/319>
rock <https://rock.opendfki.de>
rock: the robot construction kit
rock
2013-08-20 08:22:02 UTC
Permalink
#319: CMake RockRuby finds the wrong ruby version
--------------------+---------------------
Reporter: mago02 | Owner: thro02
Type: defect | Status: new
Priority: major | Milestone:
Component: base | Resolution:
Keywords: |
--------------------+---------------------

Comment (by thro02):

I cannot reproduce the issue, can you provide the CMake configuration
output?
--
Ticket URL: <https://rock.opendfki.de/ticket/319#comment:1>
rock <https://rock.opendfki.de>
rock: the robot construction kit
rock
2013-08-20 11:36:34 UTC
Permalink
#319: CMake RockRuby finds the wrong ruby version
--------------------+---------------------
Reporter: mago02 | Owner: thro02
Type: defect | Status: new
Priority: major | Milestone:
Component: base | Resolution:
Keywords: |
--------------------+---------------------

Comment (by sylvain.joyeux):

As a rule, the autoproj configuration for packages that use RockRuby
should be set up with

{{{
pkg.define "RUBY_EXECUTABLE",
Autoproj.find_in_path(RbConfig::CONFIG['RUBY_INSTALL_NAME'])
}}}

(see typelib in orocos.toolchain/orocos.autobuild)

This ensures that the packages are set up with the ruby executable that is
being used by autoproj
--
Ticket URL: <https://rock.opendfki.de/ticket/319#comment:2>
rock <https://rock.opendfki.de>
rock: the robot construction kit
rock
2013-11-25 16:26:59 UTC
Permalink
#319: CMake RockRuby finds the wrong ruby version
--------------------+---------------------
Reporter: mago02 | Owner: thro02
Type: defect | Status: new
Priority: major | Milestone:
Component: base | Resolution:
Keywords: |
--------------------+---------------------

Comment (by sylvain.joyeux):

There's nothing more than using whatever is given as RUBY_EXECUTABLE on
the CMake side. The question is: should the Rock autoproj configuration
provide -DRUBY_EXECUTABLE to all CMake projects ?
--
Ticket URL: <https://rock.opendfki.de/ticket/319#comment:3>
rock <https://rock.opendfki.de>
rock: the robot construction kit
rock
2014-06-13 13:07:14 UTC
Permalink
#319: CMake RockRuby finds the wrong ruby version
--------------------+---------------------
Reporter: mago02 | Owner: thro02
Type: defect | Status: closed
Priority: major | Milestone:
Component: base | Resolution: fixed
Keywords: |
--------------------+---------------------
Changes (by mago02):

* status: new => closed
* resolution: => fixed


Comment:

Never happen again, i close this ticket...
--
Ticket URL: <http://rock.opendfki.de/ticket/319#comment:4>
rock <http://rock.opendfki.de>
rock: the robot construction kit
Loading...