Failing to install rcl_logging_log4cxx on MacOS 11.5.2 for ros2_foxy/galactic

asked 2021-09-13 11:25:50 -0500

Hi, I'm having trouble installing ros2_foxy and ros2_galactic on my MacOS 11.5.2. I'm running into some errors with the C++ std library specifically, std::shared_mutex. Wondering if anyone has experience with this? I've updated CMake to version 3.21.2 and am following all the instructions (here)[https://docs.ros.org/en/foxy/In....

$ colcon build --symlink-install --packages-skip-by-dep python_qt_binding
...
Finished <<< rcl_logging_noop [6.30s]                                                                                     
--- stderr: rcl_logging_log4cxx                                                                                           
In file included from /Users/adampatni/ros2_foxy/src/ros2/rcl_logging/rcl_logging_log4cxx/src/rcl_logging_log4cxx/rcl_logging_log4cxx.cpp:21:
In file included from /usr/local/include/log4cxx/logger.h:30:
In file included from /usr/local/include/log4cxx/helpers/appenderattachableimpl.h:27:
In file included from /usr/local/include/log4cxx/spi/appenderattachable.h:26:
In file included from /usr/local/include/log4cxx/logstring.h:28:
In file included from /usr/local/include/log4cxx/log4cxx.h:45:
/usr/local/include/log4cxx/boost-std-configuration.h:10:18: error: no type named 'shared_mutex' in namespace 'std'
    typedef std::shared_mutex shared_mutex;
            ~~~~~^
In file included from /Users/adampatni/ros2_foxy/src/ros2/rcl_logging/rcl_logging_log4cxx/src/rcl_logging_log4cxx/rcl_logging_log4cxx.cpp:27:
In file included from /usr/local/include/log4cxx/patternlayout.h:27:
In file included from /usr/local/include/log4cxx/pattern/loggingeventpatternconverter.h:21:
/usr/local/include/log4cxx/pattern/patternconverter.h:76:44: warning: extra ';' inside a class [-Wextra-semi]
                DECLARE_LOG4CXX_PATTERN(PatternConverter);
                                                         ^
1 warning and 1 error generated.
make[2]: *** [CMakeFiles/rcl_logging_log4cxx.dir/src/rcl_logging_log4cxx/rcl_logging_log4cxx.cpp.o] Error 1
make[1]: *** [CMakeFiles/rcl_logging_log4cxx.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< rcl_logging_log4cxx [6.82s, exited with code 2]
Aborted  <<< rosidl_runtime_c [27.5s]                                                                                                 
Aborted  <<< rcpputils [35.6s]                                                                                                        
Aborted  <<< fastrtps [5min 7s]                                                                                                   
Aborted  <<< rviz_ogre_vendor [8min 26s]                                             

Summary: 114 packages finished [8min 58s]
  1 package failed: rcl_logging_log4cxx
  4 packages aborted: fastrtps rcpputils rosidl_runtime_c rviz_ogre_vendor
  16 packages had stderr output: cyclonedds fastcdr foonathan_memory_vendor google_benchmark_vendor mimick_vendor orocos_kdl rcl_logging_log4cxx rttest rviz_ogre_vendor shared_queues_vendor tlsf tracetools_read tracetools_trace uncrustify_vendor urdfdom_headers yaml_cpp_vendor
  167 packages not processed
edit retag flag offensive close merge delete