rtt_ros_integration : failed to compile orogen

Hi,

I tried to install orocos in a fresh Debian jessie with the ROS-like
instructions from :
https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md...

When I try to compile the orocos_toolchain I end in compiling orogen
because it can't find my ruby installation :

==> Processing plain cmake package: 'orogen'
==> Building with env:
'/opt/orocos/underlay_isolated/install_isolated/env.sh'
==> cmake /opt/orocos/underlay_isolated/src/orocos/orocos_toolchain/orogen
-DCMAKE_INSTALL_PREFIX=/opt/orocos/underlay_isolated/install_isolated in
'/opt/orocos/underlay_isolated/build_isolated/orogen/install'
CMake Error at
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
(message):
Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY
RUBY_CONFIG_INCLUDE_DIR) (found version "1.9.1")
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindRuby.cmake:239
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:4 (FIND_PACKAGE)

Ruben Smits's picture

rtt_ros_integration : failed to compile orogen

Hi Willy,

On Fri, Feb 7, 2014 at 3:43 AM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
> Hi,
>
> I tried to install orocos in a fresh Debian jessie with the ROS-like
> instructions from :
> https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md...
>
> When I try to compile the orocos_toolchain I end in compiling orogen because
> it can't find my ruby installation :
>

Which version of cmake are you using?

>
> ==> Processing plain cmake package: 'orogen'
> ==> Building with env:
> '/opt/orocos/underlay_isolated/install_isolated/env.sh'
> ==> cmake /opt/orocos/underlay_isolated/src/orocos/orocos_toolchain/orogen
> -DCMAKE_INSTALL_PREFIX=/opt/orocos/underlay_isolated/install_isolated in
> '/opt/orocos/underlay_isolated/build_isolated/orogen/install'
> CMake Error at
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
> (message):
> Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY
> RUBY_CONFIG_INCLUDE_DIR) (found version "1.9.1")

I'm not saying that it is the definite solution, but did you install
ruby-dev? It seems it is missing soem headers:

(missing: RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR)

Ruben

> Call Stack (most recent call first):
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
> (_FPHSA_FAILURE_MESSAGE)
> /usr/share/cmake-2.8/Modules/FindRuby.cmake:239
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> CMakeLists.txt:4 (FIND_PACKAGE)
>
>

Ruben Smits's picture

rtt_ros_integration : failed to compile orogen

Hi Willy,

On Sat, Feb 15, 2014 at 3:32 PM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
>
>
>
> 2014-02-10 17:17 GMT+01:00 Ruben Smits <ruben [dot] smits [..] ...>:
>
>> Hi Willy,
>>
>> [...]
>> >> >> > Here is mine :
>> >> >> >
>> >> >> > -- --------FindRuby.cmake debug------------
>> >> >> > -- _RUBY_POSSIBLE_EXECUTABLE_NAMES:
>> >> >> > ruby;ruby1.9;ruby19;ruby1.8;ruby18
>> >> >> > -- _RUBY_POSSIBLE_LIB_NAMES:
>> >> >> > ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
>> >> >> > -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
>> >> >> > -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
>> >> >> > -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
>> >> >> > -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
>> >> >> > -- _RUBY_REQUIRED_VARS:
>> >> >> >
>> >> >> > RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
>> >> >> > -- RUBY_EXECUTABLE: /usr/bin/ruby
>> >> >> > -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
>> >> >> > -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
>> >> >> > -- RUBY_CONFIG_INCLUDE_DIR: /usr/include/ruby-1.9.1/x86_64-linux
>> >> >> > -- --------------------
>> >> >> >
>> >> >> > Amazingly, with this command line ruby is found and the "build" is
>> >> >> > a
>> >> >> > success
>> >> >> > but the catkin_make_isolated is still failing.
>> >> >>
>> >> >> I do not see it failing in your attached log? Can you now try with
>> >> >> catkin_make_isolated --install --cmake-args
>> >> >> -D_RUBY_DEBUG_OUTPUT=TRUE
>> >> >>
>> >> >> but without the --pkg orogen option so that it goes through the
>> >> >> entire
>> >> >> workspace? --pkg is known to be unstable in catkin_make_isolated
>> >> >> environment if no complete successfull build/install has been done
>> >> >> at
>> >> >> least once.
>> >> >>
>> >> >
>> >> > Yes it worked, the main difference between is the "--install" option
>> >> > that was not in :
>> >> >
>> >> > "catkin_make_isolated --pkg orogen --cmake-args
>> >> > -D_RUBY_DEBUG_OUTPUT=TRUE"
>> >> >
>> >> > So I tried to build the whole orocos_toolchain workspace simply with
>> >> > :
>> >> > catkin_make_isolated
>> >> > and it worked !!
>> >> >
>> >> > catkin_make_isolated --install
>> >> > catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>> >> > Both failed
>> >> >
>> >> > I wonder if there is any bug in the install phasis.
>> >> >
>> >>
>> >> Could you attach the exact errors?
>> >>
>> >> Ruben
>> >
>> > See enclosed, it's the same as the one I pasted some msg before.
>>
>>
>> It seems to be missing the ruby/config.h file but still finding all
>> the rest, although it did find it without the --install option which
>> is totally amazing me. Can you retry with both with and without
>> --install after removing all build/devel/install folders, just to make
>> sure we are not suffering from old CMake cache?
>
>
> Sure, please see 2 complete logs with the command used on the first line.
> Each build run is done with a complete removal of "temporary" folders
> (build/devel/install).
>
> It seems that eveything is ok now with both commands !! Catkin seems to do
> some shit with incrementals builds :(

I honestly never saw something like this, I think CMake and cached
variables might be an more likely candidate to blame ;)

> Maybe you should add something about this in :
> https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md
>
>
>
> FYI I have the following statement that pops several times in the build :
> Warning: xpath not found. Can't read dependencies in manifest.xml file.

If you want to get rid of this please install libxml-xpath-perl

> FYI 2 : I have quite a lot of warnings, is it expected ? Are they just
> present due to lack of time to correct them or are they hidding any known
> problem (like a different default build option with caktin and autoproj ?)
>

In your logs I only see cmake warnings, half of them relate to the
RUBY_DEBUG_OUTPUT cmake variable which is not used by all projects.
Others are about the missing libxml-xpath-perl. I saw one about a
missing Lua, and some are come from the typegen-generated typekit.
None of them seem critical and except from the last one they are not
hidding any known issue.

Ruben
>
>>
>>
>> In my case it is located here:
>> /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h and it is part of
>> the ruby1.9.1-dev package.
>
>
> It is at the same place for me :
> # find /usr/ -name "config.h"
> /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h
>
>
>>
>> Ruben
>>
>>
>> --
>> Ruben Smits, CTO
>> +32 479 511 786
>> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
>> www.intermodalics.eu
>>
>>
>> ---------------------------------------------------------------------------------------------------------------------------------------
>> This email and any attached files are confidential and may be legally
>> privileged. Any copy, print or forward of this email, without the
>> agreement of sender or addressee, is strictly prohibited. Misuse is a
>> violation of the law on personal data protection (D. Lgs. 196/2003)
>> and on secrecy of correspondence (art. 616 cp). If you have received
>> this transmission in error please notify the sender immediately and
>> then delete this email and any attached files.
>
>

rtt_ros_integration : failed to compile orogen

On Feb 17, 2014, at 03:14 , Ruben Smits <ruben [dot] smits [..] ...> wrote:

