Compiling RTT 2.6 on Mac OS X Lion 10.7.4

Hello,

I am trying to compile RTT 2.6 on my Mac, unsuccessfully. I have tried
first to make autoproj work, got annoyed and then I tried to work
directly with CMake:

cd rtt
mkdir build
cd build
cmake ..
make

I tried Apple GCC, Apple Clang (versions which come with Lion), and
finally I tried to compile it with GCC 4.7 from MacPorts. All the
compilers failed on the same file. Here is the output of CMake and
compilation process:

http://pastebin.com/uL58kfyW

Does anyone have a clue how to make it work?

BTW, I want to use RTT on my Mac just for developing components, which
are going to be deployed on a Linux machine later.

Best regards and thanx in advance,
Milan

--
Milan Vukov, PhD Student
KU Leuven, Electrical Engineering Department (ESAT)
Kasteelpark Arenberg 10, bus 2446
B-3001 Leuven-Heverlee, Belgium
e-mail: milan [dot] vukov [..] ...
phone: +32-479-813256 (BE), +381-64-1541622 (SR)
disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Ruben Smits's picture

Compiling RTT 2.6 on Mac OS X Lion 10.7.4

Hi Milan,

On Thu, Jan 17, 2013 at 10:25 AM, Milan Vukov
<milan [dot] vukov [..] ...> wrote:
> Hello,
>
> I am trying to compile RTT 2.6 on my Mac, unsuccessfully. I have tried
> first to make autoproj work, got annoyed and then I tried to work
> directly with CMake:
>
> cd rtt
> mkdir build
> cd build
> cmake ..
> make
>
> I tried Apple GCC, Apple Clang (versions which come with Lion), and
> finally I tried to compile it with GCC 4.7 from MacPorts. All the
> compilers failed on the same file. Here is the output of CMake and
> compilation process:
>
> http://pastebin.com/uL58kfyW
>
> Does anyone have a clue how to make it work?

Which version of boost are you using?

Ruben

> BTW, I want to use RTT on my Mac just for developing components, which
> are going to be deployed on a Linux machine later.
>
> Best regards and thanx in advance,
> Milan
>
> --
> Milan Vukov, PhD Student
> KU Leuven, Electrical Engineering Department (ESAT)
> Kasteelpark Arenberg 10, bus 2446
> B-3001 Leuven-Heverlee, Belgium
> e-mail: milan [dot] vukov [..] ...
> phone: +32-479-813256 (BE), +381-64-1541622 (SR)
> disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Compiling RTT 2.6 on Mac OS X Lion 10.7.4

Hi Ruben,

I am using the newest available from MacPorts, -- Boost version:
1.52.0 (This is from the CMake log).

Best,
Milan

On Thu, Jan 17, 2013 at 10:39 AM, Ruben Smits
<ruben [dot] smits [..] ...> wrote:
> Hi Milan,
>
> On Thu, Jan 17, 2013 at 10:25 AM, Milan Vukov
> <milan [dot] vukov [..] ...> wrote:
>> Hello,
>>
>> I am trying to compile RTT 2.6 on my Mac, unsuccessfully. I have tried
>> first to make autoproj work, got annoyed and then I tried to work
>> directly with CMake:
>>
>> cd rtt
>> mkdir build
>> cd build
>> cmake ..
>> make
>>
>> I tried Apple GCC, Apple Clang (versions which come with Lion), and
>> finally I tried to compile it with GCC 4.7 from MacPorts. All the
>> compilers failed on the same file. Here is the output of CMake and
>> compilation process:
>>
>> http://pastebin.com/uL58kfyW
>>
>> Does anyone have a clue how to make it work?
>
> Which version of boost are you using?
>
> Ruben
>
>> BTW, I want to use RTT on my Mac just for developing components, which
>> are going to be deployed on a Linux machine later.
>>
>> Best regards and thanx in advance,
>> Milan
>>
>> --
>> Milan Vukov, PhD Student
>> KU Leuven, Electrical Engineering Department (ESAT)
>> Kasteelpark Arenberg 10, bus 2446
>> B-3001 Leuven-Heverlee, Belgium
>> e-mail: milan [dot] vukov [..] ...
>> phone: +32-479-813256 (BE), +381-64-1541622 (SR)
>> disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Compiling RTT 2.6 on Mac OS X Lion 10.7.4

