Hello,
I would like to know how to generate only a Yocto toolchain that includes Qt6 for an NVIDIA Jetson Orin Nano board, without generating the image.
Indeed, I have already started the following procedure, and I am able to generate the toolchain without Qt6, but when integrating Qt6, the generation fails.
Here are the steps:
(Use of the BSP for Jetson boards and the integration of Qt6 into this toolchain.)
Poky
git clone -b kirkstone git://git.yoctoproject.org/poky.git
cd poky
meta-tegra for Jetson Orin
git clone -b kirkstone GitHub - OE4T/meta-tegra: BSP layer for NVIDIA Jetson platforms, based on L4T
Qt
git clone -b 6.5.3 git://code.qt.io/yocto/meta-qt6.git
OpenEmbedded
git clone -b kirkstone git://git.openembedded.org/meta-openembedded.git:
1 - bblayers.conf content:
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
# LAYERS
OEROOT := "/home/oukache/Dev/Yocto_Jetson-Orin-Nano/source/poky"
BBLAYERS ?= " \
${OEROOT}/meta \
${OEROOT}/meta-poky \
${OEROOT}/meta-yocto-bsp \
${OEROOT}/../meta-openembedded/meta-oe \
${OEROOT}/../meta-openembedded/meta-python \
"
BBLAYERS += "\
${OEROOT}/../meta-tegra \
${OEROOT}/../meta-qt6 \
"
2 - local.conf content:
# Machine target: Jetson Orin Nano
MACHINE ?= "jetson-orin-nano-devkit"
BB_GIT_SHALLOW = "1"
DISTRO ?= "poky"
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
# SDK settings: Add Qt6 libraries to the SDK for cross-compilation
TOOLCHAIN_TARGET_TASK:append = " \
qtbase-dev \
qtdeclarative-dev \
qttools-dev \
qtwayland-dev \
QT_VERSION = "6.5.3"
# Number of threads and parallel make jobs (tweak as needed)
BB_NUMBER_THREADS ?= "20"
PARALLEL_MAKE ?= "-j 20"
# Disk space optimization: remove work files after successful tasks
INHERIT += "rm_work"
# ajouter pour corriger l'erreur avec ffmpeg
LICENSE_FLAGS_ACCEPTED += "commercial"
DISTRO_FEATURES = "x11 opengl "
IMAGE_CLASSES += "image_types_tegra"
IMAGE_FSTYPES = "tegraflash"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"
Thanks
Oukache