> Hi Willy,
>
> On Sat, Feb 15, 2014 at 3:32 PM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
>>
>>
>>
>> 2014-02-10 17:17 GMT+01:00 Ruben Smits <ruben [dot] smits [..] ...>:
>>
>>> Hi Willy,
>>>
>>> [...]
>>>>>>>> Here is mine :
>>>>>>>>
>>>>>>>> -- --------FindRuby.cmake debug------------
>>>>>>>> -- _RUBY_POSSIBLE_EXECUTABLE_NAMES:
>>>>>>>> ruby;ruby1.9;ruby19;ruby1.8;ruby18
>>>>>>>> -- _RUBY_POSSIBLE_LIB_NAMES:
>>>>>>>> ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
>>>>>>>> -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
>>>>>>>> -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
>>>>>>>> -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
>>>>>>>> -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
>>>>>>>> -- _RUBY_REQUIRED_VARS:
>>>>>>>>
>>>>>>>> RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
>>>>>>>> -- RUBY_EXECUTABLE: /usr/bin/ruby
>>>>>>>> -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
>>>>>>>> -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
>>>>>>>> -- RUBY_CONFIG_INCLUDE_DIR: /usr/include/ruby-1.9.1/x86_64-linux
>>>>>>>> -- --------------------
>>>>>>>>
>>>>>>>> Amazingly, with this command line ruby is found and the "build" is
>>>>>>>> a
>>>>>>>> success
>>>>>>>> but the catkin_make_isolated is still failing.
>>>>>>>
>>>>>>> I do not see it failing in your attached log? Can you now try with
>>>>>>> catkin_make_isolated --install --cmake-args
>>>>>>> -D_RUBY_DEBUG_OUTPUT=TRUE
>>>>>>>
>>>>>>> but without the --pkg orogen option so that it goes through the
>>>>>>> entire
>>>>>>> workspace? --pkg is known to be unstable in catkin_make_isolated
>>>>>>> environment if no complete successfull build/install has been done
>>>>>>> at
>>>>>>> least once.
>>>>>>>
>>>>>>
>>>>>> Yes it worked, the main difference between is the "--install" option
>>>>>> that was not in :
>>>>>>
>>>>>> "catkin_make_isolated --pkg orogen --cmake-args
>>>>>> -D_RUBY_DEBUG_OUTPUT=TRUE"
>>>>>>
>>>>>> So I tried to build the whole orocos_toolchain workspace simply with
>>>>>> :
>>>>>> catkin_make_isolated
>>>>>> and it worked !!
>>>>>>
>>>>>> catkin_make_isolated --install
>>>>>> catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>>>>>> Both failed
>>>>>>
>>>>>> I wonder if there is any bug in the install phasis.
>>>>>>
>>>>>
>>>>> Could you attach the exact errors?
>>>>>
>>>>> Ruben
>>>>
>>>> See enclosed, it's the same as the one I pasted some msg before.
>>>
>>>
>>> It seems to be missing the ruby/config.h file but still finding all
>>> the rest, although it did find it without the --install option which
>>> is totally amazing me. Can you retry with both with and without
>>> --install after removing all build/devel/install folders, just to make
>>> sure we are not suffering from old CMake cache?
>>
>>
>> Sure, please see 2 complete logs with the command used on the first line.
>> Each build run is done with a complete removal of "temporary" folders
>> (build/devel/install).
>>
>> It seems that eveything is ok now with both commands !! Catkin seems to do
>> some shit with incrementals builds :(
>
> I honestly never saw something like this, I think CMake and cached
> variables might be an more likely candidate to blame ;)

