【已解决】RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
zhd
Posts: 3

application_is/Debug/obj/main_application_is.o: In function main':
/home/ttsd/Documents/tuya/Projects/RTL8720CF_TuyaOS-3.8.11/software/TuyaOS/vendor/rtl8720cf_ameba/rtl8720cf-os/project/realtek_amebaz2_v0_example/GCC-RELEASE/../../../../tuyaos/tuyaos_adapter/src/main.c:38: undefined reference to
tuya_app_main'
collect2: error: ld returned 1 exit status
make[2]: *** [application.is.mk:1013: application_is] Error 1
make[2]: Leaving directory '/home/ttsd/Documents/tuya/Projects/RTL8720CF_TuyaOS-3.8.11/software/TuyaOS/vendor/rtl8720cf_ameba/rtl8720cf-os/project/realtek_amebaz2_v0_example/GCC-RELEASE'
make[1]: *** [Makefile:11: is] Error 2
make[1]: Leaving directory '/home/ttsd/Documents/tuya/Projects/RTL8720CF_TuyaOS-3.8.11/software/TuyaOS/vendor/rtl8720cf_ameba/rtl8720cf-os/project/realtek_amebaz2_v0_example/GCC-RELEASE'
make: *** [/home/ttsd/Documents/tuya/Projects/RTL8720CF_TuyaOS-3.8.11/software/TuyaOS/scripts/mk/app.mk:191: app_by_name] Error 2

yingtao_33
Posts: 245

Re: RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过

tuya_app_main 是应用入口函数,你有在应用上定义吗?

zhd
Posts: 3

Re: RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过

yingtao_33 2024年 Apr 9日 15:38

tuya_app_main 是应用入口函数,你有在应用上定义吗?

是有的,是在哪里需要添加头文件包含吗
VOID_T tuya_app_main(VOID_T)
{
THREAD_CFG_T thrd_param = {8192, 4, "tuya_app_main"};
tal_thread_create_and_start(&ty_app_thread, NULL, NULL, tuya_app_thread, NULL, &thrd_param);
}

愚者千虑必有一得
Posts: 510

Re: RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过

对比一下3.8.11 apps目录下的demo,看有没有什么文件,特别是locak.mk文件。

zhd
Posts: 3

Re: RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过

愚者千虑必有一得 2024年 Apr 10日 20:31

对比一下3.8.11 apps目录下的demo,看有没有什么文件,特别是locak.mk文件。

已解决,确实是缺了.mk文件。

Post Reply