cartographer-project / cartographer

Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations.
Apache License 2.0
7.03k stars 2.24k forks source link

ubuntu1604 catkin_make failed #1876

Open turinglife opened 2 years ago

turinglife commented 2 years ago

/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

error This file requires compiler and library support \


solution:

  1. put set(CMAKE_CXX_FLAGS "-std=c++11") to CMakeList.txt @ abseil-cpp
  2. put set(CMAKE_CXX_FLAGS "-std=c++11") to CMakeList.txt @ src/cartographer/
turinglife commented 2 years ago

SetUsageMessage’ is not a member of ‘google

solution: change to

ifdef GFLAGS_NAMESPACE

GFLAGS_NAMESPACE::ParseCommandLineFlags(&argc, &argv, true);

else

google::ParseCommandLineFlags(&argc, &argv, true);

endif