I agree with Willy. I've seen some absolutely dumb CMake stuff when using catkin. The combination is so easy to confuse, but I've never seen anything like it with years of CMake only use. I usually end up blowing away the build dir and starting from scratch. :-(
S

rtt_ros_integration : failed to compile orogen

Le 17 févr. 2014 09:14, "Ruben Smits" <ruben [dot] smits [..] ...> a
écrit :
>
> Hi Willy,
>
> On Sat, Feb 15, 2014 at 3:32 PM, Willy Lambert <lambert [dot] willy [..] ...>
wrote:
> >
> >
> >
> > 2014-02-10 17:17 GMT+01:00 Ruben Smits <ruben [dot] smits [..] ...>:
> >
> >> Hi Willy,
> >>
> >> [...]
> >> >> >> > Here is mine :
> >> >> >> >
> >> >> >> > -- --------FindRuby.cmake debug------------
> >> >> >> > -- _RUBY_POSSIBLE_EXECUTABLE_NAMES:
> >> >> >> > ruby;ruby1.9;ruby19;ruby1.8;ruby18
> >> >> >> > -- _RUBY_POSSIBLE_LIB_NAMES:
> >> >> >> > ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
> >> >> >> > -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
> >> >> >> > -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
> >> >> >> > -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
> >> >> >> > -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
> >> >> >> > -- _RUBY_REQUIRED_VARS:
> >> >> >> >
> >> >> >> >
RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
> >> >> >> > -- RUBY_EXECUTABLE: /usr/bin/ruby
> >> >> >> > -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
> >> >> >> > -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
> >> >> >> > -- RUBY_CONFIG_INCLUDE_DIR:
/usr/include/ruby-1.9.1/x86_64-linux
> >> >> >> > -- --------------------
> >> >> >> >
> >> >> >> > Amazingly, with this command line ruby is found and the
"build" is
> >> >> >> > a
> >> >> >> > success
> >> >> >> > but the catkin_make_isolated is still failing.
> >> >> >>
> >> >> >> I do not see it failing in your attached log? Can you now try
with
> >> >> >> catkin_make_isolated --install --cmake-args
> >> >> >> -D_RUBY_DEBUG_OUTPUT=TRUE
> >> >> >>
> >> >> >> but without the --pkg orogen option so that it goes through the
> >> >> >> entire
> >> >> >> workspace? --pkg is known to be unstable in catkin_make_isolated
> >> >> >> environment if no complete successfull build/install has been
done
> >> >> >> at
> >> >> >> least once.
> >> >> >>
> >> >> >
> >> >> > Yes it worked, the main difference between is the "--install"
option
> >> >> > that was not in :
> >> >> >
> >> >> > "catkin_make_isolated --pkg orogen --cmake-args
> >> >> > -D_RUBY_DEBUG_OUTPUT=TRUE"
> >> >> >
> >> >> > So I tried to build the whole orocos_toolchain workspace simply
with
> >> >> > :
> >> >> > catkin_make_isolated
> >> >> > and it worked !!
> >> >> >
> >> >> > catkin_make_isolated --install
> >> >> > catkin_make_isolated --install --cmake-args
-D_RUBY_DEBUG_OUTPUT=TRUE
> >> >> > Both failed
> >> >> >
> >> >> > I wonder if there is any bug in the install phasis.
> >> >> >
> >> >>
> >> >> Could you attach the exact errors?
> >> >>
> >> >> Ruben
> >> >
> >> > See enclosed, it's the same as the one I pasted some msg before.
> >>
> >>
> >> It seems to be missing the ruby/config.h file but still finding all
> >> the rest, although it did find it without the --install option which
> >> is totally amazing me. Can you retry with both with and without
> >> --install after removing all build/devel/install folders, just to make
> >> sure we are not suffering from old CMake cache?
> >
> >
> > Sure, please see 2 complete logs with the command used on the first
line.
> > Each build run is done with a complete removal of "temporary" folders
> > (build/devel/install).
> >
> > It seems that eveything is ok now with both commands !! Catkin seems to
do
> > some shit with incrementals builds :(
>
> I honestly never saw something like this, I think CMake and cached
> variables might be an more likely candidate to blame ;)
>
> > Maybe you should add something about this in :
> > https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md
> >
> >
> >
> > FYI I have the following statement that pops several times in the build
:
> > Warning: xpath not found. Can't read dependencies in manifest.xml file.
>
> If you want to get rid of this please install libxml-xpath-perl
>

I should use something like "rosdep install" to do this, Shouldn't I ?

> > FYI 2 : I have quite a lot of warnings, is it expected ? Are they just
> > present due to lack of time to correct them or are they hidding any
known
> > problem (like a different default build option with caktin and autoproj
?)
> >
>
> In your logs I only see cmake warnings, half of them relate to the
> RUBY_DEBUG_OUTPUT cmake variable which is not used by all projects.
> Others are about the missing libxml-xpath-perl. I saw one about a
> missing Lua, and some are come from the typegen-generated typekit.
> None of them seem critical and except from the last one they are not
> hidding any known issue.
>
> Ruben
> >
> >>
> >>
> >> In my case it is located here:
> >> /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h and it is part of
> >> the ruby1.9.1-dev package.
> >
> >
> > It is at the same place for me :
> > # find /usr/ -name "config.h"
> > /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h
> >
> >
> >>
> >> Ruben
> >>
> >>
> >> --
> >> Ruben Smits, CTO
> >> +32 479 511 786
> >> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> >> www.intermodalics.eu
> >>
> >>
> >>
---------------------------------------------------------------------------------------------------------------------------------------
> >> This email and any attached files are confidential and may be legally
> >> privileged. Any copy, print or forward of this email, without the
> >> agreement of sender or addressee, is strictly prohibited. Misuse is a
> >> violation of the law on personal data protection (D. Lgs. 196/2003)
> >> and on secrecy of correspondence (art. 616 cp). If you have received
> >> this transmission in error please notify the sender immediately and
> >> then delete this email and any attached files.
> >
> >
>
>
>
> --
> Ruben Smits, CTO
> +32 479 511 786
> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> www.intermodalics.eu
>
>
---------------------------------------------------------------------------------------------------------------------------------------
> This email and any attached files are confidential and may be legally
> privileged. Any copy, print or forward of this email, without the
> agreement of sender or addressee, is strictly prohibited. Misuse is a
> violation of the law on personal data protection (D. Lgs. 196/2003)
> and on secrecy of correspondence (art. 616 cp). If you have received
> this transmission in error please notify the sender immediately and
> then delete this email and any attached files.

Ruben Smits's picture

rtt_ros_integration : failed to compile orogen

On Mon, Feb 17, 2014 at 9:29 AM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
>
> Le 17 févr. 2014 09:14, "Ruben Smits" <ruben [dot] smits [..] ...> a écrit
> :
>
>
>>
>> Hi Willy,
>>
>> On Sat, Feb 15, 2014 at 3:32 PM, Willy Lambert <lambert [dot] willy [..] ...>
>> wrote:
>> >
>> >
>> >
>> > 2014-02-10 17:17 GMT+01:00 Ruben Smits <ruben [dot] smits [..] ...>:
>> >
>> >> Hi Willy,
>> >>
>> >> [...]
>> >> >> >> > Here is mine :
>> >> >> >> >
>> >> >> >> > -- --------FindRuby.cmake debug------------
>> >> >> >> > -- _RUBY_POSSIBLE_EXECUTABLE_NAMES:
>> >> >> >> > ruby;ruby1.9;ruby19;ruby1.8;ruby18
>> >> >> >> > -- _RUBY_POSSIBLE_LIB_NAMES:
>> >> >> >> > ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
>> >> >> >> > -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
>> >> >> >> > -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
>> >> >> >> > -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
>> >> >> >> > -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
>> >> >> >> > -- _RUBY_REQUIRED_VARS:
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
>> >> >> >> > -- RUBY_EXECUTABLE: /usr/bin/ruby
>> >> >> >> > -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
>> >> >> >> > -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
>> >> >> >> > -- RUBY_CONFIG_INCLUDE_DIR:
>> >> >> >> > /usr/include/ruby-1.9.1/x86_64-linux
>> >> >> >> > -- --------------------
>> >> >> >> >
>> >> >> >> > Amazingly, with this command line ruby is found and the "build"
>> >> >> >> > is
>> >> >> >> > a
>> >> >> >> > success
>> >> >> >> > but the catkin_make_isolated is still failing.
>> >> >> >>
>> >> >> >> I do not see it failing in your attached log? Can you now try
>> >> >> >> with
>> >> >> >> catkin_make_isolated --install --cmake-args
>> >> >> >> -D_RUBY_DEBUG_OUTPUT=TRUE
>> >> >> >>
>> >> >> >> but without the --pkg orogen option so that it goes through the
>> >> >> >> entire
>> >> >> >> workspace? --pkg is known to be unstable in catkin_make_isolated
>> >> >> >> environment if no complete successfull build/install has been
>> >> >> >> done
>> >> >> >> at
>> >> >> >> least once.
>> >> >> >>
>> >> >> >
>> >> >> > Yes it worked, the main difference between is the "--install"
>> >> >> > option
>> >> >> > that was not in :
>> >> >> >
>> >> >> > "catkin_make_isolated --pkg orogen --cmake-args
>> >> >> > -D_RUBY_DEBUG_OUTPUT=TRUE"
>> >> >> >
>> >> >> > So I tried to build the whole orocos_toolchain workspace simply
>> >> >> > with
>> >> >> > :
>> >> >> > catkin_make_isolated
>> >> >> > and it worked !!
>> >> >> >
>> >> >> > catkin_make_isolated --install
>> >> >> > catkin_make_isolated --install --cmake-args
>> >> >> > -D_RUBY_DEBUG_OUTPUT=TRUE
>> >> >> > Both failed
>> >> >> >
>> >> >> > I wonder if there is any bug in the install phasis.
>> >> >> >
>> >> >>
>> >> >> Could you attach the exact errors?
>> >> >>
>> >> >> Ruben
>> >> >
>> >> > See enclosed, it's the same as the one I pasted some msg before.
>> >>
>> >>
>> >> It seems to be missing the ruby/config.h file but still finding all
>> >> the rest, although it did find it without the --install option which
>> >> is totally amazing me. Can you retry with both with and without
>> >> --install after removing all build/devel/install folders, just to make
>> >> sure we are not suffering from old CMake cache?
>> >
>> >
>> > Sure, please see 2 complete logs with the command used on the first
>> > line.
>> > Each build run is done with a complete removal of "temporary" folders
>> > (build/devel/install).
>> >
>> > It seems that eveything is ok now with both commands !! Catkin seems to
>> > do
>> > some shit with incrementals builds :(
>>
>> I honestly never saw something like this, I think CMake and cached
>> variables might be an more likely candidate to blame ;)
>>
>> > Maybe you should add something about this in :
>> > https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md
>> >
>> >
>> >
>> > FYI I have the following statement that pops several times in the build
>> > :
>> > Warning: xpath not found. Can't read dependencies in manifest.xml file.
>>
>> If you want to get rid of this please install libxml-xpath-perl
>>
>
> I should use something like "rosdep install" to do this, Shouldn't I ?
>

Yes, but I have no idea if we have the needed entries for debian (I'm
pretty sure we have not), but you could try with the --os flag to use
the ubuntu names for the packages, that might work:

rosdep install --os=ubuntu:precise

Ruben
>
>> > FYI 2 : I have quite a lot of warnings, is it expected ? Are they just
>> > present due to lack of time to correct them or are they hidding any
>> > known
>> > problem (like a different default build option with caktin and autoproj
>> > ?)
>> >
>>
>> In your logs I only see cmake warnings, half of them relate to the
>> RUBY_DEBUG_OUTPUT cmake variable which is not used by all projects.
>> Others are about the missing libxml-xpath-perl. I saw one about a
>> missing Lua, and some are come from the typegen-generated typekit.
>> None of them seem critical and except from the last one they are not
>> hidding any known issue.
>>
>> Ruben
>> >
>> >>
>> >>
>> >> In my case it is located here:
>> >> /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h and it is part of
>> >> the ruby1.9.1-dev package.
>> >
>> >
>> > It is at the same place for me :
>> > # find /usr/ -name "config.h"
>> > /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h
>> >
>> >
>> >>
>> >> Ruben
>> >>
>> >>
>> >> --
>> >> Ruben Smits, CTO
>> >> +32 479 511 786
>> >> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
>> >> www.intermodalics.eu
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------------------------------------------------------------------------
>> >> This email and any attached files are confidential and may be legally
>> >> privileged. Any copy, print or forward of this email, without the
>> >> agreement of sender or addressee, is strictly prohibited. Misuse is a
>> >> violation of the law on personal data protection (D. Lgs. 196/2003)
>> >> and on secrecy of correspondence (art. 616 cp). If you have received
>> >> this transmission in error please notify the sender immediately and
>> >> then delete this email and any attached files.
>> >
>> >
>>
>>
>>
>> --
>> Ruben Smits, CTO
>> +32 479 511 786
>> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
>> www.intermodalics.eu
>>
>>
>> ---------------------------------------------------------------------------------------------------------------------------------------
>> This email and any attached files are confidential and may be legally
>> privileged. Any copy, print or forward of this email, without the
>> agreement of sender or addressee, is strictly prohibited. Misuse is a
>> violation of the law on personal data protection (D. Lgs. 196/2003)
>> and on secrecy of correspondence (art. 616 cp). If you have received
>> this transmission in error please notify the sender immediately and
>> then delete this email and any attached files.

rtt_ros_integration : failed to compile orogen

2014-02-17 10:34 GMT+01:00 Ruben Smits <ruben [dot] smits [..] ...>:

> On Mon, Feb 17, 2014 at 9:29 AM, Willy Lambert <lambert [dot] willy [..] ...>
> wrote:
> >
> > Le 17 févr. 2014 09:14, "Ruben Smits" <ruben [dot] smits [..] ...> a
> écrit
> > :
> >
> >
> >>
> >> Hi Willy,
> >>
> >> On Sat, Feb 15, 2014 at 3:32 PM, Willy Lambert <lambert [dot] willy [..] ...
> >
> >> wrote:
> >> >
> >> >
> >> >
> >> > 2014-02-10 17:17 GMT+01:00 Ruben Smits <ruben [dot] smits [..] ...
> >:
> >> >
> >> >> Hi Willy,
> >> >>
> >> >> [...]
> >> >> >> >> > Here is mine :
> >> >> >> >> >
> >> >> >> >> > -- --------FindRuby.cmake debug------------
> >> >> >> >> > -- _RUBY_POSSIBLE_EXECUTABLE_NAMES:
> >> >> >> >> > ruby;ruby1.9;ruby19;ruby1.8;ruby18
> >> >> >> >> > -- _RUBY_POSSIBLE_LIB_NAMES:
> >> >> >> >> > ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
> >> >> >> >> > -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
> >> >> >> >> > -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
> >> >> >> >> > -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
> >> >> >> >> > -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
> >> >> >> >> > -- _RUBY_REQUIRED_VARS:
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
> >> >> >> >> > -- RUBY_EXECUTABLE: /usr/bin/ruby
> >> >> >> >> > -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
> >> >> >> >> > -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
> >> >> >> >> > -- RUBY_CONFIG_INCLUDE_DIR:
> >> >> >> >> > /usr/include/ruby-1.9.1/x86_64-linux
> >> >> >> >> > -- --------------------
> >> >> >> >> >
> >> >> >> >> > Amazingly, with this command line ruby is found and the
> "build"
> >> >> >> >> > is
> >> >> >> >> > a
> >> >> >> >> > success
> >> >> >> >> > but the catkin_make_isolated is still failing.
> >> >> >> >>
> >> >> >> >> I do not see it failing in your attached log? Can you now try
> >> >> >> >> with
> >> >> >> >> catkin_make_isolated --install --cmake-args
> >> >> >> >> -D_RUBY_DEBUG_OUTPUT=TRUE
> >> >> >> >>
> >> >> >> >> but without the --pkg orogen option so that it goes through the
> >> >> >> >> entire
> >> >> >> >> workspace? --pkg is known to be unstable in
> catkin_make_isolated
> >> >> >> >> environment if no complete successfull build/install has been
> >> >> >> >> done
> >> >> >> >> at
> >> >> >> >> least once.
> >> >> >> >>
> >> >> >> >
> >> >> >> > Yes it worked, the main difference between is the "--install"
> >> >> >> > option
> >> >> >> > that was not in :
> >> >> >> >
> >> >> >> > "catkin_make_isolated --pkg orogen --cmake-args
> >> >> >> > -D_RUBY_DEBUG_OUTPUT=TRUE"
> >> >> >> >
> >> >> >> > So I tried to build the whole orocos_toolchain workspace simply
> >> >> >> > with
> >> >> >> > :
> >> >> >> > catkin_make_isolated
> >> >> >> > and it worked !!
> >> >> >> >
> >> >> >> > catkin_make_isolated --install
> >> >> >> > catkin_make_isolated --install --cmake-args
> >> >> >> > -D_RUBY_DEBUG_OUTPUT=TRUE
> >> >> >> > Both failed
> >> >> >> >
> >> >> >> > I wonder if there is any bug in the install phasis.
> >> >> >> >
> >> >> >>
> >> >> >> Could you attach the exact errors?
> >> >> >>
> >> >> >> Ruben
> >> >> >
> >> >> > See enclosed, it's the same as the one I pasted some msg before.
> >> >>
> >> >>
> >> >> It seems to be missing the ruby/config.h file but still finding all
> >> >> the rest, although it did find it without the --install option which
> >> >> is totally amazing me. Can you retry with both with and without
> >> >> --install after removing all build/devel/install folders, just to
> make
> >> >> sure we are not suffering from old CMake cache?
> >> >
> >> >
> >> > Sure, please see 2 complete logs with the command used on the first
> >> > line.
> >> > Each build run is done with a complete removal of "temporary" folders
> >> > (build/devel/install).
> >> >
> >> > It seems that eveything is ok now with both commands !! Catkin seems
> to
> >> > do
> >> > some shit with incrementals builds :(
> >>
> >> I honestly never saw something like this, I think CMake and cached
> >> variables might be an more likely candidate to blame ;)
> >>
> >> > Maybe you should add something about this in :
> >> >
> https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md
> >> >
> >> >
> >> >
> >> > FYI I have the following statement that pops several times in the
> build
> >> > :
> >> > Warning: xpath not found. Can't read dependencies in manifest.xml
> file.
> >>
> >> If you want to get rid of this please install libxml-xpath-perl
> >>
> >
> > I should use something like "rosdep install" to do this, Shouldn't I ?
> >
>
> Yes, but I have no idea if we have the needed entries for debian (I'm
> pretty sure we have not), but you could try with the --os flag to use
> the ubuntu names for the packages, that might work:
>
> rosdep install --os=ubuntu:precise
>

I oftently force it to debian:xxx and I maintain the dependencies. I used
to send patches for the rosdep.yaml file, but it seems to have disapeared
in the 2.7 version. Has ROS changed anything about that ?

>
> Ruben
> >
> >> > FYI 2 : I have quite a lot of warnings, is it expected ? Are they just
> >> > present due to lack of time to correct them or are they hidding any
> >> > known
> >> > problem (like a different default build option with caktin and
> autoproj
> >> > ?)
> >> >
> >>
> >> In your logs I only see cmake warnings, half of them relate to the
> >> RUBY_DEBUG_OUTPUT cmake variable which is not used by all projects.
> >> Others are about the missing libxml-xpath-perl. I saw one about a
> >> missing Lua, and some are come from the typegen-generated typekit.
> >> None of them seem critical and except from the last one they are not
> >> hidding any known issue.
> >>
> >> Ruben
> >> >
> >> >>
> >> >>
> >> >> In my case it is located here:
> >> >> /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h and it is part of
> >> >> the ruby1.9.1-dev package.
> >> >
> >> >
> >> > It is at the same place for me :
> >> > # find /usr/ -name "config.h"
> >> > /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h
> >> >
> >> >
> >> >>
> >> >> Ruben
> >> >>
> >> >>
> >> >> --
> >> >> Ruben Smits, CTO
> >> >> +32 479 511 786
> >> >> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> >> >> www.intermodalics.eu
> >> >>
> >> >>
> >> >>
> >> >>
> ---------------------------------------------------------------------------------------------------------------------------------------
> >> >> This email and any attached files are confidential and may be legally
> >> >> privileged. Any copy, print or forward of this email, without the
> >> >> agreement of sender or addressee, is strictly prohibited. Misuse is a
> >> >> violation of the law on personal data protection (D. Lgs. 196/2003)
> >> >> and on secrecy of correspondence (art. 616 cp). If you have received
> >> >> this transmission in error please notify the sender immediately and
> >> >> then delete this email and any attached files.
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Ruben Smits, CTO
> >> +32 479 511 786
> >> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> >> www.intermodalics.eu
> >>
> >>
> >>
> ---------------------------------------------------------------------------------------------------------------------------------------
> >> This email and any attached files are confidential and may be legally
> >> privileged. Any copy, print or forward of this email, without the
> >> agreement of sender or addressee, is strictly prohibited. Misuse is a
> >> violation of the law on personal data protection (D. Lgs. 196/2003)
> >> and on secrecy of correspondence (art. 616 cp). If you have received
> >> this transmission in error please notify the sender immediately and
> >> then delete this email and any attached files.
>
>
>
> --
> Ruben Smits, CTO
> +32 479 511 786
> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> www.intermodalics.eu
>
>
> ---------------------------------------------------------------------------------------------------------------------------------------
> This email and any attached files are confidential and may be legally
> privileged. Any copy, print or forward of this email, without the
> agreement of sender or addressee, is strictly prohibited. Misuse is a
> violation of the law on personal data protection (D. Lgs. 196/2003)
> and on secrecy of correspondence (art. 616 cp). If you have received
> this transmission in error please notify the sender immediately and
> then delete this email and any attached files.
>

Ruben Smits's picture

rtt_ros_integration : failed to compile orogen

On Mon, Feb 17, 2014 at 1:06 PM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
>
>
>
> 2014-02-17 10:34 GMT+01:00 Ruben Smits <ruben [dot] smits [..] ...>:
>
>> On Mon, Feb 17, 2014 at 9:29 AM, Willy Lambert <lambert [dot] willy [..] ...>
>> wrote:
>> >
>> > Le 17 févr. 2014 09:14, "Ruben Smits" <ruben [dot] smits [..] ...> a
>> > écrit
>> > :
>> >
>> >
>> >>
>> >> Hi Willy,
>> >>
>> >> On Sat, Feb 15, 2014 at 3:32 PM, Willy Lambert
>> >> <lambert [dot] willy [..] ...>
>> >> wrote:
>> >> >
>> >> >
>> >> >
>> >> > 2014-02-10 17:17 GMT+01:00 Ruben Smits
>> >> > <ruben [dot] smits [..] ...>:
>> >> >
>> >> >> Hi Willy,
>> >> >>
>> >> >> [...]
>> >> >> >> >> > Here is mine :
>> >> >> >> >> >
>> >> >> >> >> > -- --------FindRuby.cmake debug------------
>> >> >> >> >> > -- _RUBY_POSSIBLE_EXECUTABLE_NAMES:
>> >> >> >> >> > ruby;ruby1.9;ruby19;ruby1.8;ruby18
>> >> >> >> >> > -- _RUBY_POSSIBLE_LIB_NAMES:
>> >> >> >> >> > ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
>> >> >> >> >> > -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
>> >> >> >> >> > -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
>> >> >> >> >> > -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
>> >> >> >> >> > -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
>> >> >> >> >> > -- _RUBY_REQUIRED_VARS:
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
>> >> >> >> >> > -- RUBY_EXECUTABLE: /usr/bin/ruby
>> >> >> >> >> > -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
>> >> >> >> >> > -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
>> >> >> >> >> > -- RUBY_CONFIG_INCLUDE_DIR:
>> >> >> >> >> > /usr/include/ruby-1.9.1/x86_64-linux
>> >> >> >> >> > -- --------------------
>> >> >> >> >> >
>> >> >> >> >> > Amazingly, with this command line ruby is found and the
>> >> >> >> >> > "build"
>> >> >> >> >> > is
>> >> >> >> >> > a
>> >> >> >> >> > success
>> >> >> >> >> > but the catkin_make_isolated is still failing.
>> >> >> >> >>
>> >> >> >> >> I do not see it failing in your attached log? Can you now try
>> >> >> >> >> with
>> >> >> >> >> catkin_make_isolated --install --cmake-args
>> >> >> >> >> -D_RUBY_DEBUG_OUTPUT=TRUE
>> >> >> >> >>
>> >> >> >> >> but without the --pkg orogen option so that it goes through
>> >> >> >> >> the
>> >> >> >> >> entire
>> >> >> >> >> workspace? --pkg is known to be unstable in
>> >> >> >> >> catkin_make_isolated
>> >> >> >> >> environment if no complete successfull build/install has been
>> >> >> >> >> done
>> >> >> >> >> at
>> >> >> >> >> least once.
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> > Yes it worked, the main difference between is the "--install"
>> >> >> >> > option
>> >> >> >> > that was not in :
>> >> >> >> >
>> >> >> >> > "catkin_make_isolated --pkg orogen --cmake-args
>> >> >> >> > -D_RUBY_DEBUG_OUTPUT=TRUE"
>> >> >> >> >
>> >> >> >> > So I tried to build the whole orocos_toolchain workspace simply
>> >> >> >> > with
>> >> >> >> > :
>> >> >> >> > catkin_make_isolated
>> >> >> >> > and it worked !!
>> >> >> >> >
>> >> >> >> > catkin_make_isolated --install
>> >> >> >> > catkin_make_isolated --install --cmake-args
>> >> >> >> > -D_RUBY_DEBUG_OUTPUT=TRUE
>> >> >> >> > Both failed
>> >> >> >> >
>> >> >> >> > I wonder if there is any bug in the install phasis.
>> >> >> >> >
>> >> >> >>
>> >> >> >> Could you attach the exact errors?
>> >> >> >>
>> >> >> >> Ruben
>> >> >> >
>> >> >> > See enclosed, it's the same as the one I pasted some msg before.
>> >> >>
>> >> >>
>> >> >> It seems to be missing the ruby/config.h file but still finding all
>> >> >> the rest, although it did find it without the --install option which
>> >> >> is totally amazing me. Can you retry with both with and without
>> >> >> --install after removing all build/devel/install folders, just to
>> >> >> make
>> >> >> sure we are not suffering from old CMake cache?
>> >> >
>> >> >
>> >> > Sure, please see 2 complete logs with the command used on the first
>> >> > line.
>> >> > Each build run is done with a complete removal of "temporary" folders
>> >> > (build/devel/install).
>> >> >
>> >> > It seems that eveything is ok now with both commands !! Catkin seems
>> >> > to
>> >> > do
>> >> > some shit with incrementals builds :(
>> >>
>> >> I honestly never saw something like this, I think CMake and cached
>> >> variables might be an more likely candidate to blame ;)
>> >>
>> >> > Maybe you should add something about this in :
>> >> >
>> >> > https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md
>> >> >
>> >> >
>> >> >
>> >> > FYI I have the following statement that pops several times in the
>> >> > build
>> >> > :
>> >> > Warning: xpath not found. Can't read dependencies in manifest.xml
>> >> > file.
>> >>
>> >> If you want to get rid of this please install libxml-xpath-perl
>> >>
>> >
>> > I should use something like "rosdep install" to do this, Shouldn't I ?
>> >
>>
>> Yes, but I have no idea if we have the needed entries for debian (I'm
>> pretty sure we have not), but you could try with the --os flag to use
>> the ubuntu names for the packages, that might work:
>>
>> rosdep install --os=ubuntu:precise
>
>
> I oftently force it to debian:xxx and I maintain the dependencies. I used to
> send patches for the rosdep.yaml file, but it seems to have disapeared in
> the 2.7 version. Has ROS changed anything about that ?
>

Yes, rosdep.yaml files are now global. You cannot use local
rosdep.yaml files anymore. Pull requests should be send to
github.com/ros/rosdistro

Ruben

>
>>
>>
>> Ruben
>> >
>> >> > FYI 2 : I have quite a lot of warnings, is it expected ? Are they
>> >> > just
>> >> > present due to lack of time to correct them or are they hidding any
>> >> > known
>> >> > problem (like a different default build option with caktin and
>> >> > autoproj
>> >> > ?)
>> >> >
>> >>
>> >> In your logs I only see cmake warnings, half of them relate to the
>> >> RUBY_DEBUG_OUTPUT cmake variable which is not used by all projects.
>> >> Others are about the missing libxml-xpath-perl. I saw one about a
>> >> missing Lua, and some are come from the typegen-generated typekit.
>> >> None of them seem critical and except from the last one they are not
>> >> hidding any known issue.
>> >>
>> >> Ruben
>> >> >
>> >> >>
>> >> >>
>> >> >> In my case it is located here:
>> >> >> /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h and it is part of
>> >> >> the ruby1.9.1-dev package.
>> >> >
>> >> >
>> >> > It is at the same place for me :
>> >> > # find /usr/ -name "config.h"
>> >> > /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h
>> >> >
>> >> >
>> >> >>
>> >> >> Ruben
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Ruben Smits, CTO
>> >> >> +32 479 511 786
>> >> >> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
>> >> >> www.intermodalics.eu
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> ---------------------------------------------------------------------------------------------------------------------------------------
>> >> >> This email and any attached files are confidential and may be
>> >> >> legally
>> >> >> privileged. Any copy, print or forward of this email, without the
>> >> >> agreement of sender or addressee, is strictly prohibited. Misuse is
>> >> >> a
>> >> >> violation of the law on personal data protection (D. Lgs. 196/2003)
>> >> >> and on secrecy of correspondence (art. 616 cp). If you have received
>> >> >> this transmission in error please notify the sender immediately and
>> >> >> then delete this email and any attached files.
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Ruben Smits, CTO
>> >> +32 479 511 786
>> >> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
>> >> www.intermodalics.eu
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------------------------------------------------------------------------
>> >> This email and any attached files are confidential and may be legally
>> >> privileged. Any copy, print or forward of this email, without the
>> >> agreement of sender or addressee, is strictly prohibited. Misuse is a
>> >> violation of the law on personal data protection (D. Lgs. 196/2003)
>> >> and on secrecy of correspondence (art. 616 cp). If you have received
>> >> this transmission in error please notify the sender immediately and
>> >> then delete this email and any attached files.
>>
>>
>>
>> --
>> Ruben Smits, CTO
>> +32 479 511 786
>> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
>> www.intermodalics.eu
>>
>>
>> ---------------------------------------------------------------------------------------------------------------------------------------
>> This email and any attached files are confidential and may be legally
>> privileged. Any copy, print or forward of this email, without the
>> agreement of sender or addressee, is strictly prohibited. Misuse is a
>> violation of the law on personal data protection (D. Lgs. 196/2003)
>> and on secrecy of correspondence (art. 616 cp). If you have received
>> this transmission in error please notify the sender immediately and
>> then delete this email and any attached files.
>
>

rtt_ros_integration : failed to compile orogen

2014-02-07 Ruben Smits <ruben [dot] smits [..] ...>:

> Hi Willy,

> On Fri, Feb 7, 2014 at 3:43 AM, Willy Lambert <lambert [dot] willy [..] ...>
> wrote:
> > Hi,
> >
> > I tried to install orocos in a fresh Debian jessie with the ROS-like
> > instructions from :
> >
> https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md...
> >
> > When I try to compile the orocos_toolchain I end in compiling orogen
> because
> > it can't find my ruby installation :
> >
>
> Which version of cmake are you using?
>
>
cmake version is 2.8.12.1

> >
> > ==> Processing plain cmake package: 'orogen'
> > ==> Building with env:
> > '/opt/orocos/underlay_isolated/install_isolated/env.sh'
> > ==> cmake
> /opt/orocos/underlay_isolated/src/orocos/orocos_toolchain/orogen
> > -DCMAKE_INSTALL_PREFIX=/opt/orocos/underlay_isolated/install_isolated in
> > '/opt/orocos/underlay_isolated/build_isolated/orogen/install'
> > CMake Error at
> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
> > (message):
> > Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY
> > RUBY_CONFIG_INCLUDE_DIR) (found version "1.9.1")
>
> I'm not saying that it is the definite solution, but did you install
> ruby-dev? It seems it is missing soem headers:
>
> (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR)
>
> Ruben
>
>

