Open zmk5 opened 4 years ago
Hey, I think I may have figured it out. The issue seems to be that XCode has turned on the C++17 features but not the C++17 standard library in versions less than macOS 10.15. Therefore to be able to compile in Mojave and older, you will need to add the -mmacosx-version-min=10.15
flag in your CMakeLists.txt
file as such:
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic -mmacosx-version-min=10.15)
endif()
Hi @zmk5 I think it would be better to fix this in pluginlib (https://github.com/ros/pluginlib/blob/9fecba30c6e388024bc14137b53694b4e555696f/pluginlib/include/pluginlib/impl/filesystem_helper.hpp#L39-L49 ).
One could add a check for the OSX deployment target ...
There are a bunch of polyfill filesystem libraries available as well that could be used.
@zmk5 I opened an issue here: https://github.com/ros/pluginlib/issues/215 maybe we can get that sorted out in the future.
We got quite some ROS packages for Foxy on the robostack channel now, but still missing RViz 2 (because there were issues compiling RViz. If you have ideas, please help! :)
(Failing RViz build here: https://dev.azure.com/roboforge/ros_pipelines/_build/results?buildId=1483&view=logs&j=72f35559-b34c-5aff-f26a-5f9b23141180&t=5a86ea88-b89b-5155-3f25-817bbf591b05 (sorry for hijacking this thread).
Hi,
I'm trying to build the
image_common
package for macOS and I keep running into the following error output:The error consistantly states that certain methods and functions are unavailable due to version macOS version requirements (e.g.
error: '~path' is unavailable: introduced in macOS 10.15
). Is there a way to get around this issue?