Error building rtabmap_ros

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error building rtabmap_ros

Mark
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Error building rtabmap_ros

matlabbe
Administrator

I tried on a fresh 14.04/Indigo machine and it builds with no errors. Make sure to update/reinstall the standalone library as in this update to new version instructions.

Also, you can try to remove the ROS build folder and rebuild the workspace:
$ rm -r ~/catkin_ws/build
$ cd catkin_ws
$ catkin_make
Reply | Threaded
Open this post in threaded view
|

Re: Error building rtabmap_ros

Mark
It is working without problems on two other machines, i cant figure out whats the problem on this machine. :/

I already reinstalled the library an rebuilt the whole workspace. The error is now:

[ 59%] [ 59%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/moc_OrbitOrientedViewController.cxx.o
Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/moc_MapGraphDisplay.cxx.o
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:39:27: error: ‘ros::message_traits::rtabmap_ros’ has not been declared
 void ros::message_traits::rtabmap_ros::MapGraphDisplay::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
                           ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:47:49: error: ‘ros::message_traits::rtabmap_ros’ has not been declared
 const QMetaObjectExtraData ros::message_traits::rtabmap_ros::MapGraphDisplay::staticMetaObjectExtraData = {
                                                 ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:51:40: error: ‘ros::message_traits::rtabmap_ros’ has not been declared
 const QMetaObject ros::message_traits::rtabmap_ros::MapGraphDisplay::staticMetaObject = {
                                        ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:60:41: error: ‘ros::message_traits::rtabmap_ros’ has not been declared
 const QMetaObject *ros::message_traits::rtabmap_ros::MapGraphDisplay::metaObject() const
                                         ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:60:84: error: non-member function ‘const QMetaObject* metaObject()’ cannot have cv-qualifier
 const QMetaObject *ros::message_traits::rtabmap_ros::MapGraphDisplay::metaObject() const
                                                                                    ^
In file included from /usr/include/qt4/QtCore/QObject:1:0,
                 from /opt/ros/indigo/include/rviz/display_context.h:34,
                 from /opt/ros/indigo/include/rviz/message_filter_display.h:40,
                 from /home/mark/catkin_ws/build/rtabmap_ros/src/rviz/../../../../src/rtabmap_ros/src/rviz/MapGraphDisplay.h:34,
                 from /home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:9:
/usr/include/qt4/QtCore/qobject.h: In function ‘const QMetaObject* metaObject()’:
/usr/include/qt4/QtCore/qobject.h:320:33: error: ‘QScopedPointer<QObjectData> QObject::d_ptr’ is protected
     QScopedPointer<QObjectData> d_ptr;
                                 ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:62:21: error: within this context
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                     ^
In file included from /usr/include/qt4/QtCore/QObject:1:0,
                 from /opt/ros/indigo/include/rviz/display_context.h:34,
                 from /opt/ros/indigo/include/rviz/message_filter_display.h:40,
                 from /home/mark/catkin_ws/build/rtabmap_ros/src/rviz/../../../../src/rtabmap_ros/src/rviz/MapGraphDisplay.h:34,
                 from /home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:9:
/usr/include/qt4/QtCore/qobject.h:320:33: error: invalid use of non-static data member ‘QObject::d_ptr’
     QScopedPointer<QObjectData> d_ptr;
                                 ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:62:21: error: from this location
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                     ^
In file included from /usr/include/qt4/QtCore/QObject:1:0,
                 from /opt/ros/indigo/include/rviz/display_context.h:34,
                 from /opt/ros/indigo/include/rviz/message_filter_display.h:40,
                 from /home/mark/catkin_ws/build/rtabmap_ros/src/rviz/../../../../src/rtabmap_ros/src/rviz/MapGraphDisplay.h:34,
                 from /home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:9:
/usr/include/qt4/QtCore/qobject.h:320:33: error: ‘QScopedPointer<QObjectData> QObject::d_ptr’ is protected
     QScopedPointer<QObjectData> d_ptr;
                                 ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:62:50: error: within this context
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                                                  ^
In file included from /usr/include/qt4/QtCore/QObject:1:0,
                 from /opt/ros/indigo/include/rviz/display_context.h:34,
                 from /opt/ros/indigo/include/rviz/message_filter_display.h:40,
                 from /home/mark/catkin_ws/build/rtabmap_ros/src/rviz/../../../../src/rtabmap_ros/src/rviz/MapGraphDisplay.h:34,
                 from /home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:9:
/usr/include/qt4/QtCore/qobject.h:320:33: error: invalid use of non-static data member ‘QObject::d_ptr’
     QScopedPointer<QObjectData> d_ptr;
                                 ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:62:50: error: from this location
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                                                  ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx: At global scope:
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:65:28: error: ‘ros::message_traits::rtabmap_ros’ has not been declared
 void *ros::message_traits::rtabmap_ros::MapGraphDisplay::qt_metacast(const char *_clname)
                            ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx: In function ‘void* qt_metacast(const char*)’:
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:69:47: error: expected type-specifier before ‘MapGraphDisplay’
         return static_cast<void*>(const_cast< MapGraphDisplay*>(this));
                                               ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:69:47: error: expected ‘>’ before ‘MapGraphDisplay’
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:69:47: error: expected ‘(’ before ‘MapGraphDisplay’
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:69:47: error: ‘MapGraphDisplay’ was not declared in this scope
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:69:47: note: suggested alternative:
In file included from /home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:9:0:
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/../../../../src/rtabmap_ros/src/rviz/MapGraphDisplay.h:56:7: note:   ‘rtabmap_ros::MapGraphDisplay’
 class MapGraphDisplay: public MessageFilterDisplay<rtabmap_ros::MapData>
       ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:69:63: error: expected primary-expression before ‘>’ token
         return static_cast<void*>(const_cast< MapGraphDisplay*>(this));
                                                               ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:69:65: error: invalid use of ‘this’ in non-member function
         return static_cast<void*>(const_cast< MapGraphDisplay*>(this));
                                                                 ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:69:71: error: expected ‘)’ before ‘;’ token
         return static_cast<void*>(const_cast< MapGraphDisplay*>(this));
                                                                       ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:71:47: error: cannot call member function ‘virtual void* rviz::_RosTopicDisplay::qt_metacast(const char*)’ without object
     return QMocSuperClass::qt_metacast(_clname);
                                               ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx: At global scope:
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:74:26: error: ‘ros::message_traits::rtabmap_ros’ has not been declared
 int ros::message_traits::rtabmap_ros::MapGraphDisplay::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
                          ^
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx: In function ‘int qt_metacall(QMetaObject::Call, int, void**)’:
/home/mark/catkin_ws/build/rtabmap_ros/src/rviz/moc_MapGraphDisplay.cxx:77:50: error: cannot call member function ‘virtual int rviz::_RosTopicDisplay::qt_metacall(QMetaObject::Call, int, void**)’ without object
     _id = QMocSuperClass::qt_metacall(_c, _id, _a);
                                                  ^
make[2]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/moc_MapGraphDisplay.cxx.o] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all] Error 2
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: Error building rtabmap_ros

Mark
I reinstalled Ubuntu and it works now. Curious problem.