Priority: Not Evaluated
Affects Version/s: 5.15.0
Fix Version/s: 6.0 (Next Major Release)
Component/s: Build System
Environment:Red Hat Enterprise Linux Workstation release 7.5 (Maipo)
GCC version 9.1.1 20190605 (Red Hat 9.1.1-2) (GCC)
I need to compile Qt 5.15.0 on Linux with xcb, glx and opengl desktop support.
My configure command is the following
configure -opensource -platform linux-g++17 -opengl desktop -qt-libjpeg -qt-libpng -xcb -xcb-xlib -no-icu -nomake examples -nomake tests -prefix
I have all the packages on that machine as recommended on https://wiki.qt.io/Building_Qt_5_from_Git
Yet, the configure fails reporting that the -xcb-xlib option is not usable because features.xib is not available with the error message.
ERROR: Feature 'xcb-xlib' was enabled, but the pre-condition 'features.xlib && libs.xcb_xlib' failed.
I have looked into the qtbase/src/gui/configure.json file and found
From what I figured out from that file, the X11 path is read from the mkspecs file for my configuration. However, in qtbase/mkspecs/linux-g++-64/qmake.conf, the paths referenced are
and this is not at all the configuration on my RedHat machine.
I changed the paths to
so that it matches my local configuration and my configuration command works now,
Would it be better to change the check in qtbase/src/gui/configure.json
to use a pkg-config pattern instead?
I have not tested it: I do not know if the Qt build system will handle possibly contradictory information for QMAKE_LIBDIR_X11 and QMAKE_LIBDIR_OPENGL: one coming from the qmake.defs and one from configure.json.