在 yocto 映像中为使用 Intel CPU 的 x86/amd64 目标添加 Qt6/Pyside2 支持

问题描述 投票:0回答:1

我正在尝试使用 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

qt embedded-linux yocto yocto-recipe yocto-layer
1个回答
0
投票

在图像配方类型中包含

qt6-qmake
不符合逻辑。

图像配方

inherit
s
image.bbclass
禁用从
do_fetch
do_package_*
任务的所有包配方任务。

qt6-qmake
do_configure
do_compile
用于需要在 Qt 项目上运行
qmake
的配方。

为了将

qmake
添加到您的图像中:

  1. qt6-qmake
    行中删除
    inherit

  2. 删除

    DEPENDS += "qtbase"
    ,因为
    DEPENDS
    适用于包装食谱,不适用于图像食谱。

  3. 添加:

IMAGE_INSTALL:append = " qtbase-dev qtbase-tools"
© www.soinside.com 2019 - 2024. All rights reserved.