Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Example does not compile with PlatformIO #164

Closed
BorisBrock opened this issue Oct 20, 2023 · 6 comments
Closed

[BUG] Example does not compile with PlatformIO #164

BorisBrock opened this issue Oct 20, 2023 · 6 comments
Labels

Comments

@BorisBrock
Copy link

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?

Copy link

stale bot commented Feb 11, 2024

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 stale bot added the wontfix label Feb 11, 2024
@mhummels
Copy link

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

@stale stale bot removed the wontfix label Mar 16, 2024
@mathieucarbou
Copy link
Contributor

mathieucarbou commented Mar 16, 2024

  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/

Copy link
Contributor

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.

Copy link
Contributor

github-actions bot commented Aug 2, 2024

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 github-actions bot added the Stale label Aug 2, 2024
@ayushsharma82
Copy link
Owner

Installation docs were updated to pin dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants