[Buildroot] [PATCH v1] package/qt5webengine: add optional host-freetype/host-libjpeg dependency

Peter Seiderer ps.report at gmx.net
Sat Jan 15 23:03:04 UTC 2022


Hello Thomas,

On Sun, 9 Jan 2022 14:27:48 +0100, Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:

> On Mon, 21 Dec 2020 21:39:51 +0100
> Peter Seiderer <ps.report at 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




More information about the buildroot mailing list