ayushsharma82 / WebSerial

A remote terminal library for wireless microcontrollers to log, monitor or debug your firmware/product
https://webserial.pro
GNU Affero General Public License v3.0
461 stars 107 forks source link

Cannot compile anymore even demo code: #49

Closed gfaman closed 2 weeks ago

gfaman commented 2 years ago

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 tombedtls_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 tombedtls_md5_starts'

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

Thanks,

Laurent

ayushsharma82 commented 2 years ago

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

gfaman commented 1 year ago

Hi, I'm in Arduino 1.8.19 Thanks,

italocjs commented 1 year ago

For anyone having this issue,

For platformio, use:

lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git
    ayushsharma82/WebSerial@1.3.0
    me-no-dev/AsyncTCP@1.1.1

Found this solution here: https://github.com/me-no-dev/ESPAsyncWebServer/issues/1147

mytistrauss commented 1 year ago

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

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been stalled for 5 days with no activity.