编译谷歌cartographer时候以上错误;
解决方法,打开cartographer_rviz下的drawable_submap.h和submaps_display.h分别在程序首尾添加#ifndef Q_MOC_RUN和#endif。
add to the top:
#ifndef Q_MOC_RUN
add to the bottom:
#endif
然后重新编译: catkin_make_isolated --install --use-ninja,顺利通过。
问题是qt4.*的编译需要用moc,这个东东和boost不大兼容所致,貌似qt5已经解决了这个的bug。