ESP8266_Adafruit_ILI9341 icon indicating copy to clipboard operation
ESP8266_Adafruit_ILI9341 copied to clipboard

Unable to compile with the latest unofficial SDK

Open e-dredon opened this issue 9 years ago • 3 comments

Hello.

I'm in trouble compiling with the 2.0.6 Unofficial SDK / Eclipse LUNA 4.4.1 the first error is reported on Adafruit_ILI9341_fast_as.h:41 os_random(); has redundant occurance. I just commented the line. //int os_random(); then i get another fatal error in user_main.cpp:66 os_update_cpu_frequency was not declared in this scope; I don't know where and how to declare the function.

Some help would be greatly appreciated.

Best regards,

e-dredon avatar Jun 13 '15 06:06 e-dredon

Just comment it as well

Andrey. Sent from my mobile device. 13 июня 2015 г. 9:31 пользователь "e-dredon" [email protected] написал:

Hello.

I'm in trouble compiling with the 2.0.6 Unofficial SDK / Eclipse LUNA 4.4.1 the first error is reported on Adafruit_ILI9341_fast_as.h:41 os_random(); has redundant occurance. I just commented the line. //int os_random(); then i get another fatal error in user_main.cpp:66 os_update_cpu_frequency was not declared in this scope; I don't know where and how to declare the function.

Some help would be greatly appreciated.

Best regards,

— Reply to this email directly or view it on GitHub https://github.com/Sermus/ESP8266_Adafruit_ILI9341/issues/4.

Sermus avatar Jun 13 '15 07:06 Sermus

Thanks for your fast answer... Ok so I just commented the line 65 in user_main.cpp Then I got some more issues.

c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: cannot open linker script file c:/Espressif/ESP8266_SDK/ld/eagle.app.v6.cpp.ld: Invalid argument C:/Espressif/examples/ESP8266_Adafruit_ILI9341/Makefile:220: recipe for target 'build/app.out' failed collect2.exe: error: ld returned 1 exit status mingw32-make.exe: *** [build/app.out] Error 1

It seems the makefile has to be modifed in line 149 LD_SCRIPT = eagle.app.v6.cpp.ld if i'm not mistaken the filename has changed in the latest SDK. LD_SCRIPT = eagle.app.v6.ld

Check...

But i'm now facing to those errors :

c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: build/app.out section .text' will not fit in regioniram1_0_seg' c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function user_uart_wait_tx_fifo_empty': (.irom0.text+0x340): undefined reference touser_rf_pre_init' c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function user_uart_wait_tx_fifo_empty': (.irom0.text+0x458): undefined reference touser_rf_pre_init' build/app_app.a(routines.o): In function operator delete[](void*)': routines.cpp:(.text+0x4c): undefined reference to__init_array_start' routines.cpp:(.text+0x50): undefined reference to `__init_array_end' collect2.exe: error: ld returned 1 exit status C:/Espressif/examples/ESP8266_Adafruit_ILI9341/Makefile:220: recipe for target 'build/app.out' failed mingw32-make.exe: *** [build/app.out] Error 1

Finally i just changed the SDK_BASE to revert to the 095 and it compiles properly. SDK_BASE ?= c:/Espressif/ESP8266_SDK_095

Hope you will work on a fix for the latest SDK. It's far beyond my current C/++ skills...

e-dredon avatar Jun 13 '15 12:06 e-dredon

I hit the two errors from routines.o. You might want to check out http://www.esp8266.com/viewtopic.php?f=9&t=478 on how to work around those errors.

rith87 avatar Jul 24 '15 05:07 rith87