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

[WIN10 ROS1]How to install 'Qt 4' in windows Melodic?

asked 2019-11-20 21:06:40 -0600

Konye gravatar image

Hello, I am a beginner on ROS and now trying a project which contains hector_slam package in WIN10. The build fails since I don't have QT4, I know that Melodic is now using Qt 5 and Ubuntu user can just install Qt 4 by running using sudo apt install qt4-default (see "version issue" for hector_slam in github).

As a Windows user, how could fix it or install Qt 4.

Error Details:

-- +++ processing catkin package: 'hector_geotiff'

-- ==> add_subdirectory(hector_slam/hector_geotiff)

-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy CMake Error at C:/opt/python27amd64/Lib/site-packages/cmake/data/share/cmake-3.15/Modules/FindQt4.cmake:1314 (message):

Found unsuitable Qt version "5.10.1" from C:/opt/rosdeps/x64/bin/qmake.exe, this code requires Qt 4.x

Call Stack (most recent call first): hector_slam/hector_geotiff/CMakeLists.txt:12 (find_package)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-11-20 22:28:57 -0600

OoeyGUI gravatar image

Qt4 has not been enabled in the Melodic build for Windows. Microsoft has no plans to enable mixing Qt4 and Qt5 on the Windows build.

Ideally Hector should be migrated to Qt5.

As an alternative, Cartographer works great on Windows (and we're in the process of fixing up OpenKarto depdendencies).

choco upgrade ros-melodic-cartographer_ros

edit flag offensive delete link more

Comments

Thanks for your answer. After I replace the components name in CMakeLists file for the error part in Hector from find_package(Qt4 4.6 COMPONENTS QtCore QtGui REQUIRED) to find_package(Qt5 COMPONENTS Core Gui REQUIRED) the error disappear, but not sure will it work correct actually since I still have some other errors for the project. I will try Cartographer if Hector cannot work.

Konye gravatar image Konye  ( 2019-11-21 00:06:49 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-11-20 21:06:40 -0600

Seen: 948 times

Last updated: Nov 20 '19