Error #
CMake Error at C:/Users/***/esp/***/esp-idf/tools/cmake/project.cmake:571 (__project): The CMAKE_C_COMPILER:
xtensa-esp32-elf-gcc
is not a full path and was not found in the PATH. Perhaps the extension is
missing?
Tell CMake where to find the compiler by setting either the environment
variable “CC” or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.In my case, there are two other similar errors.
Solution #
I think this is a Path configuration issue.
My development environment is Windows 11. The cause may vary depending on your situation.
In my case, I was able to resolve the issue by adding C:\Users\***\.espressif\tools to the Path in Windows environment variables.
Tip
*** refers to your user directory. Please replace the part before tools with your own .espressif path.