ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

When using rqt with Qt5, does not find <QObject> in ROS internal "plugin_bridge.h"

asked 2014-11-17 06:53:42 -0500

igork gravatar image

updated 2014-11-17 11:02:31 -0500

I am trying to build the C++ example from the RQT tutorial, with a CMakeList and structure taken from rqt_image_view. I use Qt5 on Ubuntu with Cmake

When I run catkin_make everything in my project seems to run fine, but then it throws the following error.

In file included from /opt/ros/indigo/include/qt_gui_cpp/plugin.h:36:0,
             from /opt/ros/indigo/include/rqt_gui_cpp/plugin.h:36,
             from my_catkin_ws/net_viz/include/net_viz/test.h:5
             from my_catkin_ws/net_viz/src/net_viz/test.cpp:1
/opt/ros/indigo/include/qt_gui_cpp/plugin_bridge.h:36:19: fatal error: QObject: No such file or directory
#include <QObject>

It seems like it does not include Qt5 when linking with ros internal headers. Here is a gist of my CMakeLists.txt

This is a tarball of the full package.!lMs1iJBS!8sJXIgW...

I don't know how to fix this, I thought about including qt5 explicitly, but it does get found right? And I also would not know where I can include it with the plugin_bridge.h

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-01 12:16:47 -0500

Dirk Thomas gravatar image

rqt currently only supports Qt 4.x.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-11-17 06:53:42 -0500

Seen: 1,988 times

Last updated: Dec 01 '14