2.7 is not out officially so I expect some workarounds anyway,

Shall I use something like :

rosdep install --from-paths src --ignore-src --rosdistro hydro -y

to install any dependencies ? It was the way to do when you add new
packages to your workspace in the past (electric). I'm a bit lost with the
new way of doing.

I installed ruby-dev but unfortunately it didn't changed anything :(

>
> > Call Stack (most recent call first):
> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
> > (_FPHSA_FAILURE_MESSAGE)
> > /usr/share/cmake-2.8/Modules/FindRuby.cmake:239
> > (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> > CMakeLists.txt:4 (FIND_PACKAGE)
> >
> >
> > -- Configuring incomplete, errors occurred!
> > See also
> >
> "/opt/orocos/underlay_isolated/build_isolated/orogen/install/CMakeFiles/CMakeOutput.log".
> > <== Failed to process package 'orogen':
> > Command '/opt/orocos/underlay_isolated/install_isolated/env.sh cmake
> > /opt/orocos/underlay_isolated/src/orocos/orocos_toolchain/orogen
> > -DCMAKE_INSTALL_PREFIX=/opt/orocos/underlay_isolated/install_isolated'
> > returned non-zero exit status 1
> >
> > Reproduce this error by running:
> > ==> cd /opt/orocos/underlay_isolated/build_isolated/orogen &&
> > /opt/orocos/underlay_isolated/install_isolated/env.sh cmake
> > /opt/orocos/underlay_isolated/src/orocos/orocos_toolchain/orogen
> > -DCMAKE_INSTALL_PREFIX=/opt/orocos/underlay_isolated/install_isolated
> >
> > Command failed, exiting.
> >
> >
> > What can I do to correct this error ?
> >
> >
> >
> > root@ard-rootfs-creator:/opt/orocos/underlay_isolated# ruby --version
> > ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
> >
> >
> >
> >
> > --
> > Orocos-Users mailing list
> > Orocos-Users [..] ...
> > http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
> >
>
>
>
> --
> Ruben Smits, CTO
> +32 479 511 786
> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> www.intermodalics.eu
>
>
> ---------------------------------------------------------------------------------------------------------------------------------------
> This email and any attached files are confidential and may be legally
> privileged. Any copy, print or forward of this email, without the
> agreement of sender or addressee, is strictly prohibited. Misuse is a
> violation of the law on personal data protection (D. Lgs. 196/2003)
> and on secrecy of correspondence (art. 616 cp). If you have received
> this transmission in error please notify the sender immediately and
> then delete this email and any attached files.
>

Ruben Smits's picture

rtt_ros_integration : failed to compile orogen

Hi Willy,

On Fri, Feb 7, 2014 at 1:36 PM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
>
>
>
> 2014-02-07 Ruben Smits <ruben [dot] smits [..] ...>:
>
>> Hi Willy,
>>
>>
>> On Fri, Feb 7, 2014 at 3:43 AM, Willy Lambert <lambert [dot] willy [..] ...>
>> wrote:
>> > Hi,
>> >
>> > I tried to install orocos in a fresh Debian jessie with the ROS-like
>> > instructions from :
>> >
>> > https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md...
>> >
>> > When I try to compile the orocos_toolchain I end in compiling orogen
>> > because
>> > it can't find my ruby installation :
>> >
>>
>> Which version of cmake are you using?
>>
>
> cmake version is 2.8.12.1
>
>
>
>
>>
>> >
>> > ==> Processing plain cmake package: 'orogen'
>> > ==> Building with env:
>> > '/opt/orocos/underlay_isolated/install_isolated/env.sh'
>> > ==> cmake
>> > /opt/orocos/underlay_isolated/src/orocos/orocos_toolchain/orogen
>> > -DCMAKE_INSTALL_PREFIX=/opt/orocos/underlay_isolated/install_isolated in
>> > '/opt/orocos/underlay_isolated/build_isolated/orogen/install'
>> > CMake Error at
>> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
>> > (message):
>> > Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY
>> > RUBY_CONFIG_INCLUDE_DIR) (found version "1.9.1")
>>
>> I'm not saying that it is the definite solution, but did you install
>> ruby-dev? It seems it is missing soem headers:
>>
>> (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR)
>>
>> Ruben
>>
>
>
> 2.7 is not out officially so I expect some workarounds anyway,
>
> Shall I use something like :
>
> rosdep install --from-paths src --ignore-src --rosdistro hydro -y
>
>
> to install any dependencies ? It was the way to do when you add new packages
> to your workspace in the past (electric). I'm a bit lost with the new way of
> doing.
>

