MIT-SPARK / Kimera-RPGO

Robust Pose Graph Optimization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gtsam compile error 16.04

ToniRV opened this issue · comments

Not sure what is going on:

  • Installed Kimera-RPGO in 16.04
  • with latest gtsam version
In file included from /usr/include/c++/5/unordered_map:35:0,
                 from /home/tonirv/code/Kimera-RPGO/KimeraRPGO/utils/graph_utils.h:7,
                 from /home/tonirv/code/Kimera-RPGO/KimeraRPGO/utils/graph_utils.cpp:3:
/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 \
  ^
In file included from /usr/local/include/gtsam/inference/Key.h:25:0,
                 from /usr/local/include/gtsam/inference/Symbol.h:21,
                 from /home/tonirv/code/Kimera-RPGO/KimeraRPGO/utils/graph_utils.h:10,
                 from /home/tonirv/code/Kimera-RPGO/KimeraRPGO/utils/graph_utils.cpp:3:
/usr/local/include/gtsam/base/types.h:57:16: error: ‘uint64_t’ in namespace ‘std’ does not name a type
   typedef std::uint64_t Key;
                ^
In file included from /usr/local/include/gtsam/inference/Symbol.h:21:0,
                 from /home/tonirv/code/Kimera-RPGO/KimeraRPGO/utils/graph_utils.h:10,
                 from /home/tonirv/code/Kimera-RPGO/KimeraRPGO/utils/graph_utils.cpp:3:
/usr/local/include/gtsam/inference/Key.h:33:37: error: ‘Key’ was not declared in this scope
 typedef boost::function<std::string(Key)> KeyFormatter;
                                     ^
/usr/local/include/gtsam/inference/Key.h:33:41: error: template argument 1 is invalid
 typedef boost::function<std::string(Key)> KeyFormatter;
                                         ^
/usr/local/include/gtsam/inference/Key.h:36:47: error: ‘Key’ was not declared in this scope
 GTSAM_EXPORT std::string _defaultKeyFormatter(Key key);

Wasn't using the upstream gtsam, sorry for the noise!