Ros compilation fails on OSX

asked 2019-01-02 17:40:38 -0500

Anelito_ gravatar image

updated 2019-01-13 12:26:01 -0500

Hi, I tried to install ROS kinetic (desktop-wet) on Mac OS Mojave using the following the tutorial however I get stuck at catkin workspace creation step. After running

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

when compiling opencv3 with a lot of compilation errors buried in the standard C++ libraries.

An example

cmath 99:::315  :error: 9:errorerror: : no 
      nomembererror
no :       
namedmember        'isfinite'namednomember  
 in'isfinite'      named  member thein 'isfinite'  named the globalin'isfinite'    namespace;globalthein    namespace;didglobalthe   did younamespace;  global mean youdid namespace;  'finite'?mean you did

How to fix it? I tried to update Xcode tools and brew but the error still shows up. Thank you

screenshot

Update

Following friends' advice, I tried editing the rosdep.yaml to remove opencv dependency and run catkin_make_isolated with

-DCMAKE_CXX_STANDARD=14

and later

-DCMAKE_CXX_STANDARD=11

options, same results compilation fails.

edit retag flag offensive close merge delete

Comments

2

It seems like most of the formatting from your error message has been lost. Can you edit your question to include a copy and paste of the original error message, even if it isn't in English?

ahendrix gravatar image ahendrix  ( 2019-01-02 18:27:59 -0500 )edit

I added a screenshot

Anelito_ gravatar image Anelito_  ( 2019-01-03 05:57:50 -0500 )edit

I don't have any good ideas about what would cause this kind of error. You error messages are very jumbled (and don't match your description), but it seems like there is some incompatibility between VTK 8.1 and the C++ compiler and standard library included with Mojave.

ahendrix gravatar image ahendrix  ( 2019-01-13 12:36:47 -0500 )edit

Maybe check the issue trackers for VTK and Homebrew to see if anyone else there has reported similar issues with VTK or OpenCV3

ahendrix gravatar image ahendrix  ( 2019-01-13 12:37:16 -0500 )edit

It's 43 errors, here I tried to take some screenshots, many other are left. screen1screen2screen3

Anelito_ gravatar image Anelito_  ( 2019-01-13 13:21:59 -0500 )edit

Yeah. I would definitely check the VTK and Homebrew bug trackers to see if anyone else has reported similar issues there.

ahendrix gravatar image ahendrix  ( 2019-01-13 15:44:56 -0500 )edit