This should still be sufficient. It is the find_package(Ruby) call
which is failing for some reason on your system.

Can you rerun with the following:

catkin_make_isolated --pkg orogen --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE

And post the FindRuby.cmake debug output, mine looks as follows:

rtt_ros_integration : failed to compile orogen

2014-02-07 Ruben Smits <ruben [dot] smits [..] ...>:

> Hi Willy,
>
> On Fri, Feb 7, 2014 at 1:36 PM, Willy Lambert <lambert [dot] willy [..] ...>
> wrote:
> >
> >
> >
> > 2014-02-07 Ruben Smits <ruben [dot] smits [..] ...>:
> >
> >> Hi Willy,
> >>
> >>
> >> On Fri, Feb 7, 2014 at 3:43 AM, Willy Lambert <lambert [dot] willy [..] ...>
> >> wrote:
> >> > Hi,
> >> >
> >> > I tried to install orocos in a fresh Debian jessie with the ROS-like
> >> > instructions from :
> >> >
> >> >
> https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md...
> >> >
> >> > When I try to compile the orocos_toolchain I end in compiling orogen
> >> > because
> >> > it can't find my ruby installation :
> >> >
> >>
> >> Which version of cmake are you using?
> >>
> >
> > cmake version is 2.8.12.1
> >
> >
> >
> >
> >>
> >> >
> >> > ==> Processing plain cmake package: 'orogen'
> >> > ==> Building with env:
> >> > '/opt/orocos/underlay_isolated/install_isolated/env.sh'
> >> > ==> cmake
> >> > /opt/orocos/underlay_isolated/src/orocos/orocos_toolchain/orogen
> >> > -DCMAKE_INSTALL_PREFIX=/opt/orocos/underlay_isolated/install_isolated
> in
> >> > '/opt/orocos/underlay_isolated/build_isolated/orogen/install'
> >> > CMake Error at
> >> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
> >> > (message):
> >> > Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY
> >> > RUBY_CONFIG_INCLUDE_DIR) (found version "1.9.1")
> >>
> >> I'm not saying that it is the definite solution, but did you install
> >> ruby-dev? It seems it is missing soem headers:
> >>
> >> (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR)
> >>
> >> Ruben
> >>
> >
> >
> > 2.7 is not out officially so I expect some workarounds anyway,
> >
> > Shall I use something like :
> >
> > rosdep install --from-paths src --ignore-src --rosdistro hydro -y
> >
> >
> > to install any dependencies ? It was the way to do when you add new
> packages
> > to your workspace in the past (electric). I'm a bit lost with the new
> way of
> > doing.
> >
>
> This should still be sufficient. It is the find_package(Ruby) call
> which is failing for some reason on your system.
>
> Can you rerun with the following:
>
> catkin_make_isolated --pkg orogen --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>
> And post the FindRuby.cmake debug output, mine looks as follows:
>

