This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SK-AM62B-P1:添加 Flutter 元数据付款人后、在运行 bitbake 时收到怪异的错误消息

Guru**** 2467130 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1468786/sk-am62b-p1-getting-weird-error-messages-while-running-bitbake-after-adding-flutter-meta-payer

器件型号:SK-AM62B-P1

工具与软件:

尊敬的专家:

我的目标是将 Flutter 元层添加到 Yocto 构建(使用 SDK 10.0)中。 仔细阅读了 https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1205636/faq-am625-is-flutter-the-right-gui-toolkit-for-me-an-engineers-perspective:中给出的说明

从 SDK 10.0开始、TI 已升级到 Scarthgap Yocto 版本、且上述说明已过时。 为简单起见、请使用以下 Yocto 配置来构建 Flutter: https://gist.github.com/StaticRocket/e07d692dda28912f9991e5a0de6ed8bc 

但是在运行之后:

./ oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-scarthgap-flutter-10.00.07.04-config.txt
CD 版本
. CONF/setenv
MACHINE=am62xx-evm bitbake -k tisdk-default-image 

我收到以下 Yocto 构建错误:

错误: ParseError at /home/davmelikyan/QuickSilver/processor-AM62X/tisdk/sources/meta-flutter/meta-flutter-apps/recipes-graphics/flutter-apps/first-party/googleads-flutter-samples-admob-app-open-example_1.0.0.bb:24:无法继承文件类/flutter-app.bbclass
错误:解析因错误而停止、请参阅上面的错误消息

感谢您的任何帮助。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Davit、

    您是否可以  在设置过程中尝试使用 github.com/.../meta-flutter 上最新的`scarthap`? 我被告知做出了重要改进、这应该有助于实现 SDK v10.x 环境中的兼容性

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Andreas:

    感谢您花时间回答我。 实际上、我采用了最新的"carthgap"分支顶部 提交、即12月19日提交4add4040f42c6a9e816f056af5b14ebf68f840fb。 但仍会出现相同类型的错误:

    错误: ParseError at /home/davmelikyan/QuickSilver/processor-AM62X/tisdk/sources/meta-flutter/meta-flutter-apps/recipes-graphics/flutter-apps/first-party/flutter-samples-navigation-and-routing-bookstore_1.0.0.bb:25:无法继承文件类/flutter-app.bbclass
    错误:解析因错误而停止、请参阅上面的错误消息

    谢谢!

    Davit

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Davit、

    让我尝试设置一个测试构建、看看我是否可以重新创建它并返回此处报告。

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Andreas、

    问题来自出现故障的脚本:

    /OE -layertool-setup.sh -f configs/processor-sdk/ processor-sdk-scarthgap-flutter-10.00.07.04-config.txt

    因为它应该在 BBLAYERS+= /home/user/tisdk/sources/meta-flutter 下的 tisdk/build/conf/bblayers.conf 文件中创建

    但我可以看到、在  tisdk/build/conf/bblayers.conf 中、bblayers.conf 中没有 meta-flutter 层条目、但 由于某种原因、它仅创建 meta-flutter-apps 条目。 这会带来上述错误。  

    我认为、这一问题应该上报给 TI 支持部、以便他们解决 OE 问题 -layertool-setup.sh  工程师。

    谢谢!

    Davit

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    因为应在 BBLAYERS+= /home/user/tisdk/sources/meta-flutter 下的 tisdk/build/conf/bblayers.conf 文件中创建[[/quote]

    很好的发现 首先、我能够重新创建您的错误、但是在添加了两个...

            /home/a0797059/tisdk/am62xx-evm/sources/meta-flutter \
            /home/a0797059/tisdk/am62xx-evm/sources/meta-flutter/meta-flutter-apps \

    ...致 conf/bblayers.conf 构建似乎已成功开始。 让我看看它是否一直在进行,然后找出我们可以最好地正式解决这一问题。 将`meta-flutter`添加到 config 脚本(.txt 文件)中似乎不能作为解决方案按原样工作、因为这种更改不会使其超越内部的`verify_layers ()`函数  oe-layertool-setup.sh . 它看起来像是`mETA- Flutter`层是以一种非标准的方式构造的。

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Andreas、

    仍然无法使用 Yocto 构建。 它要么与终端一起在某个点崩溃、要么以构建错误结束、如:

    摘要:3个任务失败:
    /home/user/processor-AM62X/tisdk/sources/meta-qt5/recipes-qt/qt5/qtmultimedia_git.bb:DO_COMPILER
    /home/user/processor-AM62X/tisdk/sources/meta-qt5/recipes-qt/qt5/qtxmlpatterns_git.bb:DO_COMPILER
    /home/user/processor-AM62X/tisdk/sources/meta-ti/meta-ti-extras/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb:DO_COMPILER
    摘要:共有9条警告消息。
    摘要:有6条错误消息、返回一个非零退出代码。

    尝试运行它几次仍然没有成功。

    使用运行构建  processor-sdk-scarthgap-10.00.07.04-config.txt 但没有 Flutter 元层是相当平滑的。

    谢谢!

    Davit

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Davit、

    我刚检查、我的构建过程已经完成、没有任何问题。

    $ ll deploy-ti/images/am62xx-evm/*wic*
    -rw-r--r-- 2 a0797059 a0797059       4528 Feb  4 18:35 deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs-20250204190600.wic.bmap
    -rw-r--r-- 2 a0797059 a0797059 1009589576 Feb  4 18:35 deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs-20250204190600.wic.xz
    lrwxrwxrwx 2 a0797059 a0797059         61 Feb  4 18:35 deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs.wic.bmap -> tisdk-default-image-am62xx-evm.rootfs-20250204190600.wic.bmap
    lrwxrwxrwx 2 a0797059 a0797059         59 Feb  4 18:35 deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs.wic.xz -> tisdk-default-image-am62xx-evm.rootfs-20250204190600.wic.xz

    我的配置文件:

    # This file takes repo entries in the format
    # repo name,repo uri,repo branch,repo commit[,layers=layer1:layer2...:layern]
    
    bitbake,git.openembedded.org/bitbake,2.8,6c2641f7a9e92c1b82e306f59ddd3c1249c52cbf
    meta-tisdk,github.com/.../meta-tisdk.git,scarthgap,10.01.10.04,layers=
    meta-arago,git.yoctoproject.org/meta-arago,scarthgap,10.01.10,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test
    meta-flutter,github.com/.../meta-flutter.git,scarthgap,f12d340d5ac0bb5519e0bdb3d750c805501af308,layers=meta-flutter-apps
    meta-qt5,github.com/.../meta-qt5.git,scarthgap,eb828418264a49b8d00035cb3d7b12fcea3be801,layers=
    meta-virtualization,git.yoctoproject.org/meta-virtualization,scarthgap,450941a1b6df96285691e8c23d4f332d3c88a994,layers=
    meta-openembedded,git.openembedded.org/meta-openembedded,scarthgap,b8d1a14f7f3b76457c36752202ea7ae5881b6654,layers=meta-networking:meta-python:meta-oe:meta-gnome:meta-filesystems:m
    meta-ti,git.yoctoproject.org/meta-ti,scarthgap,10.01.10,layers=meta-ti-extras:meta-ti-bsp
    meta-arm,git.yoctoproject.org/meta-arm,scarthgap,7088279c0ab00c7dabefdd4544951b4746b48476,layers=meta-arm:meta-arm-toolchain
    meta-clang,github.com/.../meta-clang,scarthgap,9fbfa9db33131abdf3870a94f00199eb53e276e5,layers=
    oe-core,git.openembedded.org/openembedded-core,scarthgap,dac630ab5ee7aa6c5c7c294093adbd11b116c765,layers=meta
    meta-edgeai,git.ti.com/.../meta-edgeai.git,scarthgap,10.01.10.04,layers=
    
    OECORELAYERCONF=./sample-files/bblayers.conf.sample
    OECORELOCALCONF=./sample-files/local-arago64-v2.conf.sample
    BITBAKE_INCLUSIVE_VARS=yes
    

    我的 conf/bblayers.conf 添加内容:

            /home/a0797059/tisdk/am62xx-evm/sources/meta-flutter \
            /home/a0797059/tisdk/am62xx-evm/sources/meta-flutter/meta-flutter-apps \

    我的 conf/local.conf 添加内容:

    # Flutter stuff
    IMAGE_INSTALL:append = " flutter-wayland-client flutter-samples-material-3-demo"

    [报价用户 id="639552" url="~/support/processors-group/processors/f/processors-forum/1468786/sk-am62b-p1-getting-weird-error-messages-while-running-bitbake-after-adding-flutter-meta-payer/5642796 #5642796"]

    仍然无法使用 Yocto 构建。 它要么与终端一起在某个点崩溃、要么以构建错误结束、如:

    摘要:3个任务失败:
    /home/user/processor-AM62X/tisdk/sources/meta-qt5/recipes-qt/qt5/qtmultimedia_git.bb:DO_COMPILER
    /home/user/processor-AM62X/tisdk/sources/meta-qt5/recipes-qt/qt5/qtxmlpatterns_git.bb:DO_COMPILER
    /home/user/processor-AM62X/tisdk/sources/meta-ti/meta-ti-extras/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb:DO_COMPILER
    摘要:共有9条警告消息。
    摘要:有6条错误消息、返回一个非零退出代码。

    尝试运行它几次仍然没有成功。

    [报价]

    尝试删除整个 build 文件夹。 然后、在重新开始之前、也可以通过更新来下调并行编译、如下所示(可能会尝试更小的数字、具体取决于您的设置) conf/local.conf 因此、您可能会在构建期间耗尽内存、这可能会导致奇怪的问题、例如 bitbak-server hangers 等  

    BB_NUMBER_THREADS ?= "8"
    PARALLEL_MAKE ?= "-j 8"
    

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢安德烈亚斯,它对我有用。