On Thu, Jan 17, 2013 at 10:42 AM, Milan Vukov
<milan [dot] vukov [..] ...>wrote:

> Hi Ruben,
>
> I am using the newest available from MacPorts, -- Boost version:
> 1.52.0 (This is from the CMake log).
>

The bug is in boost itself. Try to downgrade to 1.46 or 1.48, although I
can't know if this version is better for your Mac. Please let us know if
you made any progress !

Peter

Compiling RTT 2.6 on Mac OS X Lion 10.7.4

On Jan 17, 2013, at 06:29 , Peter Soetens wrote:

> On Thu, Jan 17, 2013 at 10:42 AM, Milan Vukov <milan [dot] vukov [..] ...> wrote:
> Hi Ruben,
>
> I am using the newest available from MacPorts, -- Boost version:
> 1.52.0 (This is from the CMake log).
>
> The bug is in boost itself. Try to downgrade to 1.46 or 1.48, although I can't know if this version is better for your Mac. Please let us know if you made any progress !

FYI I am using boost v1.50 with Orocos v1, and it's fine in Lion. I'm pretty sure I compiled Orocos v2 a couple of months back and it was ok also.
S

Compiling RTT 2.6 on Mac OS X Lion 10.7.4

Hello,

Thanx for suggestions. I will try to downgrade the Boost and try to
compile the code again. Anyway, I am curious to know whether this
problem is related to Boost 1.52. for OS X and/or those problems with
the new Boost 1.52 also occurred on Linux systems...

Best,
Milan

On Thu, Jan 17, 2013 at 12:50 PM, S Roderick <kiwi [dot] 2008 [..] ...> wrote:
> On Jan 17, 2013, at 06:29 , Peter Soetens wrote:
>
> On Thu, Jan 17, 2013 at 10:42 AM, Milan Vukov <milan [dot] vukov [..] ...>
> wrote:
>>
>> Hi Ruben,
>>
>> I am using the newest available from MacPorts, -- Boost version:
>> 1.52.0 (This is from the CMake log).
>
>
> The bug is in boost itself. Try to downgrade to 1.46 or 1.48, although I
> can't know if this version is better for your Mac. Please let us know if you
> made any progress !
>
>
> FYI I am using boost v1.50 with Orocos v1, and it's fine in Lion. I'm pretty
> sure I compiled Orocos v2 a couple of months back and it was ok also.
> S
>
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

Compiling RTT 2.6 on Mac OS X Lion 10.7.4

Hello,

I installed Boost 1.47, following the instructions given here:

http://www.ros.org/wiki/groovy/Installation/OSX/MacPorts/Source

Compilation went fine, but I had a small problem with linking, you can
see it here:

http://pastebin.com/b9UxKEvY

It seems me like a CMake problem. I just rerun "cmake .. && make" and
it compiled. Make install works fine.

BTW, I compiled all modules with Apple Clang. MacPorts GCC 4.7.2 --
fails on RTT -- something boost related.

I have also experienced a linking problem while compiling OCL, with
the readline library -- I found this problem on the OROCOS mailing
list. I had to manually specify readline lib and include folder, the
one from MacPorts (/opt/local/...). I also had to turn off compilation
of lua stuff, because it wanted link against "-lhistory" (???).

Although I installed utilmm, typelib CMake script could not find it.

All in all, 1-2h of my time. Deployer works fine, that is most
important for me :)

I do not have ROS, thus what is the most elegant way to tell to
deployer where are compiled components?I would like to avoid
installation of each component -- afaik, this was the only way to run
deployer without ROS some time ago. BTW, I would like to avoid ROS
atm.

And yes, please, please update a wiki web-page for OSX users :)

Best regards,
Milan

