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

Platformio library conflict #20

Open
forty76 opened this issue Dec 17, 2024 · 1 comment
Open

Platformio library conflict #20

forty76 opened this issue Dec 17, 2024 · 1 comment

Comments

@forty76
Copy link

forty76 commented Dec 17, 2024

Hi, I have test library with ESP32S3 in VSC-platformio
When compile code following your instructions have "multiple definition of..."

this is just one of many

/home/forty76/.platformio/packages/[email protected]+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-n16r8v/lib95e/libESP Async WebServer.a(WebRequest.cpp.o): in function _ZN21AsyncWebServerRequest7_onPollEv': /home/forty76/Documenti/PlatformIO/ESP32/httpup_test/.pio/libdeps/esp32-s3-devkitc-1-n16r8v/ESP Async WebServer/src/WebRequest.cpp:190: multiple definition of _ZN21AsyncWebServerRequest7_onPollEv'; .pio/build/esp32-s3-devkitc-1-n16r8v/lib484/libESPAsyncWebServer.a(WebRequest.cpp.o):/home/forty76/Documenti/PlatformIO/ESP32/httpup_test/.pio/libdeps/esp32-s3-devkitc-1-n16r8v/ESPAsyncWebServer/src/WebRequest.cpp:173: first defined here

I configure platformio.ini

lib_deps =
https://github.com/mathieucarbou/AsyncTCP
;https://github.com/mathieucarbou/ESPAsyncWebServer <<----- conflict
https://github.com/forty76/myEspFileManager
https://github.com/IPdotSetAF/ESPAsyncHTTPUpdateServer <<<--- conflict

I solved it by change
https://github.com/me-no-dev/AsyncTCP
https://github.com/me-no-dev/ESPAsyncWebServer

Your library force download of ESPAsyncWebServer-AsyncTCP from https://github.com/me-no-dev

@IPdotSetAF
Copy link
Owner

hey @forty76 . thanks for the feedback.

seems like The version of ESPAsyncWebServer-AsyncTCP that the library depended on was different from the version which you explicitly imported. it could be solved by matching the lib versions.

if there is a newer release of the dependencies, feel free to open a pull request and increase the dependency versions. I'll check it out.

Please follow the contribution steps in the readme, if you need to.

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

No branches or pull requests

2 participants