【已解决】【tuya os sdk 】安凯AK3760E 编译出问题

IPC/NVR/可视门铃等具备多媒体能力的设备,扫地机/AGV等机器人设备


Post Reply
VENZ_wu
Posts: 37

我下载了tuya os sdk 的 安凯 AK3760E sdk,工程是这样子创建的:

安凯.png

直接编译会报错:/usr/bin/ld: cannot find -ltuyaos
oftware/TuyaOS/adapter/display/include -I /home/wusy/Documents/tuya/Projects/AK3760E_3.4.0/software/TuyaOS/adapter/wired/include -I /home/wusy/Documents/tuya/Projects/AK3760E_3.4.0/software/TuyaOS/adapter/pm/include -I /home/wusy/Documents/tuya/Projects/AK3760E_3.4.0/software/TuyaOS/adapter/rtc/include -I ./include -L/home/wusy/Documents/tuya/Projects/AK3760E_3.4.0/software/TuyaOS/libs -ltuyaos -pthread -lm -lrt -ldl -lm -Wl,--gc-sections -o /home/wusy/Documents/tuya/Projects/AK3760E_3.4.0/software/TuyaOS/apps/tuyaos_demo_ipc/output/tuyaos_demo_ipc_1.0.2/tuyaos_demo_ipc
/usr/bin/ld: skipping incompatible /home/wusy/Documents/tuya/Projects/AK3760E_3.4.0/software/TuyaOS/libs/libtuyaos.a when searching for -ltuyaos
/usr/bin/ld: cannot find -ltuyaos
collect2: error: ld returned 1 exit status
make: *** [Makefile:82: build_app] Error 1

麻烦分析一下,还要配置唤醒吗?

VENZ_wu
Posts: 37

Re: 【tuya os sdk 】安凯AK3760E 编译出问题

看了编译的过程,原来是下载编译环境时出了问题导致的。
不过后面的编译还是遇到了问题,software/TuyaOS/apps/tuyaos_demo_ipc/src/user_main.c 编译报错:
找不到 execinfo.h 头文件

只好注释一些代码,最后编译通过。

User avatar
起个中文名
Posts: 152

Re: 【tuya os sdk 】安凯AK3760E 编译出问题

DEMO代码里面的部分头文件是在Ubuntu下测试时使用的。发布时没有针对每个芯片平台进行删除。你这边删除掉即可。

0x1abin
Posts: 23

Re: 【tuya os sdk 】安凯AK3760E 编译出问题

tuya.json发一下

Post Reply