错误文件已安装但无法随包发货

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

我正在使用 Yocto 构建系统来构建我的 Linux 发行版。

我正在使用 Qt C++ 开发我的应用程序。我有一个文件必须是我的包的一部分,我将在构建后发送它。

我已经在 qmake 的帮助下将文件部署到目标设备中。我不想更改 bitbake 文件中的任何内容。

这可能吗?

我试过:

INSTALLS += target

我得到的错误是:

files are installed but cannot be shipped with packages
qt yocto qmake
1个回答
1
投票

当您在

do_install
步骤中安装某些东西时,您必须指定在 FILES_${PN} 变量中安装的文件。

例如...

do_install() {
    cat <<EOF > ${bindir}/hello.sh
#!/bin/bash
echo Hello world
EOF
    chmod +x ${bindir}/hello.sh
}

...

FILES_${PN} = "${bindir}/hello.sh"

如果你的食谱继承自某个类,你可能需要使用

:append
限定符。

另请参阅...

© www.soinside.com 2019 - 2024. All rights reserved.