mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +00:00
Latest qtwebengine does the right thing by not looking into build host's
rootfs but this means we need to add libevent to native sysroot to meet
this dependency, otherwise gn fails to find it and build fails like
below
Fixes:
| -- GN FAILED
|-
| ERROR at //build/config/linux/pkg_config.gni:104:17
| (//build/toolchain/yocto:yocto_native): Script returned non-zero exit code.
|-
| pkgresult = exec_script(pkg_config_script, args, "value")
| ^----------
|-
| Current dir:
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/build/src/core/Release/aarch64/
|-
|-
| Command:
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/recipe-sysroot-native/usr/bin/python3-native/python3
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/git/src/3rdparty/chromium/build/config/linux/pkg-config.py
| -p
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/recipe-sysroot-native/usr/bin/pkg-config-native
| libevent
|-
| Returned 1.
|-
| stderr:
|-
|-
|-
| Package libevent was not found in the pkg-config search path.
|-
| Perhaps you should add the directory containing `libevent.pc'
|-
| to the PKG_CONFIG_PATH environment variable
|-
| No package 'libevent' found
|-
| Could not run pkg-config.
Change-Id: I66d8806be14d2d4d57dca2d93688d5b58e0e1cb6
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit bc941d6f9a)
(cherry picked from commit 32f609f632)
90 lines
4.8 KiB
BlitzBasic
90 lines
4.8 KiB
BlitzBasic
require recipes-qt/qt6/qtwebengine.inc
|
|
require recipes-qt/qt6/chromium-gn.inc
|
|
|
|
DEPENDS += " \
|
|
fontconfig-native \
|
|
nodejs-native \
|
|
gperf-native \
|
|
bison-native \
|
|
qemu-native \
|
|
nss nss-native \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcomposite libxcursor libxi libxrandr libxtst libxkbfile', '', d)} \
|
|
qtbase qtdeclarative qtdeclarative-native \
|
|
gn-native \
|
|
python3-html5lib-native \
|
|
"
|
|
|
|
EXTRA_OECMAKE += "\
|
|
-DFEATURE_qtwebengine_build=ON \
|
|
-DFEATURE_qtpdf_build=OFF \
|
|
"
|
|
|
|
# chromium/third_party/openh264/BUILD.gn add -Wno-format to cflags
|
|
# causing following error, because -Wformat-security cannot be used together with -Wno-format
|
|
# cc1plus: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
|
|
# http://errors.yoctoproject.org/Errors/Details/150333/
|
|
SECURITY_STRINGFORMAT = ""
|
|
|
|
PACKAGECONFIG ??= "\
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)} \
|
|
geolocation \
|
|
glib \
|
|
lcms2 \
|
|
libevent \
|
|
libjpeg \
|
|
libpci \
|
|
libpng \
|
|
libwebp \
|
|
opus \
|
|
pepper-plugins \
|
|
printing-and-pdf \
|
|
snappy \
|
|
spellchecker \
|
|
webchannel \
|
|
webrtc \
|
|
zlib \
|
|
"
|
|
|
|
PACKAGECONFIG[alsa] = "-DFEATURE_webengine_system_alsa=ON,-DFEATURE_webengine_system_alsa=OFF,alsa-lib"
|
|
PACKAGECONFIG[ffmpeg] = "-DFEATURE_webengine_system_ffmpeg=ON,-DFEATURE_webengine_system_ffmpeg=OFF,libav"
|
|
PACKAGECONFIG[freetype] = "-DFEATURE_webengine_system_freetype=ON,-DFEATURE_webengine_system_freetype=OFF,freetype"
|
|
PACKAGECONFIG[geolocation] = "-DFEATURE_webengine_geolocation=ON,-DFEATURE_webengine_geolocation=OFF,qtpositioning"
|
|
PACKAGECONFIG[glib] = "-DFEATURE_webengine_system_glib=ON,-DFEATURE_webengine_system_glib=OFF,glib-2.0"
|
|
PACKAGECONFIG[harfbuzz] = "-DFEATURE_webengine_system_harfbuzz=ON,-DFEATURE_webengine_system_harfbuzz=OFF,harfbuzz"
|
|
PACKAGECONFIG[icu] = "-DFEATURE_webengine_system_icu=ON,-DFEATURE_webengine_system_icu=OFF,icu"
|
|
PACKAGECONFIG[lcms2] = "-DFEATURE_webengine_system_lcms2=ON,-DFEATURE_webengine_system_lcms2=OFF,lcms"
|
|
PACKAGECONFIG[libevent] = "-DFEATURE_webengine_system_libevent=ON,-DFEATURE_webengine_system_libevent=OFF,libevent libevent-native"
|
|
PACKAGECONFIG[libjpeg] = "-DFEATURE_webengine_system_libjpeg=ON,-DFEATURE_webengine_system_libjpeg=OFF,jpeg"
|
|
PACKAGECONFIG[libpng] = "-DFEATURE_webengine_system_libpng=ON,-DFEATURE_webengine_system_libpng=OFF,libpng"
|
|
PACKAGECONFIG[libvpx] = "-DFEATURE_webengine_system_libvpx=ON,-DFEATURE_webengine_system_libvpx=OFF,libvpx"
|
|
PACKAGECONFIG[libwebp] = "-DFEATURE_webengine_system_libwebp=ON,-DFEATURE_webengine_system_libwebp=OFF,libwebp libwebp-native"
|
|
PACKAGECONFIG[libxml] = "-DFEATURE_webengine_system_libxml=ON,-DFEATURE_webengine_system_libxml=OFF,libxml2 libxslt"
|
|
PACKAGECONFIG[opus] = "-DFEATURE_webengine_system_opus=ON,-DFEATURE_webengine_system_opus=OFF,libopus"
|
|
PACKAGECONFIG[libpci] = "-DFEATURE_webengine_system_libpci=ON,-DFEATURE_webengine_system_libpci=OFF,pciutils"
|
|
PACKAGECONFIG[pepper-plugins] = "-DFEATURE_webengine_pepper_plugins=ON,-DFEATURE_webengine_pepper_plugins=OFF"
|
|
PACKAGECONFIG[printing-and-pdf] = "-DFEATURE_webengine_printing_and_pdf=ON,-DFEATURE_webengine_printing_and_pdf=OFF,cups"
|
|
PACKAGECONFIG[proprietary-codecs] = "-DFEATURE_webengine_proprietary_codecs=ON,-DFEATURE_webengine_proprietary_codecs=OFF"
|
|
PACKAGECONFIG[pulseaudio] = "-DFEATURE_webengine_system_pulseaudio=ON,-DFEATURE_webengine_system_pulseaudio=OFF,pulseaudio"
|
|
PACKAGECONFIG[re2] = "-DFEATURE_webengine_system_re2=ON,-DFEATURE_webengine_system_re2=OFF,re2"
|
|
PACKAGECONFIG[snappy] = "-DFEATURE_webengine_system_snappy=ON,-DFEATURE_webengine_system_snappy=OFF,snappy"
|
|
PACKAGECONFIG[spellchecker] = "-DFEATURE_webengine_spellchecker=ON,-DFEATURE_webengine_spellchecker=OFF"
|
|
PACKAGECONFIG[webchannel] = "-DFEATURE_webengine_webchannel=ON,-DFEATURE_webengine_webchannel=OFF,qtwebchannel"
|
|
PACKAGECONFIG[webrtc] = "-DFEATURE_webengine_webrtc=ON,-DFEATURE_webengine_webrtc=OFF,libvpx"
|
|
PACKAGECONFIG[webrtc-pipewire] = "-DFEATURE_webengine_webrtc_pipewire=ON,-DFEATURE_webengine_webrtc_pipewire=OFF,pipewire glib-2.0 libepoxy virtual/libgbm"
|
|
PACKAGECONFIG[zlib] = "-DFEATURE_webengine_system_zlib=ON -DFEATURE_webengine_system_minizip=ON,-DFEATURE_webengine_system_zlib=OFF -DFEATURE_webengine_system_minizip,zlib minizip"
|
|
|
|
FILES:${PN} += "\
|
|
${QT6_INSTALL_TRANSLATIONSDIR} \
|
|
${QT6_INSTALL_DATADIR}/resources \
|
|
"
|
|
|
|
FILES:${PN}-tools = ""
|
|
|
|
# QA Issue: qtwebengine: ELF binary /usr/lib/libQt6WebEngineCore.so.6.3.0 has relocations in .text [textrel]
|
|
# when proprietary-codecs is enabled
|
|
INSANE_SKIP:${PN} += "textrel"
|
|
|
|
# QTBUG-109565 workaround: Disable GCC -O2 on armv7a-neon due to stack alignment issue
|
|
FULL_OPTIMIZATION:remove:armv7a = "${@bb.utils.contains('TUNE_FEATURES', 'neon', '-O2', '', d)}"
|
|
FULL_OPTIMIZATION:append:armv7a = "${@bb.utils.contains('TUNE_FEATURES', 'neon', ' -O1', '', d)}"
|