Ruben Smits's picture

rtt_ros_integration : failed to compile orogen

Hi Willy,

On Fri, Feb 7, 2014 at 3:31 PM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
>
>
>
> 2014-02-07 Ruben Smits <ruben [dot] smits [..] ...>:
>>
>> Hi Willy,
>>
>> On Fri, Feb 7, 2014 at 1:36 PM, Willy Lambert <lambert [dot] willy [..] ...>
>> wrote:
>> >
>> >
>> >
>> > 2014-02-07 Ruben Smits <ruben [dot] smits [..] ...>:
>> >
>> >> Hi Willy,
>> >>
>> >>
>> >> On Fri, Feb 7, 2014 at 3:43 AM, Willy Lambert <lambert [dot] willy [..] ...>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > I tried to install orocos in a fresh Debian jessie with the ROS-like
>> >> > instructions from :
>> >> >
>> >> >
>> >> > https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md...
>> >> >
>> >> > When I try to compile the orocos_toolchain I end in compiling orogen
>> >> > because
>> >> > it can't find my ruby installation :
>> >> >
>> >>
>> >> Which version of cmake are you using?
>> >>
>> >
>> > cmake version is 2.8.12.1
>> >
>> >
>> >
>> >
>> >>
>> >> >
>> >> > ==> Processing plain cmake package: 'orogen'
>> >> > ==> Building with env:
>> >> > '/opt/orocos/underlay_isolated/install_isolated/env.sh'
>> >> > ==> cmake
>> >> > /opt/orocos/underlay_isolated/src/orocos/orocos_toolchain/orogen
>> >> > -DCMAKE_INSTALL_PREFIX=/opt/orocos/underlay_isolated/install_isolated
>> >> > in
>> >> > '/opt/orocos/underlay_isolated/build_isolated/orogen/install'
>> >> > CMake Error at
>> >> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
>> >> > (message):
>> >> > Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY
>> >> > RUBY_CONFIG_INCLUDE_DIR) (found version "1.9.1")
>> >>
>> >> I'm not saying that it is the definite solution, but did you install
>> >> ruby-dev? It seems it is missing soem headers:
>> >>
>> >> (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR)
>> >>
>> >> Ruben
>> >>
>> >
>> >
>> > 2.7 is not out officially so I expect some workarounds anyway,
>> >
>> > Shall I use something like :
>> >
>> > rosdep install --from-paths src --ignore-src --rosdistro hydro -y
>> >
>> >
>> > to install any dependencies ? It was the way to do when you add new
>> > packages
>> > to your workspace in the past (electric). I'm a bit lost with the new
>> > way of
>> > doing.
>> >
>>
>> This should still be sufficient. It is the find_package(Ruby) call
>> which is failing for some reason on your system.
>>
>> Can you rerun with the following:
>>
>> catkin_make_isolated --pkg orogen --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>>
>> And post the FindRuby.cmake debug output, mine looks as follows:
>>

