ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

The part undefined reference to symbol __atomic_load_8 seems to be connected with similar problems:

Adding this line in the src/cartographer/CMakeLists.txt and _src/cartographer_ros/cartographer_ros/CMakeLists.txt set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -latomic")

  • there, with two ways of approach:

1)

nano CMakeLists.txt

go to the bottom and add in the file:

set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -latomic")

2)

I finally got it working by intsallint gcc 5 and trying again! sudo apt-get install gcc-5 g++-5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

sudo update-alternatives --set gcc "/usr/bin/gcc-5"

Please comment if you tried these and what did you get.