RTL8720CF新建工程编译失败 3.8.0

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

application_is/Debug/obj/main_application_is.o: In function main':
/home/book/Documents/tuya/Projects/feed_tool_os/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
application.is.mk:1012: recipe for target 'application_is' failed
make[2]: *** [application_is] Error 1
make[2]: Leaving directory '/home/book/Documents/tuya/Projects/feed_tool_os/software/TuyaOS/vendor/rtl8720cf_ameba/rtl8720cf-os/project/realtek_amebaz2_v0_example/GCC-RELEASE'
Makefile:11: recipe for target 'is' failed
make[1]: *** [is] Error 2
make[1]: Leaving directory '/home/book/Documents/tuya/Projects/feed_tool_os/software/TuyaOS/vendor/rtl8720cf_ameba/rtl8720cf-os/project/realtek_amebaz2_v0_example/GCC-RELEASE'
/home/book/Documents/tuya/Projects/feed_tool_os/software/TuyaOS/scripts/mk/app.mk:186: recipe for target 'app_by_name' failed
make: *** [app_by_name] Error 2


Tags:
User avatar
chenyisong
Posts: 124

Re: RTL8720CF新建工程编译失败 3.8.0

建议参考一下 tuyaos_demo_quickstart这个项目,确认一下是否缺少了tuya_app_main.c中的以下部分代码

Code: Select all

VOID_T tuya_app_main(VOID_T)
{
    THREAD_CFG_T thrd_param = {4096, 4, "tuya_app_main"};
    tal_thread_create_and_start(&ty_app_thread, NULL, NULL, tuya_app_thread, NULL, &thrd_param);
}
Post Reply