使用bitbake为yocto发行版编译颤振桌面应用程序
我想为yocto发行版编译我的Flatter桌面应用程序,所以我需要访问Flatter build。 我怎样才能在do_compile(){}中使用flatter?它安装在我的docker容器中,我用来构建我的yocto图像 配方.bb使用bitbake为yocto发行版编译颤振桌面应用程序,yocto,bitbake,flutter-desktop,Yocto,Bitbake,Flutter Desktop,我想为yocto发行版编译我的Flatter桌面应用程序,所以我需要访问Flatter build。 我怎样才能在do_compile(){}中使用flatter?它安装在我的docker容器中,我用来构建我的yocto图像 配方.bb SUMMARY = "larning-installer recipe" DESCRIPTION = "Larning installer app for installing other larning software"
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"
克隆元颤振层后,将其添加到bblayers.conf
谢谢:)我想我可以使用主机构建的东西,但似乎不是这样。你有完整的例子吗(包括“图像包”)(只要问一下,会有帮助的)