rtt_ros_integration : failed to compile orogen

> >
> >
> > Here is mine :
> >
> > -- --------FindRuby.cmake debug------------
> > -- _RUBY_POSSIBLE_EXECUTABLE_NAMES: ruby;ruby1.9;ruby19;ruby1.8;ruby18
> > -- _RUBY_POSSIBLE_LIB_NAMES:
> > ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
> > -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
> > -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
> > -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
> > -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
> > -- _RUBY_REQUIRED_VARS:
> > RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
> > -- RUBY_EXECUTABLE: /usr/bin/ruby
> > -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
> > -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
> > -- RUBY_CONFIG_INCLUDE_DIR: /usr/include/ruby-1.9.1/x86_64-linux
> > -- --------------------
> >
> > Amazingly, with this command line ruby is found and the "build" is a
> success
> > but the catkin_make_isolated is still failing.
>
> I do not see it failing in your attached log? Can you now try with
> catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>
> but without the --pkg orogen option so that it goes through the entire
> workspace? --pkg is known to be unstable in catkin_make_isolated
> environment if no complete successfull build/install has been done at
> least once.
>
>
Yes it worked, the main difference between is the "--install" option that
was not in :
"catkin_make_isolated --pkg orogen --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE"

So I tried to build the whole orocos_toolchain workspace simply with :
catkin_make_isolated
and it worked !!

catkin_make_isolated *--install*
catkin_make_isolated *--install *--cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
Both failed

I wonder if there is any bug in the install phasis.

Ruben Smits's picture

rtt_ros_integration : failed to compile orogen

Op 7 feb. 2014 16:37 schreef "Willy Lambert" <lambert [dot] willy [..] ...> het
volgende:
>
>
>> >
>> >
>> > Here is mine :
>> >
>> > -- --------FindRuby.cmake debug------------
>> > -- _RUBY_POSSIBLE_EXECUTABLE_NAMES: ruby;ruby1.9;ruby19;ruby1.8;ruby18
>> > -- _RUBY_POSSIBLE_LIB_NAMES:
>> > ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
>> > -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
>> > -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
>> > -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
>> > -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
>> > -- _RUBY_REQUIRED_VARS:
>> > RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
>> > -- RUBY_EXECUTABLE: /usr/bin/ruby
>> > -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
>> > -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
>> > -- RUBY_CONFIG_INCLUDE_DIR: /usr/include/ruby-1.9.1/x86_64-linux
>> > -- --------------------
>> >
>> > Amazingly, with this command line ruby is found and the "build" is a
success
>> > but the catkin_make_isolated is still failing.
>>
>> I do not see it failing in your attached log? Can you now try with
>> catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>>
>> but without the --pkg orogen option so that it goes through the entire
>> workspace? --pkg is known to be unstable in catkin_make_isolated
>> environment if no complete successfull build/install has been done at
>> least once.
>>
>
> Yes it worked, the main difference between is the "--install" option that
was not in :
>
> "catkin_make_isolated --pkg orogen --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE"
>
> So I tried to build the whole orocos_toolchain workspace simply with :
> catkin_make_isolated
> and it worked !!
>
> catkin_make_isolated --install
> catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
> Both failed
>
> I wonder if there is any bug in the install phasis.
>

Could you attach the exact errors?

Ruben

rtt_ros_integration : failed to compile orogen

2014-02-07 Ruben Smits <ruben [dot] smits [..] ...>:

>
> Op 7 feb. 2014 16:37 schreef "Willy Lambert" <lambert [dot] willy [..] ...>
> het volgende:
>
> >
> >
> >> >
> >> >
> >> > Here is mine :
> >> >
> >> > -- --------FindRuby.cmake debug------------
> >> > -- _RUBY_POSSIBLE_EXECUTABLE_NAMES: ruby;ruby1.9;ruby19;ruby1.8;ruby18
> >> > -- _RUBY_POSSIBLE_LIB_NAMES:
> >> > ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
> >> > -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
> >> > -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
> >> > -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
> >> > -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
> >> > -- _RUBY_REQUIRED_VARS:
> >> > RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
> >> > -- RUBY_EXECUTABLE: /usr/bin/ruby
> >> > -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
> >> > -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
> >> > -- RUBY_CONFIG_INCLUDE_DIR: /usr/include/ruby-1.9.1/x86_64-linux
> >> > -- --------------------
> >> >
> >> > Amazingly, with this command line ruby is found and the "build" is a
> success
> >> > but the catkin_make_isolated is still failing.
> >>
> >> I do not see it failing in your attached log? Can you now try with
> >> catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
> >>
> >> but without the --pkg orogen option so that it goes through the entire
> >> workspace? --pkg is known to be unstable in catkin_make_isolated
> >> environment if no complete successfull build/install has been done at
> >> least once.
> >>
> >
> > Yes it worked, the main difference between is the "--install" option
> that was not in :
> >
> > "catkin_make_isolated --pkg orogen --cmake-args
> -D_RUBY_DEBUG_OUTPUT=TRUE"
> >
> > So I tried to build the whole orocos_toolchain workspace simply with :
> > catkin_make_isolated
> > and it worked !!
> >
> > catkin_make_isolated --install
> > catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
> > Both failed
> >
> > I wonder if there is any bug in the install phasis.
> >
>
> Could you attach the exact errors?
>
> Ruben
>
See enclosed, it's the same as the one I pasted some msg before.

Ruben Smits's picture

rtt_ros_integration : failed to compile orogen

Hi Willy,

