Xinyuan-LilyGO / LilyGo-EPD47

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

error compiling arduino #35

Closed rolohaun closed 3 years ago

rolohaun commented 3 years ago

I get this error when compiling in Arduino

sketch\demo.ino.cpp.o:(.literal._Z5setupv+0x6c): undefined reference to writeln' sketch\demo.ino.cpp.o: In functionsetup()': C:\Users\Ron\Documents\Arduino\libraries\LilyGo-EPD47-master\examples\demo/demo.ino:72: undefined reference to writeln' C:\Users\Ron\Documents\Arduino\libraries\LilyGo-EPD47-master\examples\demo/demo.ino:86: undefined reference towriteln' C:\Users\Ron\Documents\Arduino\libraries\LilyGo-EPD47-master\examples\demo/demo.ino:89: undefined reference to writeln' C:\Users\Ron\Documents\Arduino\libraries\LilyGo-EPD47-master\examples\demo/demo.ino:93: undefined reference towriteln' sketch\demo.ino.cpp.o:C:\Users\Ron\Documents\Arduino\libraries\LilyGo-EPD47-master\examples\demo/demo.ino:95: more undefined references to `writeln' follow collect2.exe: error: ld returned 1 exit status Multiple libraries were found for "SD.h" Used: C:\Users\Ron\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.5\libraries\SD Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\SD exit status 1 Error compiling for board ESP32 Dev Module.

G6EJD commented 3 years ago

Do you the screen driver installed?

rolohaun commented 3 years ago

ok I added the epdiy library to the demo sketch and that solved the error however now it's asking for a display type

In file included from C:\Users\Ron\Documents\Arduino\libraries\epdiy-master\src/epd_driver/include/epd_driver.h:11:0, from C:\Users\Ron\Documents\Arduino\libraries\epdiy-master\src/epd_driver.h:4, from C:\Users\Ron\AppData\Local\Temp\arduino_modified_sketch_548536\demo.ino:1: C:\Users\Ron\Documents\Arduino\libraries\epdiy-master\src/epd_driver/include/epd_internals.h:55:2: error: #error "no display type defined!"

error "no display type defined!"

^ Multiple libraries were found for "epd_driver.h" Used: C:\Users\Ron\Documents\Arduino\libraries\epdiy-master Not used: C:\Users\Ron\Documents\Arduino\libraries\LilyGo-EPD47-master Multiple libraries were found for "SD.h" Used: C:\Users\Ron\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.5\libraries\SD Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\SD exit status 1 Error compiling for board ESP32 Dev Module.

G6EJD commented 3 years ago

Try one of the other examples eg drawimages

rolohaun commented 3 years ago

same error

In file included from C:\Users\Ron\Documents\Arduino\libraries\epdiy-master\src/epd_driver/include/epd_driver.h:11:0, from C:\Users\Ron\Documents\Arduino\libraries\epdiy-master\src/epd_driver.h:4, from C:\Users\Ron\Documents\Arduino\libraries\LilyGo-EPD47-master\examples\drawImages\drawImages.ino:9: C:\Users\Ron\Documents\Arduino\libraries\epdiy-master\src/epd_driver/include/epd_internals.h:55:2: error: #error "no display type defined!"

error "no display type defined!"

^ Multiple libraries were found for "epd_driver.h" Used: C:\Users\Ron\Documents\Arduino\libraries\epdiy-master Not used: C:\Users\Ron\Documents\Arduino\libraries\LilyGo-EPD47-master exit status 1 Error compiling for board ESP32 Dev Module.

rolohaun commented 3 years ago

I was using the epdiy library direct from the epdiy/git and not from this git. I cleaned everything out and now it seems to work

G6EJD commented 3 years ago

Close the issue then?

skychecker commented 1 year ago

I was using the epdiy library direct from the epdiy/git and not from this git. I cleaned everything out and now it seems to work

Could you please explain more details about how had you fixed the issue ? I have the absolute same problem. Thank you.