wujiangang / ESP8266_IOT_PLATFORM

A demo that should be run with ESP8266 RTOS SDK
http://bbs.espressif.com
Other
239 stars 122 forks source link

Can't compile with newest RTOS SDK (1.4.5) #4

Open eeyrw opened 8 years ago

eeyrw commented 8 years ago

make[1]: Leaving directory `/mnt/Share/esp8266_iot_platform/libesphttpd' xtensa-lx106-elf-gcc user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a upgrade/.output/eagle/debug/lib/libupgrade.a -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 crt1-sim.o: No such file or directory /opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find _vectors.o: No such file or directory /opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lsim /opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lhandlers-sim collect2: error: ld returned 1 exit status make: *\ [.output/eagle/debug/image/eagle.app.v6.out] Error 1

I have modified my makefile to solve the -lmXXXX link problem:

LINKFLAGS_eagle.app.v6 = \ -L$(SDK_PATH)/lib \ -Wl,--gc-sections \ -nostdlib \ -T$(LD_FILE) \ -Wl,--no-check-sections \ -u call_user_start \ -Wl,-static \ -Wl,--start-group \ -lgcc \ -lhal \ -lphy \ -lpp \ -lnet80211 \ -lcrypto \ -lwpa \ -lmain \ -lfreertos \ -llwip \ -lssl \ -ljson \ -lsmartconfig \ -lpwm \ -L./libesphttpd \ -lesphttpd \ -lwebpages-espfs \ $(DEP_LIBS_eagle.app.v6) \ -Wl,--end-group \ -lmirom \