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

Error while compiling light example with esp_matter v1.3 with esp-idf v5.1.5 tag for esp32c6 (CON-1534) #1264

Open
milindmovasha opened this issue Jan 30, 2025 · 2 comments

Comments

@milindmovasha
Copy link

Describe the bug

I am trying to compile the esp_mater light example using esp-idf from the tag https://github.com/espressif/esp-idf/releases/tag/v5.1.5 and esp_matter v1.3 for esp32c6.

I get the following error:
ninja: error: '/home/milindm/projects/jack/sdk/esp-idf/components/bt/controller/lib_esp32c6/esp32c6-bt-lib/libble_app.a', needed by 'light.elf', missing and no known rule to make it
ninja failed with exit code 1,

The library exists at different path.
/home/milindm/projects/jack/sdk/esp-idf/components/bt/controller/lib_esp32c6/esp32c6-bt-lib/esp32c6/libble_app.a

Used the following steps:

  • Setup esp-idf

    git clone --recursive https://github.com/espressif/esp-idf.git
    cd esp-idf
    git checkout v5.1.5
    git submodule update --init --recursive
    ./install.sh
    . ./export.sh
    cd ..
    
  • Setup esp-matter

    git clone -b release/v1.3 --depth 1 https://github.com/espressif/esp-matter.git
    cd esp-matter
    git submodule update --init --depth 1
    ./connectedhomeip/connectedhomeip/scripts/checkout_submodules.py --platform esp32 --shallow
    ./install.sh
    pip install -r requirements.txt
    . ./export.sh
    cd ..
    
  • Compilation
    cd esp-matter/examples/light
    idf.py set-target esp32c6
    idf.py build

Any idea how to resolve this?
Environment

  • ESP-Matter Commit Id: release/v1.3 ba10f49

  • ESP-IDF Commit Id: v5.1.5 454782bb6b214beb8a23273312ca4d833c504810

  • SoC: esp32c6

  • Device Logs (Please attach the log file): Please refer to description

  • Host Machine OS: Linux

  • Host Machine Python version: Python 3.11.10

  • Commissioner app and versions if present: NA

  • Home hub app and versions if present: NA

  • Commissioner's logs if present: NA

Any additional details
None

@github-actions github-actions bot changed the title Error while compiling light example with esp_matter v1.3 with esp-idf v5.1.5 tag for esp32c6 Error while compiling light example with esp_matter v1.3 with esp-idf v5.1.5 tag for esp32c6 (CON-1534) Jan 30, 2025
@shripad621git
Copy link
Contributor

@milindmovasha , we recommend using the idf v5.2.1 with esp-matter release/v1.3 as mentioned here. For esp-idf v5.1.5, you can fix the issue by specifying the correct path here which for esp-idf 5.1.5 is esp/esp-idf/components/bt/controller/lib_esp32c6/esp32c6-bt-lib/esp32c6/libbleapp.a.

@shripad621git
Copy link
Contributor

@milindmovasha , is the issue resolved?

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