我正在尝试使用 intel cpu 为 x86/amd64 目标构建 yocto 映像。 Meta-intel 层提供了可启动的最小 x11 映像-core-image-x11。我必须在目标上运行 Pyside 应用程序,这将涉及首先添加 Qt5/6 支持,然后添加 PySide。
以下文件生成可启动映像,但未找到 qmake 命令
SUMMARY = "A full-featured basic X11 + PySide image."
LICENSE = "MIT"
IMAGE_FEATURES += " splash package-management x11-base"
DEPENDS += "qtbase"
COMPATIBLE_MACHINE = "intel-corei7-64"
inherit core-image qt6-qmake features_check
REQUIRED_DISTRO_FEATURES = "x11 ptest"
QB_MEM = '${@bb.utils.contains("DISTRO_FEATURES", "opengl", "-m 512", "-m 256", d)}'
yocto 新手,尝试了解在不使用 boot2qt 的情况下添加 qt 支持,因为 boot2qt 层不支持 MACHINE=intel-corei7-64
在图像配方类型中包含
qt6-qmake
不符合逻辑。
图像配方
inherit
s image.bbclass
禁用从 do_fetch
到 do_package_*
任务的所有包配方任务。
qt6-qmake
有 do_configure
和 do_compile
用于需要在 Qt 项目上运行 qmake
的配方。
为了将
qmake
添加到您的图像中:
从
qt6-qmake
行中删除 inherit
。
删除
DEPENDS += "qtbase"
,因为DEPENDS
适用于包装食谱,不适用于图像食谱。
添加:
IMAGE_INSTALL:append = " qtbase-dev qtbase-tools"