All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] raspberrypi3_qt5we_defconfig fails to build qt5webengine
@ 2018-12-09 15:53 Thomas Petazzoni
  2018-12-09 22:17 ` Peter Seiderer
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2018-12-09 15:53 UTC (permalink / raw)
  To: buildroot

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.
[...]
>>> 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
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] raspberrypi3_qt5we_defconfig fails to build qt5webengine
  2018-12-09 15:53 [Buildroot] raspberrypi3_qt5we_defconfig fails to build qt5webengine Thomas Petazzoni
@ 2018-12-09 22:17 ` Peter Seiderer
  2018-12-10  7:52   ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Seiderer @ 2018-12-09 22:17 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

On Sun, 9 Dec 2018 16:53:28 +0100, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:

> 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.
> [...]
> >>> 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?

Quick fix by:

diff --git a/package/qt5/qt5base/qmake.conf.in b/package/qt5/qt5base/qmake.conf.in
index f14527aa7f..150f84e45d 100644
--- a/package/qt5/qt5base/qmake.conf.in
+++ b/package/qt5/qt5base/qmake.conf.in
@@ -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
  endef

The 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

> 
> Best regards,
> 
> Thomas

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] raspberrypi3_qt5we_defconfig fails to build qt5webengine
  2018-12-09 22:17 ` Peter Seiderer
@ 2018-12-10  7:52   ` Thomas Petazzoni
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-12-10  7:52 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 9 Dec 2018 23:17:07 +0100, Peter Seiderer wrote:

> 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
>   endef
> 
> The rigth fix should be removing the first sed line, QMAKE_COMPILER is the
> compiler flavour and not a compiler path (see e.g. [1])...

Ah, ok. Thanks for looking into this.

> 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
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-10  7:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-09 15:53 [Buildroot] raspberrypi3_qt5we_defconfig fails to build qt5webengine Thomas Petazzoni
2018-12-09 22:17 ` Peter Seiderer
2018-12-10  7:52   ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.