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

ROS application using Qt5 qml

asked 2014-09-17 04:06:14 -0600

AmiraJr gravatar image

Hello All,

I am developing a ground station application for a mobile robot. I usually create the qt-ros package using catkin_create_qt_pkg. I recently updated to qtcreator 5.0.2 and qtquick 2. Since I want to use QML UI for the interface and c++ for the logic part. I changed my cmake to be able to use QT5. However i still get errors whenever I use any qtquick 2 library.

For example when I try to use qquickview to define a view:

QQuickView *view = new QQuickView();

I get this error: error: undefined reference to `QQuickView::QQuickView(QWindow*)'

My question is how can solve this ? And is it possible to use qt5/qml with cmake to develope GUI's for ROS applications.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-11-13 14:51:30 -0600

Murilo F. M. gravatar image

I'm not sure if you have already found a solution to your question, but...

I'm not using Qt5, I'm using Qt4, but given that your error is an undefined reference, it means the linker cannot find the QtQuick library.

As far as I can tell, for Qt5 and QtQuick 2, the required components/modules are QtQml and QtQuick.

Would that be the issue?

I hope it helps!

edit flag offensive delete link more

Question Tools



Asked: 2014-09-17 04:06:14 -0600

Seen: 1,887 times

Last updated: Nov 13 '14