raspberrypi3_qt5we_defconfig fails to build qt5webengine
Hello Peter and Ga?l,
According to
https://gitlab.com/buildroot.org/buildroot/-/jobs/131217091, the raspberrypi3_qt5we_defconfig fails to build qt5webengine:
[...]
Qt WebEngine on Linux requires clang or GCC.
QtWebEngine will not be built.
[...]
Quoted 1 line
Quoted 1 line
Quoted 1 line
qt5webengine 5.11.2 Installing to target
cp -dpf /builds/buildroot.org/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libQt5WebEngine*.so.* /builds/buildroot.org/buildroot/output/target/usr/lib
cp: cannot stat '/builds/buildroot.org/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libQt5WebEngine*.so.*': No such file or directory package/pkg-generic.mk:315: recipe for target '/builds/buildroot.org/buildroot/output/build/qt5webengine-5.11.2/.stamp_target_installed' failed
Do you have any idea?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hello Thomas,
Quoted 10 lines · Thomas Petazzoni
Hello Peter and Ga?l,
According to
https://gitlab.com/buildroot.org/buildroot/-/jobs/131217091, theraspberrypi3_qt5we_defconfigfails to build qt5webengine:[...]
Qt WebEngine on Linux requires clang or GCC.
QtWebEngine will not be built.
[...]
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
qt5webengine 5.11.2 Installing to target
cp -dpf /builds/buildroot.org/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libQt5WebEngine*.so.* /builds/buildroot.org/buildroot/output/target/usr/lib
cp: cannot stat '/builds/buildroot.org/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libQt5WebEngine*.so.*': No such file or directorypackage/pkg-generic.mk:315: recipe for target '/builds/buildroot.org/buildroot/output/build/qt5webengine-5.11.2/.stamp_target_installed' failedDo you have any idea?
Quick fix by:
package/qt5/qt5base/qmake.conf.in +1 -0
@@ -9,6 +9,7 @@ include(../common/linux_device_pre.conf) # modifications to g++-unix.conf +QMAKE_COMPILER = gcc QMAKE_CC = $${CROSS_COMPILE}gcc QMAKE_CXX = $${CROSS_COMPILE}g++
But QMAKE_COMPILER should already be set in mkspecs/common/g++-base.conf, but is changed by buildroot package/qt5/qt5base/qt5base.mk from 'gcc' to '/usr/bin/gcc' by
# This allows to use ccache when available
define QT5BASE_CONFIGURE_HOSTCC
$(SED) 's,^QMAKE_COMPILER\s*=.*,QMAKE_COMPILER = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf
$(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf
$(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX),' $(@D)/mkspecs/common/g++-base.conf
endefThe rigth fix should be removing the first sed line, QMAKE_COMPILER is the compiler flavour and not a compiler path (see e.g. [1])...
Will send a proper patch (after some testing) soon...
Regards,
Peter
[1] http://code.qt.io/cgit/qt/qtbase.git/commit/?id=fff5a8f9c987e5e285b2665c4d0a1c5bbe3e6276
Quoted 4 lines
Best regards,
Thomas
Hello,
Quoted 11 lines · Peter Seiderer
But
QMAKE_COMPILERshould already be set inmkspecs/common/g++-base.conf, but is changed by buildrootpackage/qt5/qt5base/qt5base.mkfrom 'gcc' to '/usr/bin/gcc' by# This allows to use ccache when available define QT5BASE_CONFIGURE_HOSTCC $(SED) 's,^QMAKE_COMPILER\s*=.*,QMAKE_COMPILER = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf $(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf $(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX),' $(@D)/mkspecs/common/g++-base.conf endef
Quoted 2 lines
The rigth fix should be removing the first sed line,
QMAKE_COMPILERis the compiler flavour and not a compiler path (see e.g. [1])...
Ah, ok. Thanks for looking into this.
Quoted 1 line
Will send a proper patch (after some testing) soon...
Thanks a lot, and sorry for this breakage, I caused it when adding the ccache stuff for HOSTCC in qt5base.mk.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com