You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.4.0
Espressif SoC revision.
ESP32-C6
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-C6-DevKitC-1 v1.2
Power Supply used.
USB
What is the expected behavior?
Generate CMake build files and compile the zigbee example projects HA_on_off_switch and HA_on_off_light.
What is the actual behavior?
The zigbee example projects HA_on_off_switch and HA_on_off_light fail to generate CMake build files and fail to compile.
The incorrect directory is sourced for zcl_utility.
Steps to reproduce.
Create new example zigbee projects HA_on_off_switch or HA_on_off_light.
Select a target device, attempt to generate CMake build files, or attempt to build the project.
Debug Logs.
More Information.
In both zigbee example projects HA_on_off_switch and HA_on_off_light, main/CMakeLists.txt points to the incorrect zcl_utility directories with these two lines:
github-actionsbot
changed the title
zigbee examples point to the incorrect directory for zcl_utility, causing CMake failure
zigbee examples point to the incorrect directory for zcl_utility, causing CMake failure (IDFGH-14552)
Jan 31, 2025
@rmv5004 Are you using Windows? Did you rebuild IDF, or just change the file? I'm on Linux which uses "/" and my original fix works, but I didn't rebuild IDF.
Since all the other CMakeLists.txt files I looked at also use "/", I'm guessing they are changed at build time when IDF is built for Windows. I'm not very familiar with the project though.
The Zigbee examples use relative paths to point to the source code, which is fine for building the original examples. However, it is better to use absolute paths. If you plan to create a new Zigbee example, please correct the path before optimization is merged.
Answers checklist.
IDF version.
v5.4.0
Espressif SoC revision.
ESP32-C6
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-C6-DevKitC-1 v1.2
Power Supply used.
USB
What is the expected behavior?
Generate CMake build files and compile the zigbee example projects HA_on_off_switch and HA_on_off_light.
What is the actual behavior?
The zigbee example projects HA_on_off_switch and HA_on_off_light fail to generate CMake build files and fail to compile.
The incorrect directory is sourced for zcl_utility.
Steps to reproduce.
Debug Logs.
More Information.
In both zigbee example projects HA_on_off_switch and HA_on_off_light, main/CMakeLists.txt points to the incorrect zcl_utility directories with these two lines:
These lines should be changed to the following to point to the correct location of zcl_utility in the current version of IDF:
The above change is functional on my fresh Linux install of IDF v5.4.0
The text was updated successfully, but these errors were encountered: