Re: Error while compiling RTAB-Map with g2o support
Posted by
matlabbe on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Error-while-compiling-RTAB-Map-with-g2o-support-tp422p423.html
Hello,
Here on Ubuntu 14.04 Indigo with g2o (ros-indigo-libg2o), I have only this warning when building Graph.cpp:
[ 8%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Graph.cpp.o
In file included from /home/mathieu/workspace/rtabmap/corelib/src/toro3d/posegraph2.hh:47:0,
from /home/mathieu/workspace/rtabmap/corelib/src/toro3d/treeoptimizer2.hh:47,
from /home/mathieu/workspace/rtabmap/corelib/src/Graph.cpp:39:
/home/mathieu/workspace/rtabmap/corelib/src/toro3d/transformation2.hh: In constructor ‘AISNavigation::Transformation2<T>::Transformation2(const T&, const AISNavigation::Vector2<T>&)’:
/home/mathieu/workspace/rtabmap/corelib/src/toro3d/transformation2.hh:191:49: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 [enabled by default]
Transformation2(trans.x(), trans.y(), _theta){}
^
You have errors about "std" namespace not found. What s your GCC version? Here mine:
$ gcc --version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
cheers