Ros compilation fails on OSX
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
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.
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?
I added a screenshot
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.
Maybe check the issue trackers for VTK and Homebrew to see if anyone else there has reported similar issues with VTK or OpenCV3
It's 43 errors, here I tried to take some screenshots, many other are left. screen1screen2screen3
Yeah. I would definitely check the VTK and Homebrew bug trackers to see if anyone else has reported similar issues there.