On Fri, Jan 18, 2013 at 10:26 AM, Milan Vukov
<milan [dot] vukov [..] ...> wrote:
> Hello,
>
> Thanx for suggestions. I will try to downgrade the Boost and try to
> compile the code again. Anyway, I am curious to know whether this
> problem is related to Boost 1.52. for OS X and/or those problems with
> the new Boost 1.52 also occurred on Linux systems...
>
> Best,
> Milan
>
> On Thu, Jan 17, 2013 at 12:50 PM, S Roderick <kiwi [dot] 2008 [..] ...> wrote:
>> On Jan 17, 2013, at 06:29 , Peter Soetens wrote:
>>
>> On Thu, Jan 17, 2013 at 10:42 AM, Milan Vukov <milan [dot] vukov [..] ...>
>> wrote:
>>>
>>> Hi Ruben,
>>>
>>> I am using the newest available from MacPorts, -- Boost version:
>>> 1.52.0 (This is from the CMake log).
>>
>>
>> The bug is in boost itself. Try to downgrade to 1.46 or 1.48, although I
>> can't know if this version is better for your Mac. Please let us know if you
>> made any progress !
>>
>>
>> FYI I am using boost v1.50 with Orocos v1, and it's fine in Lion. I'm pretty
>> sure I compiled Orocos v2 a couple of months back and it was ok also.
>> S
>>
>>
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>
>
>
>
> --
> Milan Vukov, PhD Student
> KU Leuven, Electrical Engineering Department (ESAT)
> Kasteelpark Arenberg 10, bus 2446
> B-3001 Leuven-Heverlee, Belgium
> e-mail: milan [dot] vukov [..] ...
> phone: +32-479-813256 (BE), +381-64-1541622 (SR)
> disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Ruben Smits's picture

Compiling RTT 2.6 on Mac OS X Lion 10.7.4

We've never tested with Boost 1.52, I would recommend to initially try
with an older version.

Ruben
Ruben Smits, Phd
Chief Technology Officer
Intermodalics BVBA
+32479511786
www.intermodalics.eu

On Thu, Jan 17, 2013 at 10:42 AM, Milan Vukov
<milan [dot] vukov [..] ...> wrote:
> Hi Ruben,
>
> I am using the newest available from MacPorts, -- Boost version:
> 1.52.0 (This is from the CMake log).
>
> Best,
> Milan
>
> On Thu, Jan 17, 2013 at 10:39 AM, Ruben Smits
> <ruben [dot] smits [..] ...> wrote:
>> Hi Milan,
>>
>> On Thu, Jan 17, 2013 at 10:25 AM, Milan Vukov
>> <milan [dot] vukov [..] ...> wrote:
>>> Hello,
>>>
>>> I am trying to compile RTT 2.6 on my Mac, unsuccessfully. I have tried
>>> first to make autoproj work, got annoyed and then I tried to work
>>> directly with CMake:
>>>
>>> cd rtt
>>> mkdir build
>>> cd build
>>> cmake ..
>>> make
>>>
>>> I tried Apple GCC, Apple Clang (versions which come with Lion), and
>>> finally I tried to compile it with GCC 4.7 from MacPorts. All the
>>> compilers failed on the same file. Here is the output of CMake and
>>> compilation process:
>>>
>>> http://pastebin.com/uL58kfyW
>>>
>>> Does anyone have a clue how to make it work?
>>
>> Which version of boost are you using?
>>
>> Ruben
>>
>>> BTW, I want to use RTT on my Mac just for developing components, which
>>> are going to be deployed on a Linux machine later.
>>>
>>> Best regards and thanx in advance,
>>> Milan
>>>
>>> --
>>> Milan Vukov, PhD Student
>>> KU Leuven, Electrical Engineering Department (ESAT)
>>> Kasteelpark Arenberg 10, bus 2446
>>> B-3001 Leuven-Heverlee, Belgium
>>> e-mail: milan [dot] vukov [..] ...
>>> phone: +32-479-813256 (BE), +381-64-1541622 (SR)
>>> disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
>>> --
>>> Orocos-Users mailing list
>>> Orocos-Users [..] ...
>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>
>
> --
> Milan Vukov, PhD Student
> KU Leuven, Electrical Engineering Department (ESAT)
> Kasteelpark Arenberg 10, bus 2446
> B-3001 Leuven-Heverlee, Belgium
> e-mail: milan [dot] vukov [..] ...
> phone: +32-479-813256 (BE), +381-64-1541622 (SR)
> disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm