Page 1 of 1

Tuya SDK 移植报错can not be used when making a shared object; recompile with -fPIC

Posted: 2025年 Jul 1日 14:11
by 15902093507

/arm-pc-linux-gnueabihf/bin/ld.exe: tuya/libs/libtuyaos.a(base_event.c.o): relocation R_ARM_MOVW_ABS_NC against a local symbol' can not be used when making a shared object; recompile with -fPIC
/arm-pc-linux-gnueabihf/bin/ld.exe: tuya/libs/libtuyaos.a(tuya_base_utilities.c.o): relocation R_ARM_MOVW_ABS_NC against
a local symbol' can not be used when making a shared object; recompile with -fPIC
/arm-pc-linux-gnueabihf/bin/ld.exe: tuya/libs/libtuyaos.a(tal_time_serivce.c.o): relocation R_ARM_MOVW_ABS_NC against a local symbol' can not be used when making a shared object; recompile with -fPIC
/arm-pc-linux-gnueabihf/bin/ld.exe: tuya/libs/libtuyaos.a(tal_workq_service.c.o): relocation R_ARM_MOVW_ABS_NC against
a local symbol' can not be used when making a shared object; recompile with -fPIC


Re: Tuya SDK 移植报错can not be used when making a shared object; recompile with -fPIC

Posted: 2025年 Jul 1日 14:17
by 愚者千虑必有一得

移植tuyaos要求提供编译选项的,你是不是没有提供啊,如果需要-fPIC,需要在申请邮件里写清楚的