Description
I'm encountering issues building any versions of the Arduino ESP32 library. I've carefully followed the steps in the documentation. Below are the details of my setup and the error I'm encountering.
Setup:
Docker version: Docker version 24.0.2, build cb74dfc
OS: Ubuntu 18.04.6 LTS (freshly installed)
Steps followed: docs
Steps to Reproduce:
Run the build script using ./build.sh -t esp32s3 -D default -c /arduino-esp32 -A release/v2.x -I release/v4.4 configured by UI interface.
Observe the output and note the warnings and errors related to the "idf" component.
Expected Behavior:
The Arduino ESP32 library should build successfully without errors.
Actual Behavior:
The build process fails with the error message indicating that the project depends on idf (>=5.1), which doesn't match any available versions.
Additional Context:
The error suggests that the required version of the idf component is not available.
Attached are the screenshots of the starting process and the error.
Activity
polarix2017 commentedon Jul 16, 2024
An other try:



me-no-dev commentedon Jul 16, 2024
You can not use the interface to build 2.x. You need to switch to the 4.4 branch of the lib-builder and use
build.sh
directly. The interface is to build the current libs.cc @lucasssvaz
polarix2017 commentedon Jul 16, 2024
I followed the instructions from the ESP32 Arduino library builder documentation to use the standalone build.sh.
However, during the pip install process, it enters an infinite loop of backtracking and eventually leads to an error related to tqdm-x.y.z-py2.py3-none-any.whl. The process never completes successfully.
Could someone assist with resolving this issue?
lucasssvaz commentedon Jul 16, 2024
@polarix2017 This is normal for IDF4. It is not stuck, just takes a very long time.
lucasssvaz commentedon Jul 16, 2024
@me-no-dev Added the missing info in espressif/arduino-esp32#10040
polarix2017 commentedon Jul 17, 2024
Hi everyone,
Thanks for the guidance.
@me-no-dev and @lucasssvaz, I followed your suggestions and switched to the 4.4 branch of the lib-builder and used build.sh directly as mentioned.
Initially,
I encountered an issue with the pip install process, which seemed to enter an infinite loop of backtracking and caused errors . However, I waited for a longer period (all last night!), as @lucasssvaz indicated this is normal for IDF4. After this time, the process completed successfully without any further issues. Updated the esp_lcd driver, rebuild static library and all seems to be working fine now.
Thanks again for your help!
Best regards,
polarix2017