buildfarm: Melodic build with qt_gui_cpp dependency doesn't install qtbase5-dev
Hi,
I'm trying to release a package in Melodic (find_object_2d) that depends on qt_gui_cpp (in its package.xml ). Normally, in previous distributions (Lunar, Kinetic, Indigo...), qt_gui_cpp will install qtbase5-dev indirectly (qtbase5-dev is in package.xml of qt_gui_cpp). Then find_object_2d build will be able to find Qt5. But in Melodic, the builds fail: http://build.ros.org/job/Mbin_uB64__f... http://build.ros.org/job/Mbin_uA64__f... http://build.ros.org/job/Mbin_ubv8_uB... http://build.ros.org/job/Mbin_ubhf_uB...
with this error:
12:21:57 CMake Error at /usr/share/cmake-3.10/Modules/FindQt4.cmake:1320 (message):
12:21:57 Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
12:21:57 Call Stack (most recent call first):
12:21:57 CMakeLists.txt:47 (FIND_PACKAGE)
The error is about Qt4 because in find_object_2d's CMakeLists.txt, it searches for Qt5 first (optional), then if not found i searches for Qt4 (required):
# look for Qt5 before Qt4
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Network QUIET)
IF(NOT Qt5_FOUND)
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtNetwork REQUIRED)
ENDIF(NOT Qt5_FOUND)
I can reproduce the error with melodic docker desktop (not full):
$ docker run -it osrf/ros:melodic-desktop-bionic
$ cd
$ mkdir catkin_ws
$ cd catkin_ws
$ mkdir src
$ cd src
$ catkin_init_workspace
$ git clone https://github.com/introlab/find-object.git
$ cd ..
$ catkin_make
The error above appears. To solve the problem, I should explicitly install qt5:
$ apt-get install qtbase5-dev
$ catkin_make
or
$ rosdep install qt_gui_cpp
$ catkin_make
The question is why qt_gui_cpp doesn't install qtbase5-dev?https://github.com/ros-visualization/...
Original issue link: https://github.com/introlab/find-obje...