[solved] Cmake can't find compiler after running idf.py -C components create-component (IDF-2442)
Posted: Fri Nov 27, 2020 5:25 pm
I have a project dir and I try to add a new component using the idf.py utility script:
idf.py -C components create-component my_component
as documented here: https://docs.espressif.com/projects/esp ... ystem.html
But it doesn't work, apparently there's no compiler found. But I have no idea what i should input into the PATH variable or if it's even required? I'm thinking I might have misconfigured something.
Here's the context:
Any ideas?
idf.py -C components create-component my_component
as documented here: https://docs.espressif.com/projects/esp ... ystem.html
But it doesn't work, apparently there's no compiler found. But I have no idea what i should input into the PATH variable or if it's even required? I'm thinking I might have misconfigured something.
Here's the context:
Code: Select all
C:\dev\30_https_ota>idf.py -C components create-component my_component
Executing action: create-component
Running cmake in directory c:\dev\30_https_ota\components\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=1 c:\dev\30_https_ota\components"...
Warn about uninitialized values.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
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 in CMakeLists.txt:
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.
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.13)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "C:/dev/30_https_ota/components/build/CMakeFiles/CMakeOutput.log".
See also "C:/dev/30_https_ota/components/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1