CMake error building
Posted: Mon Mar 22, 2021 10:33 pm
I'am new user of ESP-IDF,
I use VS Code, but when I try to build the project, I become following output on Terminal.
Any suggestions-
I use VS Code, but when I try to build the project, I become following output on Terminal.
Any suggestions-
Code: Select all
> Executing task: cmake -G Ninja .. <
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version
"2.21.0.windows.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Homos-Skiptikus/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/Homos-Skiptikus/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
CMake Error at C:/Users/Homos-Skiptikus/esp/.espressif/tools/cmake/3.16.4/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:44 (try_compile):
Failed to open
C:/Users/Homos-Skiptikus/Desktop/blink/build/CMakeFiles/CMakeTmp/CMakeLists.txt
Permission denied
Call Stack (most recent call first):
C:/Users/Homos-Skiptikus/esp/esp-idf/tools/cmake/project.cmake:307 (__project)
CMakeLists.txt:6 (project)
-- Check for working C compiler: C:/Users/Homos-Skiptikus/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- broken
CMake Error at C:/Users/Homos-Skiptikus/esp/.espressif/tools/cmake/3.16.4/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"C:/Users/Homos-Skiptikus/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
C:/Users/Homos-Skiptikus/esp/esp-idf/tools/cmake/project.cmake:307 (__project)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/Homos-Skiptikus/Desktop/blink/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Homos-Skiptikus/Desktop/blink/build/CMakeFiles/CMakeError.log".
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja .." terminated with exit code: 1.