application_is/Debug/obj/main_application_is.o: In function main':
tuya_app_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
collect2: error: ld returned 1 exit status
make[2]: *** [application.is.mk 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
【已解决】RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过
【已解决】RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过
-
- Posts: 245
Re: RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过
tuya_app_main 是应用入口函数,你有在应用上定义吗?
Re: RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过
是有的,是在哪里需要添加头文件包含吗
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);
}
Re: RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过
对比一下3.8.11 apps目录下的demo,看有没有什么文件,特别是locak.mk文件。
Re: RTL8720CF_3.6.1框架下代码copy到RTL8720CF_3.8.11,编译不通过
已解决,确实是缺了.mk文件。