ESP-IDF CMake Error on ESP32C6 Board - Missing CJSON.c File

Hi everyone! I'm experiencing a build error with ESP-IDF on my ESP32C6 board and I'd appreciate some help. I'm trying to build the "blink" example in the get-started directory. Error Message: ... CMake Error at /home/vboxuser/esp/esp-1df/tools/cmake/component.cmake: 479 (add_library): Cannot find source file: /home/vboxuser/esp/esp-1df/components/json/cJSON/CJSON.c ... CMake Generate step falled. Build files cannot be regenerated correctly. ... Troubleshooting Steps: Verified that ESP-IDF is installed correctly and the json component is included. Double-checked that the file path /home/vboxuser/esp/esp-1df/components/json/cJSON/CJSON.c exists (although this likely won't be your actual path on an ESP32C6 project). Ran idf.py clean and idf.py build, but the error remains. Additional Information: ESP-IDF version: (specify your version) Operating system: (specify your OS) ESP32C6 development board model: (specify your board model) Any specific configurations or custom components in your project. Steps you've taken to set up the ESP32C6 board and ESP-IDF environment. Question: Is there a specific configuration for building ESP-IDF projects on ESP32C6 boards that I might be missing? Could the file path issue be related to differences in component structure for ESP32C6 compared to other ESP32 boards? Thanks in advance for your assistance!
2 Replies
Navadeep
Navadeep9mo ago
Umesh Lokhande
Umesh Lokhande9mo ago
Hi @Prachi Patil just make sure while installing Espressif IDE we've to manually checked the box ESP32-C6 (ESP-IDF v5.1+) Please refer to the picture attached. I hope this may resolve linking and path related issues.
No description
Want results from more Discord servers?
Add your server