WebSerial icon indicating copy to clipboard operation
WebSerial copied to clipboard

Cannot compile anymore even demo code:

Open gfaman opened this issue 3 years ago • 4 comments

Hi, from some weeks already, I cannot compile anymore my own software which was working well 1 month ago. Even the simple demo version here cannot be compile anymore. Seems some issues with some dependent libraries. Always got undefined reference: c:/users/gfama/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\gfama\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncWebSocket.cpp:1273: undefined reference to SHA1Update'** c:/users/gfama/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\gfama\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncWebSocket.cpp:1274: undefined reference to SHA1Final' c:/users/gfama/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\ESPAsyncWebServer-master\WebAuthentication.cpp.o:(.literal._ZL6getMD5PhtPc+0x4): undefined reference to mbedtls_md5_starts' c:/users/gfama/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\ESPAsyncWebServer-master\WebAuthentication.cpp.o: in function getMD5(unsigned char, unsigned short, char)': C:\Users\gfama\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/WebAuthentication.cpp:73: undefined reference to `mbedtls_md5_starts'

Any idea ? I tried to downgrade board ESP32, all dependent libraries, cannot find the reason.

Thanks,

Laurent

gfaman avatar Jun 09 '22 12:06 gfaman

Hi @gfaman , Please provide the version of your ESP32 Arduino Core, I'll check it out.

ayushsharma82 avatar Jun 16 '22 21:06 ayushsharma82

Hi, I'm in Arduino 1.8.19 Thanks,

gfaman avatar Jun 30 '22 16:06 gfaman

For anyone having this issue,

For platformio, use:

lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git
 	ayushsharma82/[email protected]
 	me-no-dev/[email protected]
```	
Found this solution here: https://github.com/me-no-dev/ESPAsyncWebServer/issues/1147

italocjs avatar Dec 19 '22 21:12 italocjs

You need to get the latest library for (NOTICE THE SPELLING!!!) ESPAsyncWebSrv. Then change all #include statements from "ESPAsyncWebServer.h" to "ESPAsyncWebSrv.h"

mytistrauss avatar Jan 31 '23 14:01 mytistrauss