Build idf.py build issue

tabulous
Posts: 34
Joined: Thu Nov 14, 2019 8:58 am

Build idf.py build issue

Postby tabulous » Thu Nov 21, 2019 3:05 pm

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>

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: Build idf.py build issue

Postby ESP_Dazz » Thu Nov 21, 2019 3:15 pm

Code: Select all

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

tabulous
Posts: 34
Joined: Thu Nov 14, 2019 8:58 am

Re: Build idf.py build issue

Postby tabulous » Thu Nov 21, 2019 3:22 pm

Where is the projects folder ?

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: Build idf.py build issue

Postby ESP_Dazz » Thu Nov 21, 2019 3:23 pm

There are a bunch of example projects in esp-idf/examples. I suggest you chose one of the projects in get-started.

tabulous
Posts: 34
Joined: Thu Nov 14, 2019 8:58 am

Re: Build idf.py build issue

Postby tabulous » Thu Nov 21, 2019 3:25 pm

right got it, thanks

squiggle
Posts: 3
Joined: Fri Oct 21, 2022 10:14 pm

Re: Build idf.py build issue

Postby squiggle » 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

jetsup
Posts: 1
Joined: Wed Aug 30, 2023 11:08 pm

Re: Build idf.py build issue

Postby jetsup » Fri Sep 22, 2023 10:46 pm

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.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 87 guests