如何解决使用bitbake for yocto distro编译Flutter桌面应用程序
我想为yocto发行版编译Flutter桌面应用程序,因此我需要以某种方式访问Flutter构建。 我如何在do_compile(){}中使用flutter?它安装在我用来构建yocto映像的docker容器中。
recipe.bb
SUMMARY = "larning-installer recipe"
DESCRIPTION = "Larning installer app for installing other larning software"
SRCREV= "aa237f9ad19436b61b2f930721837682a637759b"
LICENSE="GPLv3"
LIC_FILES_CHKSUM = "file://src/LICENSE;md5=442763063122646a01b61b4839320293"
PV="0.0.1+git${SRCPV}"
PR="r1"
SRC_URI="git://gitlab.com/larning/installer.git \
file://config.json"
S = "${WORKDIR}"
FILES_${PN} += "${bindir}"
do_configure() {
rm git/assets/config.json
mv config.json git/assets/
}
do_compile() {
cd git
flutter build linux
cd ..
}
do_install() {
install -d ${D}${bindir}
install -m 0755 git/build/release/bundle/installer ${D}${bindir}
}
解决方法
您必须向该工具添加构建时间依赖性,必须为此使用DEPENDS变量。
DEPENDS += "flutter-engine-native"
克隆后将meta-flutter层添加到bblayers.conf中。
https://layers.openembedded.org/layerindex/branch/zeus/layer/meta-flutter/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。