Skip to content

Unable to Build Arduino ESP32 Library #192

Open
@polarix2017

Description

@polarix2017

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

Activity

polarix2017

polarix2017 commented on Jul 16, 2024

@polarix2017
Author

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

me-no-dev

me-no-dev commented on Jul 16, 2024

@me-no-dev
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

polarix2017 commented on Jul 16, 2024

@polarix2017
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

lucasssvaz commented on Jul 16, 2024

@lucasssvaz
Contributor

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

lucasssvaz

lucasssvaz commented on Jul 16, 2024

@lucasssvaz
Contributor

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

polarix2017

polarix2017 commented on Jul 17, 2024

@polarix2017
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @me-no-dev@polarix2017@lucasssvaz

        Issue actions

          Unable to Build Arduino ESP32 Library · Issue #192 · espressif/esp32-arduino-lib-builder