【已解决】【TuyaOS SDK】提取TuyaOS SDK_6.1.2后,执行make命令报错

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


Post Reply
13524855646
Posts: 1

提取TuyaOS SDK_6.1.2后,进入 software/sdk_6.1.2/ 目录,执行命令 make报错(使用任何一款芯片都是一样的报错和log):下面报错的Log,我感觉是否因为IDE最新更新了版本(我看是2-29日IDE刚更新了一版)的问题,这个是最基本的SDK操作呀,或者就是我这边哪里有问题,所以想请教一下

~/Documents/tuya/Projects/IPC_SSC377_TuyaOS-3.9.2/software/sdk_6.1.2$ make
CC demo_tuyaos_app/app_lowpower_sample/src/lp_auth.c
demo_tuyaos_app/app_lowpower_sample/src/lp_auth.c: In function ‘lp_auth_sign’:
demo_tuyaos_app/app_lowpower_sample/src/lp_auth.c:56:5: warning: implicit declaration of function ‘mbedtls_base64_encode’ [-Wimplicit-function-declaration]
56 | mbedtls_base64_encode(pb64d, *psz, psz, digest, 32);
| ~~~~~~~~~~~~~~~~~
CC demo_tuyaos_app/app_lowpower_sample/src/crc32i.c
CC demo_tuyaos_app/app_lowpower_sample/src/lp_protocol.c
CC demo_tuyaos_app/app_lowpower_sample/src/lp_cli.c
In file included from ./sdk//include/components/lib_tls/include/mbedtls/build_info.h:60,
from ./sdk//include/components/lib_tls/include/mbedtls/base64.h:25,
from demo_tuyaos_app/app_lowpower_sample/src/lp_cli.c:11:
./sdk//include/components/lib_tls/include/mbedtls/tuya_tls_security_config.h:45:14: fatal error: tuya_tls_security_L1_default_config.h: No such file or directory
45 | #include "tuya_tls_security_L1_default_config.h"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:90: output/demo/.objs/./demo_tuyaos_app/app_lowpower_sample/src/lp_cli.c.o] Error 1


Tags:
郭老庄
Posts: 195

Re: 提取TuyaOS SDK_6.1.2后,执行make命令报错

makefile.png

你好,可以在makefile里添加TUYAOS_INCS += -I$(TUYAOS_LIB_DIR)/include/components/svc_tuya_cloud/include/tls 解决

Post Reply