Xinyuan-LilyGO / LilyGo-EPD47

GNU General Public License v3.0
379 stars 119 forks source link

Demo's always give compile errors #61

Closed g7kse closed 2 years ago

g7kse commented 2 years ago

Unfortunately all efforts to compile any of the examples results in similar compile errors. An example from the demo is....

C:\Users\g7kse\Documents\Arduino\libraries\LilyGo-EPD47\examples\demo\demo.ino: In function 'void setup()':
C:\Users\g7kse\Documents\Arduino\libraries\LilyGo-EPD47\examples\demo\demo.ino:79:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     char *string1 = "โžธ 16 color grayscale  ๐Ÿ˜€ \n";
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\g7kse\Documents\Arduino\libraries\LilyGo-EPD47\examples\demo\demo.ino:80:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     char *string2 = "โžธ Use with 4.7\" EPDs ๐Ÿ˜ \n";
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\g7kse\Documents\Arduino\libraries\LilyGo-EPD47\examples\demo\demo.ino:81:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     char *string3 = "โžธ High-quality font rendering โœŽ๐Ÿ™‹";
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\g7kse\Documents\Arduino\libraries\LilyGo-EPD47\examples\demo\demo.ino:82:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     char *string4 = "โžธ ~630ms for full frame draw ๐Ÿš€\n";
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\g7kse\Documents\Arduino\libraries\LilyGo-EPD47\src\rmt_pulse.c: In function 'rmt_pulse_init':
C:\Users\g7kse\Documents\Arduino\libraries\LilyGo-EPD47\src\rmt_pulse.c:55:5: warning: implicit declaration of function 'rmt_ll_enable_tx_end_interrupt'; did you mean 'xthal_get_interrupt'? [-Wimplicit-function-declaration]
     rmt_ll_enable_tx_end_interrupt(&RMT, row_rmt_config.channel, true);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     xthal_get_interrupt
c:/users/g7kse/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\LilyGo-EPD47\rmt_pulse.c.o:(.literal.rmt_pulse_init+0x10): undefined reference to `rmt_ll_enable_tx_end_interrupt'
c:/users/g7kse/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\LilyGo-EPD47\rmt_pulse.c.o: in function `rmt_pulse_init':
C:\Users\g7kse\Documents\Arduino\libraries\LilyGo-EPD47\src/rmt_pulse.c:55: undefined reference to `rmt_ll_enable_tx_end_interrupt'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
 Used: C:\Users\g7kse\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0\libraries\SD
 Not used: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
Error compiling for board ESP32 Dev Module.

Similar 'exit status 1' errors appear on all all examples but other simpler wifi scan esp32 examples do work.

I've used the dev board branch, used different machines, reinstalled arduino ide etc don't know where to go next....any clues?

g7kse commented 2 years ago

Using this work around does solve it but this shouldn't really be normal should it?

LilyGO commented 2 years ago

Hello, it has been repaired. Available in version 2.0.0