ESP-DASH icon indicating copy to clipboard operation
ESP-DASH copied to clipboard

[BUG] Example does not compile with PlatformIO

Open BorisBrock opened this issue 1 year ago • 4 comments

I just created a new project using the provided example code. This is my platformio.ini:

[env:lolin32]
platform = espressif32
board = lolin32
framework = arduino
lib_ldf_mode=deep

lib_deps =
  ayushsharma82/ESP-DASH @ ^4.0.2

When compiling the project, it all ends in sadness:

/home/username/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/lolin32/lib259/libESP Async WebServer.a(AsyncWebSocket.cpp.o):(.literal._ZN22AsyncWebSocketResponseC2ERK6StringP14AsyncWebSocket+0x18): undefined reference to `SHA1Init'
/home/username/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/lolin32/lib259/libESP Async WebServer.a(AsyncWebSocket.cpp.o):(.literal._ZN22AsyncWebSocketResponseC2ERK6StringP14AsyncWebSocket+0x1c): undefined reference to `SHA1Update'
/home/username/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/lolin32/lib259/libESP Async WebServer.a(AsyncWebSocket.cpp.o):(.literal._ZN22AsyncWebSocketResponseC2ERK6StringP14AsyncWebSocket+0x20): undefined reference to `SHA1Final'
/home/username/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/lolin32/lib259/libESP Async WebServer.a(AsyncWebSocket.cpp.o): in function `AsyncWebSocketResponse::AsyncWebSocketResponse(String const&, AsyncWebSocket*)':
/home/username/git/embedded_projects/Arduino/EspUiTest/.pio/libdeps/lolin32/ESP Async WebServer/src/AsyncWebSocket.cpp:1269: undefined reference to `SHA1Init'
/home/username/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/username/git/embedded_projects/Arduino/EspUiTest/.pio/libdeps/lolin32/ESP Async WebServer/src/AsyncWebSocket.cpp:1270: undefined reference to `SHA1Update'
/home/username/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/username/git/embedded_projects/Arduino/EspUiTest/.pio/libdeps/lolin32/ESP Async WebServer/src/AsyncWebSocket.cpp:1271: undefined reference to `SHA1Final'
/home/username/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/lolin32/lib259/libESP Async WebServer.a(WebAuthentication.cpp.o):(.literal._ZL6getMD5PhtPc+0x4): undefined reference to `mbedtls_md5_starts'
/home/username/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/lolin32/lib259/libESP Async WebServer.a(WebAuthentication.cpp.o): in function `getMD5(unsigned char*, unsigned short, char*)':
/home/username/git/embedded_projects/Arduino/EspUiTest/.pio/libdeps/lolin32/ESP Async WebServer/src/WebAuthentication.cpp:73: undefined reference to `mbedtls_md5_starts'
collect2: error: ld returned 1 exit status

How can ESP-DASH be used from PlatformIO?

BorisBrock avatar Oct 20 '23 11:10 BorisBrock

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still facing the problem, please tag the author of repository and state your concern.

stale[bot] avatar Feb 11 '24 10:02 stale[bot]

Seems to be also an issue with the ESP Async WebServer dependency. Please see #195. I think the selection of the dependencies should be mentioned in the documentation, so people new to this project know how to fix it. Best would be, if the recommended dependencies could be listed there as well

mhummels avatar Mar 16 '24 15:03 mhummels

  bblanchon/ArduinoJson @ 7.0.4
  esphome/AsyncTCP-esphome @ 2.1.3
  mathieucarbou/ESP Async WebServer @ 2.8.1
  ayushsharma82/ESP-DASH @ 4.0.4

https://docs.espdash.pro/installation/

mathieucarbou avatar Mar 16 '24 16:03 mathieucarbou

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] avatar Jun 30 '24 06:06 github-actions[bot]

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] avatar Aug 02 '24 06:08 github-actions[bot]

Installation docs were updated to pin dependencies.

ayushsharma82 avatar Aug 03 '24 05:08 ayushsharma82