移植polarssl编译过程中出现sdk变量未定义

xiaoleizii
Posts: 14
Joined: Fri Aug 12, 2016 11:30 am

移植polarssl编译过程中出现sdk变量未定义

Postby xiaoleizii » Fri Aug 12, 2016 11:43 am

xtensa-lx106-elf-gcc -L/home/ubuntu/ESP8266_RTOS_SDK/lib -Wl,--gc-sections -nostdlib -T/home/ubuntu/ESP8266_RTOS_SDK/ld/eagle.app.v6.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lcirom -lcrypto -lespconn -lespnow -lfreertos -lgcc -lhal -ljson -llwip -lmain -lmesh -lmirom -lnet80211 -lnopoll -lphy -lpp -lpwm -lsmartconfig -lspiffs -lssl -lwpa -lwps user/.output/eagle/debug/lib/libuser.a sample_lib/.output/eagle/debug/lib/libsample.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out
/home/ubuntu/ESP8266_RTOS_SDK/lib/libcirom.a(lib_a-time.o):(.irom0.literal+0x0): undefined reference to `_gettimeofday_r'
/home/ubuntu/ESP8266_RTOS_SDK/lib/libcirom.a(lib_a-time.o): In function `time':
/home/wjg/Repo/esp-open-sdk/crosstool-NG/.build/src/newlib-2.0.0/newlib/libc/time/time.c:46: undefined reference to `_gettimeofday_r'
collect2: error: ld returned 1 exit status

使用 RTOS_SDK 编译过程中出现lib中变量未定义,导致编译出错,急求如何解决?? :o :o :o

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

Re: 移植polarssl编译过程中出现sdk变量未定义

Postby ESP_Rubin » Fri Aug 12, 2016 3:49 pm

你需要在Makefile里面添加需要链接的库信息

xiaoleizii
Posts: 14
Joined: Fri Aug 12, 2016 11:30 am

Re: 移植polarssl编译过程中出现sdk变量未定义

Postby xiaoleizii » Sat Aug 13, 2016 9:47 am

这个lib是sdk中本身就编译好的,我如何去重新定义这个变量并编译?

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

Re: 移植polarssl编译过程中出现sdk变量未定义

Postby ESP_Rubin » Mon Aug 15, 2016 11:07 am

修改Makefile,添加lcirom

Who is online

Users browsing this forum: No registered users and 5 guests