espressif / esp32-arduino-lib-builder

138 stars 153 forks source link

Unable to Build Arduino ESP32 Library #192

Open polarix2017 opened 1 month ago

polarix2017 commented 1 month ago

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.

Screenshots: image image

polarix2017 commented 1 month ago

An other try: Screenshot 2024-07-16 060325 Screenshot 2024-07-16 060350 Screenshot 2024-07-16 064448

me-no-dev commented 1 month ago

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 commented 1 month ago

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?

image

lucasssvaz commented 1 month ago

@polarix2017 This is normal for IDF4. It is not stuck, just takes a very long time.

lucasssvaz commented 1 month ago

@me-no-dev Added the missing info in https://github.com/espressif/arduino-esp32/pull/10040

polarix2017 commented 1 month ago

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