Error compiling rviz-visualization-plugin-tutorial [closed]
When I tried to follow the RViz visualization tutorial http://docs.ros.org/kinetic/api/rviz_plugin_tutorials/html/display_plugin_tutorial.html, specifically its ImuDisplay tutorial, I got the following compiler error:
/opt/ros/kinetic/include/rviz/config.h:40:16: fatal error: QMap: No such file or directory
The specific line number gives #include <QMap>
. which should be installed given that RViz uses Qt version 5.5.1 on my system. I double checked with sudo apt install qtbase5-dev
and it is confirmed to be installed on my system.
I even replaced my code with the example codes exactly, but the error stays the same. Any pointer of what to do next?
Any specific reason you're linking to the Indigo version of those tutorials, while you appear to be using Kinetic?
Sorry I put up the wrong link. I was indeed following the Kinetic version of the tutorial. I edited my post. Even though the versions are different, the source codes are exactly the same.