Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] raspberrypi3_qt5we_defconfig fails to build qt5webengine
Date: Sun, 9 Dec 2018 23:17:07 +0100	[thread overview]
Message-ID: <20181209231707.103f56f9@gmx.net> (raw)
In-Reply-To: <20181209165328.1d320e03@windsurf>

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

  reply	other threads:[~2018-12-09 22:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-09 15:53 [Buildroot] raspberrypi3_qt5we_defconfig fails to build qt5webengine Thomas Petazzoni
2018-12-09 22:17 ` Peter Seiderer [this message]
2018-12-10  7:52   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181209231707.103f56f9@gmx.net \
    --to=ps.report@gmx.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox