开发环境为:
电脑为 Mac 的 M1 芯片,使用 pd 安装的 Ubuntu 系统,具体如下:
Linux ubuntu-linux-22-04-desktop 5.15.0-41-generic #44-Ubuntu SMP Thu Jun 23 11:20:13 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
使用 VSCode 的 Tuya Wind IDE 新建的开发框架如下,或查看附件
开发模式:TuyaOS OS 开发
类型开发包:联网单品开发/Wi-Fi Ble双模设备开发包
开发平台:Wireless SoC/beken/Wi-Fi/BK7231N
TuyaOS 版本:TuyaOS-3.8.1
开发框架创建好以后,什么都不改动,直接使用 build_app.sh 编译 apps 下的 tuyaos_demo_quickstart,报错如下:
clean application static ...
find: ‘apps/tuyaos_demo_quickstart/application_components’: No such file or directory
find: ‘apps/tuyaos_demo_quickstart/application_drivers’: No such file or directory
find: ‘apps/tuyaos_demo_quickstart/application_components’: No such file or directory
find: ‘apps/tuyaos_demo_quickstart/application_drivers’: No such file or directory
CC /home/parallels/Documents/tuya/Projects/BK7231N_TuyaOS-3.7.2/software/TuyaOS/vendor/bk7231n/tuyaos/tuyaos_adapter/include/init/src/tkl_init_common.c
/bin/sh: 1: /home/parallels/Documents/tuya/Projects/BK7231N_TuyaOS-3.7.2/software/TuyaOS/vendor/bk7231n/tuyaos/../toolchain/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc: Exec format error
compile command: 这里省略
make: *** [scripts/mk/xmake.mk:220: /home/parallels/Documents/tuya/Projects/BK7231N_TuyaOS-3.7.2/software/TuyaOS/output/bk7231n_tuyaos_demo_quickstart/.objs/static/vendor/bk7231n/tuyaos/tuyaos_adapter/include/init/src/tkl_init_common.c.o] Error 1
求大神帮忙