升级到ESP8266_RTOS_SDK-2.0.0编译以前的代码出现ld: cannot find -lmesh collect2: error: ld returned 1 exit status错误

hxy513696765
Posts: 5
Joined: Thu Mar 30, 2017 8:43 am

升级到ESP8266_RTOS_SDK-2.0.0编译以前的代码出现ld: cannot find -lmesh collect2: error: ld returned 1 exit status错误

Postby hxy513696765 » Tue Apr 03, 2018 10:47 pm

以前在ESP8266_RTOS_SDK-1.5.0下编写的代码现在升级到ESP8266_RTOS_SDK-2.0.0就出现编译不过的错误。

xtensa-lx106-elf-gcc -L/home/esp8266/Share/ESP8266_RTOS_SDK-2.0.0/lib -Wl,--gc-sections -nostdlib -T/home/esp8266/Share/ESP8266_RTOS_SDK-2.0.0/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 -lairkiss -lspiffs -lssl -lwpa -lwps user/.output/eagle/debug/lib/libuser.a tcp_server/.output/eagle/debug/lib/libtcpserver.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out
/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lmesh
collect2: error: ld returned 1 exit status


Image

Her Majesty
Posts: 337
Joined: Mon Oct 27, 2014 11:09 am

Re: 升级到ESP8266_RTOS_SDK-2.0.0编译以前的代码出现ld: cannot find -lmesh collect2: error: ld returned 1 exit status错误

Postby Her Majesty » Sat Apr 07, 2018 4:46 pm

应该在编译链接文件里把 -lmesh 删掉就行了

hxy513696765
Posts: 5
Joined: Thu Mar 30, 2017 8:43 am

Re: 升级到ESP8266_RTOS_SDK-2.0.0编译以前的代码出现ld: cannot find -lmesh collect2: error: ld returned 1 exit status错误

Postby hxy513696765 » Sun Apr 08, 2018 9:27 pm

嗯!确实是,就是删掉编译链接文件里把 -lmesh 删掉就可以编译通过了

Who is online

Users browsing this forum: No registered users and 14 guests