Page 1 of 1

Build idf.py build issue

Posted: Thu Nov 21, 2019 3:05 pm
by tabulous
C:\Users\LTrueman\Desktop\esp-idf>idf.py build
Checking Python dependencies...
Python requirements from C:\Users\LTrueman\Desktop\esp-idf\requirements.txt are satisfied.
Executing action: all (aliases: build)
Running cmake in directory c:\users\ltrueman\desktop\esp-idf\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=0 c:\users\ltrueman\desktop\esp-idf"...
Warn about uninitialized values.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (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:2 (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.


CMake Error at CMakeLists.txt:2 (project):
No CMAKE_ASM_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.


-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "C:/Users/LTrueman/Desktop/esp-idf/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/LTrueman/Desktop/esp-idf/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

C:\Users\LTrueman\Desktop\esp-idf>

Re: Build idf.py build issue

Posted: Thu Nov 21, 2019 3:15 pm
by ESP_Dazz

Code: Select all

C:\Users\LTrueman\Desktop\esp-idf>
Run your build command in an IDF project, not in the ESP-IDF directory

Re: Build idf.py build issue

Posted: Thu Nov 21, 2019 3:22 pm
by tabulous
Where is the projects folder ?

Re: Build idf.py build issue

Posted: Thu Nov 21, 2019 3:23 pm
by ESP_Dazz
There are a bunch of example projects in esp-idf/examples. I suggest you chose one of the projects in get-started.

Re: Build idf.py build issue

Posted: Thu Nov 21, 2019 3:25 pm
by tabulous
right got it, thanks

Re: Build idf.py build issue

Posted: Tue Nov 01, 2022 7:43 pm
by squiggle
Has anyone found a solution for this yet?

idf.py build always says

[cmake] -- The C compiler identification is unknown
[cmake] -- The CXX compiler identification is unknown
[cmake] -- The ASM compiler identification is unknown

Re: Build idf.py build issue

Posted: Fri Sep 22, 2023 10:46 pm
by jetsup
squiggle wrote:
Tue Nov 01, 2022 7:43 pm
Has anyone found a solution for this yet?

idf.py build always says

[cmake] -- The C compiler identification is unknown
[cmake] -- The CXX compiler identification is unknown
[cmake] -- The ASM compiler identification is unknown
The solution stated above should work, make sure that you are in your the base directory of your project. export ESP-IDF to path by running export.bat in the esp-idf directory, for windows user:

Code: Select all

D:\MyProjects\ESP-IDF\Blink>C:\Users\username\esp\esp-idf\export.bat
then try building your project.