Error compiling rviz-visualization-plugin-tutorial [closed]

asked 2020-03-19 18:26:12 -0500

Wilkson gravatar image

updated 2020-03-20 08:30:47 -0500

When I tried to follow the RViz visualization tutorial, 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?

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by Wilkson
close date 2020-03-25 19:42:41.407967


Any specific reason you're linking to the Indigo version of those tutorials, while you appear to be using Kinetic?

gvdhoorn gravatar image gvdhoorn  ( 2020-03-20 05:14:24 -0500 )edit

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.

Wilkson gravatar image Wilkson  ( 2020-03-20 08:29:10 -0500 )edit