ayushsharma82 / ElegantOTA

OTA updates made slick and simple for everyone!
https://elegantota.pro
GNU Affero General Public License v3.0
643 stars 119 forks source link

[BUG] Build error for ESP8266 with latest version on PlatformIO #218

Closed antwal closed 3 months ago

antwal commented 3 months ago

Initially it worked until a few months ago, now that I have updated a bit everything in the compilation it generates a link error:

Error Build log here

if I remove all the elegantota, everything works correctly

Success Build log here

PlatformIO Config File:

[env:esp01]
platform = espressif8266
board = esp01_1m
framework = arduino
board_build.flash_mode = dout
monitor_speed = 115200
board_build.filesystem = littlefs
;build_flags = -DELEGANTOTA_USE_ASYNC_WEBSERVER=1
lib_deps = 
    bblanchon/ArduinoJson@^7.0.4
    adafruit/DHT sensor library@^1.4.6
    mathieucarbou/ESP Async WebServer@^3.0.3
;   ayushsharma82/ElegantOTA@^3.1.5
    ayushsharma82/WebSerial@^2.0.6
antwal commented 3 months ago

The version 3.1.2 working, build log

mathieucarbou commented 3 months ago

Please try with :

mathieucarbou/ESPAsyncWebServer @ 3.1.5

mathieucarbou commented 3 months ago

In theory with pio you should not define the dependencies because they will be found by PIO in the elegant ota descriptor.

antwal commented 3 months ago

Please try with :

mathieucarbou/ESPAsyncWebServer @ 3.1.5

Resolving esp01 dependencies... Library Manager: Installing mathieucarbou/ESP Async WebServer @ 3.1.5 UnknownPackageError: Could not find the package with 'mathieucarbou/ESP Async WebServer @ 3.1.5' requirements for your system 'darwin_x86_64'

mathieucarbou commented 3 months ago

I wrote ESPAsyncWebServer, not ESP Async WebServer

antwal commented 3 months ago

mathieucarbou/ESPAsyncWebServer @ 3.1.5

I had already solved it in another way, but this works