Ask Your Question
1

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 2.8.12.2

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

http://pastebin.com/ac24neP5

This is a tarball of the full package. https://mega.co.nz/#!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
1

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,312 times

Last updated: Dec 01 '14