Giter Club home page Giter Club logo

Comments (9)

HowardsPlayPen avatar HowardsPlayPen commented on September 25, 2024 1

Just today I have been looking to compile ElegantOTA in async mode and had the above unresolved externals (eg undefined reference to `mbedtls_md5_starts ).

To fix the above issue I found mention (me-no-dev/ESPAsyncWebServer#1141) to include the following in platform.ini
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git

(as the code was updated in the repository but no release made to include it). This fixed the error for me (I obviously removed the reference to the downloaded version of "me-no-dev/ESP Async WebServer@^1.2.3" )

As a side node - I also had worked through the cryptic error of
error: 'HTTP_DELETE' conflicts with a previous declaration XX(0, DELETE, DELETE)

and found that I hadnt updated the build_flags in platform.ini as described above to:
build_flags=-DELEGANTOTA_USE_ASYNC_WEBSERVER=1

I mention this only because the issue was not obvious and I had to search a while to find the build_flags update was needed.

Note: initially I had espressif32 version 6.3.0 installed - so I updated it to 6.4.0, as mentioned above and that did not solve the unresolved external issue (although it might have helped stop subsequent issues showing up - hence me mentioning it)

from elegantota.

mathieucarbou avatar mathieucarbou commented on September 25, 2024

Maybe try to fix the expressif32 version. Example:

[env]
framework = arduino
platform = [email protected]
lib_compat_mode = strict
lib_ldf_mode = deep+

from elegantota.

sbarabe avatar sbarabe commented on September 25, 2024

Hi, thanks for the reply. I'm quite new to PlatformIO and some setup are eluding me yet !

Ok I've tried this ini:

[env:esp32dev]
platform = [email protected]
lib_compat_mode = strict
lib_ldf_mode = deep+
board = esp32dev
framework = arduino
lib_deps = 
	ayushsharma82/ElegantOTA@^3.1.0
	me-no-dev/AsyncTCP@^1.1.1
	me-no-dev/ESP Async WebServer@^1.2.3
build_flags=-DELEGANTOTA_USE_ASYNC_WEBSERVER=1

Now I've this error instead:

src/main.cpp:35:10: fatal error: ElegantOTA.h: No such file or directory

********************************************************************
* Looking for ElegantOTA.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ElegantOTA.h"
* Web  > https://registry.platformio.org/search?q=header:ElegantOTA.h
*
********************************************************************

 #include <ElegantOTA.h>
          ^~~~~~~~~~~~~~
compilation terminated.

I've reinstall the ElegantOTA lib, but it remains the same...

If I comment the "strict" and "deep+" lines in the ini file, I got the first error as describe initially...

from elegantota.

mathieucarbou avatar mathieucarbou commented on September 25, 2024

Did you check that the dependency downloads correctly ?

Maybe try to fetch from github directly:

lib_deps = 
    https://github.com/ayushsharma82/ElegantOTA@^3.1.0

from elegantota.

sbarabe avatar sbarabe commented on September 25, 2024

Sorry, I'm really noob at this ! Can't get it from github:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Library Manager: Installing git+https://github.com/ayushsharma82/ElegantOTA @ ^3.1.0
UserSideException: Please install Git client from https://git-scm.com/downloads

 *  The terminal process "C:\Users\sbara\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

I don't know what to install and where, is it a Visual Code extension ?

from elegantota.

sbarabe avatar sbarabe commented on September 25, 2024

So I try the Elegant Demo (not Async) with my original ini file and it compiles OK.

The conflict is in the Async Demo, maybe it's flag related or in regard with AsyncTCP and/or ESPAsyncwebserver ????

For the flag in PlatformIO, is it the correct way:

build_flags=-DELEGANTOTA_USE_ASYNC_WEBSERVER=1

from elegantota.

mathieucarbou avatar mathieucarbou commented on September 25, 2024

For the flag in PlatformIO, is it the correct way:

build_flags=-DELEGANTOTA_USE_ASYNC_WEBSERVER=1

yes.

But your error is quite descriptive: Please install Git client from https://git-scm.com/downloads

Make sure you have a proper dev. env. in place before even thinking of using platformio...

The project works fine (I am a contributor) and CI build pass.

from elegantota.

sbarabe avatar sbarabe commented on September 25, 2024

Thank you Mathieu, I couldn't find a way yet with Async type OTA, but it works fine with the "sync" version. So I'll stick with that for now.

from elegantota.

sbarabe avatar sbarabe commented on September 25, 2024

@HowardsPlayPen

To fix the above issue I found mention (me-no-dev/ESPAsyncWebServer#1141) to include the following in platform.ini lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git

(as the code was updated in the repository but no release made to include it). This fixed the error for me (I obviously removed the reference to the downloaded version of "me-no-dev/ESP Async WebServer@^1.2.3" )

I've replace lib_deps to the ESPAsyncWebServer git like you popose and it works fine !

Thanks for the help !

from elegantota.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.