* [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
@ 2020-12-20 14:57 Peter Seiderer
0 siblings, 0 replies; 11+ messages in thread
From: Peter Seiderer @ 2020-12-20 14:57 UTC (permalink / raw)
To: buildroot
- add optional host-freetype dependency
Fixes:
Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config freetype2
Returned 1.
stderr:
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Could not run pkg-config.
See //build/linux/BUILD.gn:24:3: whence it was called.
pkg_config("freetype_from_pkgconfig") {
^--------------------------------------
See //build/config/freetype/BUILD.gn:10:24: which caused the file to be included.
public_configs = [ "//build/linux:freetype_from_pkgconfig" ]
^--------------------------------------
Project ERROR: GN run error!
make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 3
make[3]: *** [Makefile:79: sub-core-make_first] Error 2
make[2]: *** [Makefile:49: sub-src-make_first] Error 2
- add optiobal hist-libjpeg dependency
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/917539230
Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config libjpeg
Returned 1.
stderr:
Package libjpeg was not found in the pkg-config search path.
Perhaps you should add the directory containing `libjpeg.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libjpeg', required by 'virtual:world', not found
Could not run pkg-config.
See //third_party/BUILD.gn:17:3: whence it was called.
pkg_config("system_libjpeg") {
^-----------------------------
See //third_party/blink/renderer/platform/BUILD.gn:159:5: which caused the file to be included.
"//third_party:jpeg",
^-------------------
Project ERROR: GN run error!
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
package/qt5/qt5webengine/qt5webengine.mk | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/qt5/qt5webengine/qt5webengine.mk b/package/qt5/qt5webengine/qt5webengine.mk
index 64c9c96cc2..8ab50a0fbf 100644
--- a/package/qt5/qt5webengine/qt5webengine.mk
+++ b/package/qt5/qt5webengine/qt5webengine.mk
@@ -29,6 +29,14 @@ endif
QT5WEBENGINE_DEPENDENCIES += host-libpng host-libnss libnss
+ifeq ($(BR2_PACKAGE_QT5BASE_FONTCONFIG),y)
+QT5WEBENGINE_DEPENDENCIES += host-freetype
+endif
+
+ifeq ($(BR2_PACKAGE_QT5BASE_JPEG),y)
+QT5WEBENGINE_DEPENDENCIES += host-libjpeg
+endif
+
QT5WEBENGINE_CONF_OPTS += WEBENGINE_CONFIG+=use_system_ffmpeg
ifeq ($(BR2_PACKAGE_QT5WEBENGINE_PROPRIETARY_CODECS),y)
--
2.29.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH v1 0/2] Raspberry Pi - bump kernel version to 967d45b (5.10.1)
@ 2020-12-21 20:39 Peter Seiderer
2020-12-21 20:39 ` [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency Peter Seiderer
0 siblings, 1 reply; 11+ messages in thread
From: Peter Seiderer @ 2020-12-21 20:39 UTC (permalink / raw)
To: buildroot
Raspberry Pi - bump kernel version to 967d45b (5.10.1).
Tested with the following defconfig on RPi 4 (with
'dtoverlay=vc4-kms-v3d-pi4' enabled):
BR2_aarch64=y
BR2_cortex_a72=y
BR2_ARM_FPU_VFPV4=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_PACKAGE_GLIBC_UTILS=y
BR2_BINUTILS_VERSION_2_35_X=y
BR2_GCC_VERSION_10_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_SYSTEM_DHCP="eth0"
BR2_GENERATE_LOCALE="en_US"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi4-64/post-build.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi4-64/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="--add-miniuart-bt-overlay --aarch64"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,967d45b29ca2902f031b867809d72e3b3d623e7a)/linux-967d45b29ca2902f031b867809d72e3b3d623e7a.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b"
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
BR2_PACKAGE_STRACE=y
BR2_PACKAGE_DEJAVU=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5BASE_EXAMPLES=y
BR2_PACKAGE_QT5BASE_GUI=y
BR2_PACKAGE_QT5BASE_OPENGL_LIB=y
BR2_PACKAGE_QT5BASE_EGLFS=y
BR2_PACKAGE_QT5BASE_FONTCONFIG=y
BR2_PACKAGE_QT5BASE_HARFBUZZ=y
BR2_PACKAGE_QT5BASE_GIF=y
BR2_PACKAGE_QT5BASE_JPEG=y
BR2_PACKAGE_QT5BASE_PNG=y
BR2_PACKAGE_RPI_FIRMWARE=y
BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_ROOTFS_EXT2_SIZE="384M"
# BR2_TARGET_ROOTFS_TAR is not set
BR2_PACKAGE_HOST_DOSFSTOOLS=y
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_MTOOLS=y
Peter Seiderer (2):
configs/raspberrypi*: bump kernel version to 967d45b (5.10.1)
package/rpi-firmware: bump version to d016a6e
configs/raspberrypi0_defconfig | 6 +++---
configs/raspberrypi0w_defconfig | 6 +++---
configs/raspberrypi2_defconfig | 6 +++---
configs/raspberrypi3_64_defconfig | 6 +++---
configs/raspberrypi3_defconfig | 6 +++---
configs/raspberrypi3_qt5we_defconfig | 6 +++---
configs/raspberrypi4_64_defconfig | 6 +++---
configs/raspberrypi4_defconfig | 6 +++---
configs/raspberrypi_defconfig | 6 +++---
package/rpi-firmware/rpi-firmware.hash | 2 +-
package/rpi-firmware/rpi-firmware.mk | 2 +-
11 files changed, 29 insertions(+), 29 deletions(-)
--
2.29.2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2020-12-21 20:39 [Buildroot] [PATCH v1 0/2] Raspberry Pi - bump kernel version to 967d45b (5.10.1) Peter Seiderer
@ 2020-12-21 20:39 ` Peter Seiderer
2020-12-30 10:18 ` Thomas Petazzoni
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Peter Seiderer @ 2020-12-21 20:39 UTC (permalink / raw)
To: buildroot
- add optional host-freetype dependency
Fixes:
Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config freetype2
Returned 1.
stderr:
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Could not run pkg-config.
See //build/linux/BUILD.gn:24:3: whence it was called.
pkg_config("freetype_from_pkgconfig") {
^--------------------------------------
See //build/config/freetype/BUILD.gn:10:24: which caused the file to be included.
public_configs = [ "//build/linux:freetype_from_pkgconfig" ]
^--------------------------------------
Project ERROR: GN run error!
make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 3
make[3]: *** [Makefile:79: sub-core-make_first] Error 2
make[2]: *** [Makefile:49: sub-src-make_first] Error 2
- add optiobal hist-libjpeg dependency
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/917539230
Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config libjpeg
Returned 1.
stderr:
Package libjpeg was not found in the pkg-config search path.
Perhaps you should add the directory containing `libjpeg.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libjpeg', required by 'virtual:world', not found
Could not run pkg-config.
See //third_party/BUILD.gn:17:3: whence it was called.
pkg_config("system_libjpeg") {
^-----------------------------
See //third_party/blink/renderer/platform/BUILD.gn:159:5: which caused the file to be included.
"//third_party:jpeg",
^-------------------
Project ERROR: GN run error!
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
package/qt5/qt5webengine/qt5webengine.mk | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/qt5/qt5webengine/qt5webengine.mk b/package/qt5/qt5webengine/qt5webengine.mk
index 64c9c96cc2..8ab50a0fbf 100644
--- a/package/qt5/qt5webengine/qt5webengine.mk
+++ b/package/qt5/qt5webengine/qt5webengine.mk
@@ -29,6 +29,14 @@ endif
QT5WEBENGINE_DEPENDENCIES += host-libpng host-libnss libnss
+ifeq ($(BR2_PACKAGE_QT5BASE_FONTCONFIG),y)
+QT5WEBENGINE_DEPENDENCIES += host-freetype
+endif
+
+ifeq ($(BR2_PACKAGE_QT5BASE_JPEG),y)
+QT5WEBENGINE_DEPENDENCIES += host-libjpeg
+endif
+
QT5WEBENGINE_CONF_OPTS += WEBENGINE_CONFIG+=use_system_ffmpeg
ifeq ($(BR2_PACKAGE_QT5WEBENGINE_PROPRIETARY_CODECS),y)
--
2.29.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2020-12-21 20:39 ` [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency Peter Seiderer
@ 2020-12-30 10:18 ` Thomas Petazzoni
2021-01-19 21:22 ` Thomas Petazzoni
2022-01-09 13:27 ` Thomas Petazzoni
2022-01-16 10:38 ` James Hilliard
2 siblings, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2020-12-30 10:18 UTC (permalink / raw)
To: buildroot
Hello Peter,
On Mon, 21 Dec 2020 21:39:51 +0100
Peter Seiderer <ps.report@gmx.net> wrote:
> - add optional host-freetype dependency
>
> Fixes:
>
> Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config freetype2
> Returned 1.
> stderr:
>
> Package freetype2 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `freetype2.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'freetype2', required by 'virtual:world', not found
> Could not run pkg-config.
>
> See //build/linux/BUILD.gn:24:3: whence it was called.
> pkg_config("freetype_from_pkgconfig") {
> ^--------------------------------------
> See //build/config/freetype/BUILD.gn:10:24: which caused the file to be included.
> public_configs = [ "//build/linux:freetype_from_pkgconfig" ]
> ^--------------------------------------
> Project ERROR: GN run error!
> make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 3
> make[3]: *** [Makefile:79: sub-core-make_first] Error 2
> make[2]: *** [Makefile:49: sub-src-make_first] Error 2
>
> - add optiobal hist-libjpeg dependency
>
> Fixes:
>
> https://gitlab.com/buildroot.org/buildroot/-/jobs/917539230
>
> Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config libjpeg
> Returned 1.
> stderr:
> Package libjpeg was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libjpeg.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'libjpeg', required by 'virtual:world', not found
> Could not run pkg-config.
> See //third_party/BUILD.gn:17:3: whence it was called.
> pkg_config("system_libjpeg") {
> ^-----------------------------
> See //third_party/blink/renderer/platform/BUILD.gn:159:5: which caused the file to be included.
> "//third_party:jpeg",
> ^-------------------
> Project ERROR: GN run error!
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> package/qt5/qt5webengine/qt5webengine.mk | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/package/qt5/qt5webengine/qt5webengine.mk b/package/qt5/qt5webengine/qt5webengine.mk
> index 64c9c96cc2..8ab50a0fbf 100644
> --- a/package/qt5/qt5webengine/qt5webengine.mk
> +++ b/package/qt5/qt5webengine/qt5webengine.mk
> @@ -29,6 +29,14 @@ endif
>
> QT5WEBENGINE_DEPENDENCIES += host-libpng host-libnss libnss
>
> +ifeq ($(BR2_PACKAGE_QT5BASE_FONTCONFIG),y)
> +QT5WEBENGINE_DEPENDENCIES += host-freetype
> +endif
> +
> +ifeq ($(BR2_PACKAGE_QT5BASE_JPEG),y)
> +QT5WEBENGINE_DEPENDENCIES += host-libjpeg
> +endif
This looks really odd. Why would these target-related features require
host-freetype and host-libjpeg ? Aren't we instead seeing some
pkg-config issue where it's trying to find freetype/libjpeg for the
target, but it for some reason doesn't work, and tries to find them for
the host ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2020-12-30 10:18 ` Thomas Petazzoni
@ 2021-01-19 21:22 ` Thomas Petazzoni
2021-01-21 21:03 ` Peter Seiderer
0 siblings, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2021-01-19 21:22 UTC (permalink / raw)
To: buildroot
Hello Peter,
On Wed, 30 Dec 2020 11:18:23 +0100
Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> > +ifeq ($(BR2_PACKAGE_QT5BASE_FONTCONFIG),y)
> > +QT5WEBENGINE_DEPENDENCIES += host-freetype
> > +endif
> > +
> > +ifeq ($(BR2_PACKAGE_QT5BASE_JPEG),y)
> > +QT5WEBENGINE_DEPENDENCIES += host-libjpeg
> > +endif
>
> This looks really odd. Why would these target-related features require
> host-freetype and host-libjpeg ? Aren't we instead seeing some
> pkg-config issue where it's trying to find freetype/libjpeg for the
> target, but it for some reason doesn't work, and tries to find them for
> the host ?
Do you have some further feedback on this issue ?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2021-01-19 21:22 ` Thomas Petazzoni
@ 2021-01-21 21:03 ` Peter Seiderer
2021-01-21 21:09 ` Thomas Petazzoni
0 siblings, 1 reply; 11+ messages in thread
From: Peter Seiderer @ 2021-01-21 21:03 UTC (permalink / raw)
To: buildroot
Hello Thomas,
On Tue, 19 Jan 2021 22:22:34 +0100, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> Hello Peter,
>
> On Wed, 30 Dec 2020 11:18:23 +0100
> Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
>
> > > +ifeq ($(BR2_PACKAGE_QT5BASE_FONTCONFIG),y)
> > > +QT5WEBENGINE_DEPENDENCIES += host-freetype
> > > +endif
> > > +
> > > +ifeq ($(BR2_PACKAGE_QT5BASE_JPEG),y)
> > > +QT5WEBENGINE_DEPENDENCIES += host-libjpeg
> > > +endif
> >
> > This looks really odd. Why would these target-related features require
> > host-freetype and host-libjpeg ? Aren't we instead seeing some
> > pkg-config issue where it's trying to find freetype/libjpeg for the
> > target, but it for some reason doesn't work, and tries to find them for
> > the host ?
>
> Do you have some further feedback on this issue ?
Did try to find out where the mismatch comes from...., but without success...
The best solution/hack so far is:
--- a/package/qt5/qt5webengine/host-pkg-config.in
+++ b/package/qt5/qt5webengine/host-pkg-config.in
@@ -2,5 +2,5 @@
PKG_CONFIG_SYSROOT_DIR="/" \
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
-PKG_CONFIG_LIBDIR="@HOST_DIR@/lib/pkgconfig:@HOST_DIR@/share/pkgconfig" \
+PKG_CONFIG_LIBDIR="@HOST_DIR@/lib/pkgconfig:@HOST_DIR@/share/pkgconfig:@SYSROOT@/usr/lib/pkgconfig" \
exec @HOST_DIR@/bin/pkgconf "$@"
--- a/package/qt5/qt5webengine/qt5webengine.mk
+++ b/package/qt5/qt5webengine/qt5webengine.mk
@@ -54,7 +54,7 @@ QT5WEBENGINE_PRE_CONFIGURE_HOOKS += QT5WEBENGINE_PYTHON2_SYMLINK
QT5WEBENGINE_ENV += NINJAFLAGS="-j$(PARALLEL_JOBS)"
define QT5WEBENGINE_CREATE_HOST_PKG_CONFIG
- sed s%@HOST_DIR@%$(HOST_DIR)%g $(QT5WEBENGINE_PKGDIR)/host-pkg-config.in > $(@D)/host-bin/host-pkg-config
+ sed s%@HOST_DIR@%$(HOST_DIR)%g $(QT5WEBENGINE_PKGDIR)/host-pkg-config.in | sed s%@SYSROOT@%$(STAGING_DIR)%g > $(@D)/host-bin/host-pkg-config
chmod +x $(@D)/host-bin/host-pkg-config
endef
QT5WEBENGINE_PRE_CONFIGURE_HOOKS += QT5WEBENGINE_CREATE_HOST_PKG_CONFIG
Regards,
Peter
>
> Thanks!
>
> Thomas
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2021-01-21 21:03 ` Peter Seiderer
@ 2021-01-21 21:09 ` Thomas Petazzoni
0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2021-01-21 21:09 UTC (permalink / raw)
To: buildroot
Hello Peter,
On Thu, 21 Jan 2021 22:03:00 +0100
Peter Seiderer <ps.report@gmx.net> wrote:
> Did try to find out where the mismatch comes from...., but without success...
>
> The best solution/hack so far is:
>
> --- a/package/qt5/qt5webengine/host-pkg-config.in
> +++ b/package/qt5/qt5webengine/host-pkg-config.in
> @@ -2,5 +2,5 @@
> PKG_CONFIG_SYSROOT_DIR="/" \
> PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
> -PKG_CONFIG_LIBDIR="@HOST_DIR@/lib/pkgconfig:@HOST_DIR@/share/pkgconfig" \
> +PKG_CONFIG_LIBDIR="@HOST_DIR@/lib/pkgconfig:@HOST_DIR@/share/pkgconfig:@SYSROOT@/usr/lib/pkgconfig" \
> exec @HOST_DIR@/bin/pkgconf "$@"
>
>
> --- a/package/qt5/qt5webengine/qt5webengine.mk
> +++ b/package/qt5/qt5webengine/qt5webengine.mk
> @@ -54,7 +54,7 @@ QT5WEBENGINE_PRE_CONFIGURE_HOOKS += QT5WEBENGINE_PYTHON2_SYMLINK
> QT5WEBENGINE_ENV += NINJAFLAGS="-j$(PARALLEL_JOBS)"
>
> define QT5WEBENGINE_CREATE_HOST_PKG_CONFIG
> - sed s%@HOST_DIR@%$(HOST_DIR)%g $(QT5WEBENGINE_PKGDIR)/host-pkg-config.in > $(@D)/host-bin/host-pkg-config
> + sed s%@HOST_DIR@%$(HOST_DIR)%g $(QT5WEBENGINE_PKGDIR)/host-pkg-config.in | sed s%@SYSROOT@%$(STAGING_DIR)%g > $(@D)/host-bin/host-pkg-config
> chmod +x $(@D)/host-bin/host-pkg-config
Ouch, but this is also very wrong, it makes host-pkg-config (which is
there to query results about native libraries), return results for
cross-compiled libraries :-/
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2020-12-21 20:39 ` [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency Peter Seiderer
2020-12-30 10:18 ` Thomas Petazzoni
@ 2022-01-09 13:27 ` Thomas Petazzoni
2022-01-09 13:44 ` Thomas Petazzoni
2022-01-15 23:03 ` Peter Seiderer
2022-01-16 10:38 ` James Hilliard
2 siblings, 2 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2022-01-09 13:27 UTC (permalink / raw)
To: Peter Seiderer
Cc: Arthur Courtel, Mahyar Koshkouei, Gaël Portay,
Julien Corjon, buildroot, Martin Bark, Maxime Hadjinlian
On Mon, 21 Dec 2020 21:39:51 +0100
Peter Seiderer <ps.report@gmx.net> wrote:
> - add optional host-freetype dependency
>
> Fixes:
>
> Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config freetype2
> Returned 1.
> stderr:
>
> Package freetype2 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `freetype2.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'freetype2', required by 'virtual:world', not found
> Could not run pkg-config.
>
> See //build/linux/BUILD.gn:24:3: whence it was called.
> pkg_config("freetype_from_pkgconfig") {
> ^--------------------------------------
> See //build/config/freetype/BUILD.gn:10:24: which caused the file to be included.
> public_configs = [ "//build/linux:freetype_from_pkgconfig" ]
> ^--------------------------------------
> Project ERROR: GN run error!
> make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 3
> make[3]: *** [Makefile:79: sub-core-make_first] Error 2
> make[2]: *** [Makefile:49: sub-src-make_first] Error 2
I am falling into this issue while building the following defconfig:
BR2_arm=y
BR2_arm1176jzf_s=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5WEBENGINE=y
BR2_PACKAGE_RPI_USERLAND=y
Did you had the chance to investigate more deeply why having fontconfig
support in Qt leads qt5webengine wanting to find freetype2 on the host?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2022-01-09 13:27 ` Thomas Petazzoni
@ 2022-01-09 13:44 ` Thomas Petazzoni
2022-01-15 23:04 ` Peter Seiderer
2022-01-15 23:03 ` Peter Seiderer
1 sibling, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2022-01-09 13:44 UTC (permalink / raw)
To: Peter Seiderer
Cc: Arthur Courtel, Mahyar Koshkouei, Gaël Portay,
Julien Corjon, buildroot, Martin Bark, Maxime Hadjinlian
On Sun, 9 Jan 2022 14:27:48 +0100
Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> I am falling into this issue while building the following defconfig:
>
> BR2_arm=y
> BR2_arm1176jzf_s=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> BR2_PACKAGE_QT5=y
> BR2_PACKAGE_QT5WEBENGINE=y
> BR2_PACKAGE_RPI_USERLAND=y
>
> Did you had the chance to investigate more deeply why having fontconfig
> support in Qt leads qt5webengine wanting to find freetype2 on the host?
Interestingly, in commit
https://github.com/meta-qt5/meta-qt5/commit/280487f20bca829527a597d6263b0344a01917ac#diff-f0ffde666f6ff0282f8400203b3ba20968494d3c7245106eca761bd79baa1c78R26
the meta-qt5 layer, when upgrading Qt to 5.15.2 added jpeg-native and
freetype-native as new unconditional dependencies.
But there are no explanations. Is it really because the Chromium stuff
is building a host tool with freetype/jpeg, or is it just a workaround
for some incorrect behavior of the Chromium build process that needs
freetype/jpeg on the target, but checks for them on the host?
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2022-01-09 13:44 ` Thomas Petazzoni
@ 2022-01-15 23:04 ` Peter Seiderer
0 siblings, 0 replies; 11+ messages in thread
From: Peter Seiderer @ 2022-01-15 23:04 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: Arthur Courtel, Mahyar Koshkouei, Gaël Portay,
Julien Corjon, buildroot, Martin Bark, Maxime Hadjinlian
Hello Thomas,
On Sun, 9 Jan 2022 14:44:30 +0100, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> On Sun, 9 Jan 2022 14:27:48 +0100
> Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
>
> > I am falling into this issue while building the following defconfig:
> >
> > BR2_arm=y
> > BR2_arm1176jzf_s=y
> > BR2_TOOLCHAIN_EXTERNAL=y
> > BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> > BR2_PACKAGE_QT5=y
> > BR2_PACKAGE_QT5WEBENGINE=y
> > BR2_PACKAGE_RPI_USERLAND=y
> >
> > Did you had the chance to investigate more deeply why having fontconfig
> > support in Qt leads qt5webengine wanting to find freetype2 on the host?
>
> Interestingly, in commit
> https://github.com/meta-qt5/meta-qt5/commit/280487f20bca829527a597d6263b0344a01917ac#diff-f0ffde666f6ff0282f8400203b3ba20968494d3c7245106eca761bd79baa1c78R26
> the meta-qt5 layer, when upgrading Qt to 5.15.2 added jpeg-native and
> freetype-native as new unconditional dependencies.
>
> But there are no explanations. Is it really because the Chromium stuff
> is building a host tool with freetype/jpeg, or is it just a workaround
> for some incorrect behavior of the Chromium build process that needs
> freetype/jpeg on the target, but checks for them on the host?
Would say yes...
Regards,
Peter
>
> Thomas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2022-01-09 13:27 ` Thomas Petazzoni
2022-01-09 13:44 ` Thomas Petazzoni
@ 2022-01-15 23:03 ` Peter Seiderer
1 sibling, 0 replies; 11+ messages in thread
From: Peter Seiderer @ 2022-01-15 23:03 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: Mahyar Koshkouei, Gaël Portay, Julien Corjon, buildroot,
Maxime Hadjinlian, Martin Bark, Arthur Courtel
Hello Thomas,
On Sun, 9 Jan 2022 14:27:48 +0100, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> On Mon, 21 Dec 2020 21:39:51 +0100
> Peter Seiderer <ps.report@gmx.net> wrote:
>
> > - add optional host-freetype dependency
> >
> > Fixes:
> >
> > Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config freetype2
> > Returned 1.
> > stderr:
> >
> > Package freetype2 was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `freetype2.pc'
> > to the PKG_CONFIG_PATH environment variable
> > Package 'freetype2', required by 'virtual:world', not found
> > Could not run pkg-config.
> >
> > See //build/linux/BUILD.gn:24:3: whence it was called.
> > pkg_config("freetype_from_pkgconfig") {
> > ^--------------------------------------
> > See //build/config/freetype/BUILD.gn:10:24: which caused the file to be included.
> > public_configs = [ "//build/linux:freetype_from_pkgconfig" ]
> > ^--------------------------------------
> > Project ERROR: GN run error!
> > make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 3
> > make[3]: *** [Makefile:79: sub-core-make_first] Error 2
> > make[2]: *** [Makefile:49: sub-src-make_first] Error 2
>
> I am falling into this issue while building the following defconfig:
>
> BR2_arm=y
> BR2_arm1176jzf_s=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> BR2_PACKAGE_QT5=y
> BR2_PACKAGE_QT5WEBENGINE=y
> BR2_PACKAGE_RPI_USERLAND=y
>
> Did you had the chance to investigate more deeply why having fontconfig
> support in Qt leads qt5webengine wanting to find freetype2 on the host?
The observation is that all (optional) qt target options are requested by
qtwebengine for the host (and buildroot package fontconfig selects freetype)...
Regards,
Peter
>
> Thomas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency
2020-12-21 20:39 ` [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency Peter Seiderer
2020-12-30 10:18 ` Thomas Petazzoni
2022-01-09 13:27 ` Thomas Petazzoni
@ 2022-01-16 10:38 ` James Hilliard
2 siblings, 0 replies; 11+ messages in thread
From: James Hilliard @ 2022-01-16 10:38 UTC (permalink / raw)
To: Peter Seiderer
Cc: Arthur Courtel, Mahyar Koshkouei, Gaël Portay,
Julien Corjon, Buildroot, Martin Bark, Maxime Hadjinlian
On Mon, Dec 21, 2020 at 1:40 PM Peter Seiderer <ps.report@gmx.net> wrote:
>
> - add optional host-freetype dependency
>
> Fixes:
>
> Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config freetype2
> Returned 1.
> stderr:
>
> Package freetype2 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `freetype2.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'freetype2', required by 'virtual:world', not found
> Could not run pkg-config.
>
> See //build/linux/BUILD.gn:24:3: whence it was called.
> pkg_config("freetype_from_pkgconfig") {
> ^--------------------------------------
> See //build/config/freetype/BUILD.gn:10:24: which caused the file to be included.
> public_configs = [ "//build/linux:freetype_from_pkgconfig" ]
> ^--------------------------------------
> Project ERROR: GN run error!
> make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 3
> make[3]: *** [Makefile:79: sub-core-make_first] Error 2
> make[2]: *** [Makefile:49: sub-src-make_first] Error 2
>
> - add optiobal hist-libjpeg dependency
>
> Fixes:
>
> https://gitlab.com/buildroot.org/buildroot/-/jobs/917539230
>
> Command: .../host/bin/python2 .../build/qt5webengine-5.15.2/src/3rdparty/chromium/build/config/linux/pkg-config.py -p .../build/qt5webengine-5.15.2/host-bin/host-pkg-config libjpeg
> Returned 1.
> stderr:
> Package libjpeg was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libjpeg.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'libjpeg', required by 'virtual:world', not found
> Could not run pkg-config.
> See //third_party/BUILD.gn:17:3: whence it was called.
> pkg_config("system_libjpeg") {
> ^-----------------------------
> See //third_party/blink/renderer/platform/BUILD.gn:159:5: which caused the file to be included.
> "//third_party:jpeg",
> ^-------------------
> Project ERROR: GN run error!
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Tested-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> package/qt5/qt5webengine/qt5webengine.mk | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/package/qt5/qt5webengine/qt5webengine.mk b/package/qt5/qt5webengine/qt5webengine.mk
> index 64c9c96cc2..8ab50a0fbf 100644
> --- a/package/qt5/qt5webengine/qt5webengine.mk
> +++ b/package/qt5/qt5webengine/qt5webengine.mk
> @@ -29,6 +29,14 @@ endif
>
> QT5WEBENGINE_DEPENDENCIES += host-libpng host-libnss libnss
>
> +ifeq ($(BR2_PACKAGE_QT5BASE_FONTCONFIG),y)
> +QT5WEBENGINE_DEPENDENCIES += host-freetype
> +endif
> +
> +ifeq ($(BR2_PACKAGE_QT5BASE_JPEG),y)
> +QT5WEBENGINE_DEPENDENCIES += host-libjpeg
> +endif
> +
> QT5WEBENGINE_CONF_OPTS += WEBENGINE_CONFIG+=use_system_ffmpeg
>
> ifeq ($(BR2_PACKAGE_QT5WEBENGINE_PROPRIETARY_CODECS),y)
> --
> 2.29.2
>
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-01-16 10:38 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-20 14:57 [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency Peter Seiderer
2020-12-21 20:39 [Buildroot] [PATCH v1 0/2] Raspberry Pi - bump kernel version to 967d45b (5.10.1) Peter Seiderer
2020-12-21 20:39 ` [Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency Peter Seiderer
2020-12-30 10:18 ` Thomas Petazzoni
2021-01-19 21:22 ` Thomas Petazzoni
2021-01-21 21:03 ` Peter Seiderer
2021-01-21 21:09 ` Thomas Petazzoni
2022-01-09 13:27 ` Thomas Petazzoni
2022-01-09 13:44 ` Thomas Petazzoni
2022-01-15 23:04 ` Peter Seiderer
2022-01-15 23:03 ` Peter Seiderer
2022-01-16 10:38 ` James Hilliard
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.