【问题汇总】TuyaOS-联网单品开发编译问题与解决方法汇总【欢迎跟帖】

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
User avatar
chenyisong
Posts: 124

常见问题1:
我的系统里面已经安装了python3.8/python2.7,但是还是提示python: not found

解决方法:

(1)windows系统下,环境变量设置有问题,在“系统属性”->“环境变量”->“系统环境变量”中设置

windows下环境变量配置.png

(2)Linux系统下,python软链接可能有问题
安装python3:

Code: Select all

sudo apt-get install -y python3

获取当前python3路径:

Code: Select all

which python3

创建软链接

Code: Select all

sudo ln -s /usr/bin/python3 /usr/bin/python

常见问题2:
TuyaOS开发框架已经带了交叉编译器,但是还是提示toolchain/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc: not found

解决方法:
当前安装的Linux系统是64bit,而arm-none-eabi-gcc是32bit的,linux系统下需要安装32位的库,通过以下命令解决:

Code: Select all

sudo apt-get install -y libc6-i386
13393216460
Posts: 5

Re: 【问题汇总】TuyaOS-联网单品开发编译问题与解决方法汇总【欢迎跟帖】

我使用的是 M1 系统,使用 pd 安装的 Ubuntu,在使用 TuyaOS-3.8.1 版本的时候 build 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

User avatar
chenyisong
Posts: 124

Re: 【问题汇总】TuyaOS-联网单品开发编译问题与解决方法汇总【欢迎跟帖】

/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

需要确认一下M1下是否可以使用x64下的toolchain。
还有是否已经执行了 sudo apt-get install -y libc6-i386

Post Reply