[Buildroot] Qt5 compilation error (libjpeg)

Peter Seiderer ps.report at gmx.net
Thu Jun 17 21:28:08 UTC 2021


Hello Wojciech,

On Thu, 13 May 2021 07:23:40 +0200, Wojciech Ziniewicz <wojtek at gamecodehq.com> wrote:

> Hi all,
>
> This is my first post on this group.
>
> I'm compiling qt5 kiosk and 2021.02 errors out on QT5.15.2 webengine compilation:
>
> >>>>>>>>>>Begin
>
> 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")
>
> <<<<<<<<<<<End
>
> Not only libjpeg is explicitly defined by me in the config (BR2_PACKAGE_JPEG=y and BR2_PACKAGE_QT5BASE_JPEG=y just to be sure) but I can clearly see libjpeg being compiled during this process. What I think qtwebengine may be whining about is lack of host-libjpeg. So I'm getting exactlty the same error as in this official gitlab buildroot job here: https://gitlab.com/buildroot.org/buildroot/-/jobs/917539230
>
> The error was previously reported and fixed with following patch: http://lists.buildroot.org/pipermail/buildroot/2020-December/299008.html
>
> FYI: the Freetype dependency was also erroring out but I added the package and qtwebenengine began to error out of libjpeg.
>
> I confirmed that the /usr/lib/x86_64-linux-gnu/pkgconfig/libjpeg.pc file exists inside the build environment.
>
> My entire config file is available here: https://pastebin.com/ybjHhSG5
>
> Any help or advice will be much appreciated
> Wojtek

Sorry for the late reply, for similar bug report (and possible workaround) see [1], [2]...

Regards,
Peter

[1] https://bugs.busybox.net/show_bug.cgi?id=13841
[2] https://patchwork.ozlabs.org/project/buildroot/patch/20201221203952.22168-3-ps.report@gmx.net/


More information about the buildroot mailing list