[...]
>> >> > Here is mine :
>> >> >
>> >> > -- --------FindRuby.cmake debug------------
>> >> > -- _RUBY_POSSIBLE_EXECUTABLE_NAMES:
>> >> > ruby;ruby1.9;ruby19;ruby1.8;ruby18
>> >> > -- _RUBY_POSSIBLE_LIB_NAMES:
>> >> > ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
>> >> > -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
>> >> > -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
>> >> > -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
>> >> > -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
>> >> > -- _RUBY_REQUIRED_VARS:
>> >> > RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
>> >> > -- RUBY_EXECUTABLE: /usr/bin/ruby
>> >> > -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
>> >> > -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
>> >> > -- RUBY_CONFIG_INCLUDE_DIR: /usr/include/ruby-1.9.1/x86_64-linux
>> >> > -- --------------------
>> >> >
>> >> > Amazingly, with this command line ruby is found and the "build" is a
>> >> > success
>> >> > but the catkin_make_isolated is still failing.
>> >>
>> >> I do not see it failing in your attached log? Can you now try with
>> >> catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>> >>
>> >> but without the --pkg orogen option so that it goes through the entire
>> >> workspace? --pkg is known to be unstable in catkin_make_isolated
>> >> environment if no complete successfull build/install has been done at
>> >> least once.
>> >>
>> >
>> > Yes it worked, the main difference between is the "--install" option
>> > that was not in :
>> >
>> > "catkin_make_isolated --pkg orogen --cmake-args
>> > -D_RUBY_DEBUG_OUTPUT=TRUE"
>> >
>> > So I tried to build the whole orocos_toolchain workspace simply with :
>> > catkin_make_isolated
>> > and it worked !!
>> >
>> > catkin_make_isolated --install
>> > catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>> > Both failed
>> >
>> > I wonder if there is any bug in the install phasis.
>> >
>>
>> Could you attach the exact errors?
>>
>> Ruben
>
> See enclosed, it's the same as the one I pasted some msg before.

It seems to be missing the ruby/config.h file but still finding all
the rest, although it did find it without the --install option which
is totally amazing me. Can you retry with both with and without
--install after removing all build/devel/install folders, just to make
sure we are not suffering from old CMake cache?

In my case it is located here:
/usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h and it is part of
the ruby1.9.1-dev package.

Ruben

rtt_ros_integration : failed to compile orogen

On Feb 10, 2014, at 11:17 , Ruben Smits <ruben [dot] smits [..] ...> wrote:

> Hi Willy,
>
> [...]
>>>>>> Here is mine :
>>>>>>
>>>>>> -- --------FindRuby.cmake debug------------
>>>>>> -- _RUBY_POSSIBLE_EXECUTABLE_NAMES:
>>>>>> ruby;ruby1.9;ruby19;ruby1.8;ruby18
>>>>>> -- _RUBY_POSSIBLE_LIB_NAMES:
>>>>>> ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1
>>>>>> -- RUBY_ARCH_DIR: /usr/lib/ruby/1.9.1/x86_64-linux
>>>>>> -- RUBY_HDR_DIR: /usr/include/ruby-1.9.1
>>>>>> -- RUBY_POSSIBLE_LIB_DIR: /usr/lib
>>>>>> -- Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
>>>>>> -- _RUBY_REQUIRED_VARS:
>>>>>> RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
>>>>>> -- RUBY_EXECUTABLE: /usr/bin/ruby
>>>>>> -- RUBY_LIBRARY: /usr/lib/libruby-1.9.1.so
>>>>>> -- RUBY_INCLUDE_DIR: /usr/include/ruby-1.9.1
>>>>>> -- RUBY_CONFIG_INCLUDE_DIR: /usr/include/ruby-1.9.1/x86_64-linux
>>>>>> -- --------------------
>>>>>>
>>>>>> Amazingly, with this command line ruby is found and the "build" is a
>>>>>> success
>>>>>> but the catkin_make_isolated is still failing.
>>>>>
>>>>> I do not see it failing in your attached log? Can you now try with
>>>>> catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>>>>>
>>>>> but without the --pkg orogen option so that it goes through the entire
>>>>> workspace? --pkg is known to be unstable in catkin_make_isolated
>>>>> environment if no complete successfull build/install has been done at
>>>>> least once.
>>>>>
>>>>
>>>> Yes it worked, the main difference between is the "--install" option
>>>> that was not in :
>>>>
>>>> "catkin_make_isolated --pkg orogen --cmake-args
>>>> -D_RUBY_DEBUG_OUTPUT=TRUE"
>>>>
>>>> So I tried to build the whole orocos_toolchain workspace simply with :
>>>> catkin_make_isolated
>>>> and it worked !!
>>>>
>>>> catkin_make_isolated --install
>>>> catkin_make_isolated --install --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>>>> Both failed
>>>>
>>>> I wonder if there is any bug in the install phasis.
>>>>
>>>
>>> Could you attach the exact errors?
>>>
>>> Ruben
>>
>> See enclosed, it's the same as the one I pasted some msg before.
>
>
> It seems to be missing the ruby/config.h file but still finding all
> the rest, although it did find it without the --install option which
> is totally amazing me. Can you retry with both with and without
> --install after removing all build/devel/install folders, just to make
> sure we are not suffering from old CMake cache?
>
> In my case it is located here:
> /usr/include/ruby-1.9.1/x86_64-linux/ruby/config.h and it is part of
> the ruby1.9.1-dev package.
>
> Ruben

Ruben, I may have run into something similar in Mint 15. All I wrote was that I modified the /usr/share/.../FindRuby.cmake script to cache RUBY_ARCH. I vaguely remember this being involved in the search path for one of the required files, and config.h rings a bell.

Not sure if this helps.
S

rtt_ros_integration : failed to compile orogen

2014-02-07 Willy Lambert <lambert [dot] willy [..] ...>:

>
>
>
> 2014-02-07 Ruben Smits <ruben [dot] smits [..] ...>:
>
>> Hi Willy,
>>
>> On Fri, Feb 7, 2014 at 1:36 PM, Willy Lambert <lambert [dot] willy [..] ...>
>> wrote:
>> >
>> >
>> >
>> > 2014-02-07 Ruben Smits <ruben [dot] smits [..] ...>:
>> >
>> >> Hi Willy,
>> >>
>> >>
>> >> On Fri, Feb 7, 2014 at 3:43 AM, Willy Lambert <lambert [dot] willy [..] ...
>> >
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > I tried to install orocos in a fresh Debian jessie with the ROS-like
>> >> > instructions from :
>> >> >
>> >> >
>> https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/README.md...
>> >> >
>> >> > When I try to compile the orocos_toolchain I end in compiling orogen
>> >> > because
>> >> > it can't find my ruby installation :
>> >> >
>> >>
>> >> Which version of cmake are you using?
>> >>
>> >
>> > cmake version is 2.8.12.1
>> >
>> >
>> >
>> >
>> >>
>> >> >
>> >> > ==> Processing plain cmake package: 'orogen'
>> >> > ==> Building with env:
>> >> > '/opt/orocos/underlay_isolated/install_isolated/env.sh'
>> >> > ==> cmake
>> >> > /opt/orocos/underlay_isolated/src/orocos/orocos_toolchain/orogen
>> >> >
>> -DCMAKE_INSTALL_PREFIX=/opt/orocos/underlay_isolated/install_isolated in
>> >> > '/opt/orocos/underlay_isolated/build_isolated/orogen/install'
>> >> > CMake Error at
>> >> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
>> >> > (message):
>> >> > Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY
>> >> > RUBY_CONFIG_INCLUDE_DIR) (found version "1.9.1")
>> >>
>> >> I'm not saying that it is the definite solution, but did you install
>> >> ruby-dev? It seems it is missing soem headers:
>> >>
>> >> (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR)
>> >>
>> >> Ruben
>> >>
>> >
>> >
>> > 2.7 is not out officially so I expect some workarounds anyway,
>> >
>> > Shall I use something like :
>> >
>> > rosdep install --from-paths src --ignore-src --rosdistro hydro -y
>> >
>> >
>> > to install any dependencies ? It was the way to do when you add new
>> packages
>> > to your workspace in the past (electric). I'm a bit lost with the new
>> way of
>> > doing.
>> >
>>
>> This should still be sufficient. It is the find_package(Ruby) call
>> which is failing for some reason on your system.
>>
>> Can you rerun with the following:
>>
>> catkin_make_isolated --pkg orogen --cmake-args -D_RUBY_DEBUG_OUTPUT=TRUE
>>
>> And post the FindRuby.cmake debug output, mine looks as follows:
>>