I was trying to install AWS FreeRTOS on my system. However, when I try to build it, I get the following error:
D:\Softwares\FreeRTOS\FreeRTOS>cmake -DVENDOR=espressif -DBOARD=esp32_plus_ecc608a_devkitc -DCOMPILER=xtensa-esp32 -GNinja -S . -B D:\Softwares\FreeRTOS\FreeRTOS\Build – The C compiler identification is unknown – The CXX compiler identification is unknown CMake Error at CMakeLists.txt:8 (project):
** No CMAKE_C_COMPILER could be found.**
** 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.**
CMake Error at CMakeLists.txt:8 (project):
** No CMAKE_CXX_COMPILER could be found.**
** Tell CMake where to find the compiler by setting either the environment**
** variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path**
** to the compiler, or to the compiler name if it is in the PATH.**
– Configuring incomplete, errors occurred! See also “D:/Softwares/FreeRTOS/FreeRTOS/Build/CMakeFiles/CMakeOutput.log”. See also “D:/Softwares/FreeRTOS/FreeRTOS/Build/CMakeFiles/CMakeError.log”.
Hello, I’m having the same issue. I’m trying to build FreeRTOS:
C:\FreeRTOS>cmake -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 -GNinja -S . -B C:\FreeRTOS\pgbuild
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:8 (project):
The CMAKE_C_COMPILER:
xtensa-esp32
is not a full path and was not found in the PATH.
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.
CMake Error at CMakeLists.txt:8 (project):
The CMAKE_CXX_COMPILER:
xtensa-esp32
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "C:/FreeRTOS/pgbuild/CMakeFiles/CMakeOutput.log".
See also "C:/FreeRTOS/pgbuild/CMakeFiles/CMakeError.log".
I installed the Espressif toolchain properly and I have all the listed environment variables present. I’m able to build and flash all the example ESP-IDF projects fine so I’m not sure what’s going on.