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

Unable to Build Arduino ESP32 Library #192

Open
polarix2017 opened this issue Jul 15, 2024 · 6 comments
Open

Unable to Build Arduino ESP32 Library #192

polarix2017 opened this issue Jul 15, 2024 · 6 comments

Comments

@polarix2017
Copy link

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
Copy link
Author

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

@me-no-dev
Copy link
Member

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
Copy link
Author

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
Copy link
Contributor

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

@lucasssvaz
Copy link
Contributor

@me-no-dev Added the missing info in espressif/arduino-esp32#10040

@polarix2017
Copy link
Author

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

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

3 participants