Ask Your Question
0

Qt 5 for ROS melodic

asked 2019-11-07 02:52:29 -0600

prex gravatar image

updated 2019-11-07 09:28:41 -0600

I'm wondering about the proper way to get Qt 5 for ROS melodic on Ubuntu 18.04. I searched for hours but couldn't find any recent tutorials. Last year, I developed this package where I used catkin_create_qt_pkg with qt_create and depending on qt_build and libqt4-dev. Since these packages are not available for ROS melodic, I can not compile the package anymore.

I've found and installed the following package: qt_gui, but without any hint what it does. I assume the qt_gui_cpp package installs Qt 5 and creates the bindings. Can someone give me an overview of what is needed and what these packages do? Is there a recent example for the package.xml and CMakeLists out there? I assume the source code is the same.

I installed the ROS Qt Creator Plug-in 4.9.2, but I assume this does just install a "ROS-ready" IDE without any Qt libraries, right?

I'm also wondering about the differences between ros-melodic-qt-gui, ros-melodic-libqt and ros-melodic-qt.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2019-11-08 04:59:44 -0600

prex gravatar image

updated 2019-11-10 12:07:05 -0600

Needed to make some changes to make the old Qt4 ROS Kinetic GUI compile with Qt5 ROS Melodic. These were:

It's now using only "non-ROS" Qt libraries.

I made a package template here: https://github.com/jstiefel/qt5_ros_m...

edit flag offensive delete link more
0

answered 2019-11-07 03:11:39 -0600

LeonhardEuler337 gravatar image

updated 2019-11-07 03:12:37 -0600

I believe I faced the same issue and solved it here. Maybe try changing the macros to Qt5?

edit flag offensive delete link more

Comments

The packages seem to be available. There is ros-melodic-qt-gui and there is ros-melodic-libqt. I just don't see how they are used...

prex gravatar imageprex ( 2019-11-07 07:38:24 -0600 )edit

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: 2019-11-07 02:52:29 -0600

Seen: 71 times

Last updated: Nov 10