【已解决】tuya ipc SDK 独立开发,提取SDK包 我已安装以上操作,生成独立sdk包 但是编译时找不到文件,什么原因?

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


Post Reply
linfeng
Posts: 13

ake
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);
| ~~~~~~~~~~~~~~~~~
demo_tuyaos_app/app_lowpower_sample/src/lp_auth.c: In function ‘lp_auth_request’:
demo_tuyaos_app/app_lowpower_sample/src/lp_auth.c:76:95: warning: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size between 0 and 129 [-Wformat-truncation=]
76 | snprintf(sendSig,182,"{\"type\":%d,\"method\":%d,\"authorization\":\"%s\",\"signature\":\"%s\"}",type,method,auth,b64d);
| ^~ ~~
demo_tuyaos_app/app_lowpower_sample/src/lp_auth.c:76:5: note: ‘snprintf’ output between 56 and 330 bytes into a destination of size 182
76 | snprintf(sendSig,182,"{\"type\":%d,\"method\":%d,\"authorization\":\"%s\",\"signature\":\"%s\"}",type,method,auth,b64d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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: tuya ipc SDK 独立开发,提取SDK包 我已安装以上操作,生成独立sdk包 但是编译时找不到文件,什么原因?

可在Makefile里添加:TUYAOS_INCS += -I$(TUYAOS_LIB_DIR)/include/components/svc_tuya_cloud/include/tls
解决这个问题

Post Reply