使用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/

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...