And followed it. Installed git, Python and followed the ESP-IDF installation process as well as all the installations for the esp-idf. I have started the example hello world project but cannot build it. Seems like many people have this issue but I am not able to find a clear solution to this problem, perhaps you guys can help :
Full error code:
Code: Select all
> Executing task: cmake -G Ninja .. <
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.31.1.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/Lukas/.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/Lukas/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
CMake Error at C:/Users/Lukas/.espressif/tools/cmake/3.16.4/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:44 (try_compile):
Failed to open
C:/Users/Lukas/Desktop/Programming/ESP-IDF/test_programs/hello_world/build/CMakeFiles/CMakeTmp/CMakeLists.txt
Permission denied
Call Stack (most recent call first):
C:/Users/Lukas/Desktop/Programming/ESP-IDF/esp-idf/tools/cmake/project.cmake:307 (__project)
CMakeLists.txt:6 (project)
-- Check for working C compiler: C:/Users/Lukas/.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/Lukas/.espressif/tools/cmake/3.16.4/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"C:/Users/Lukas/.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/Lukas/Desktop/Programming/ESP-IDF/esp-idf/tools/cmake/project.cmake:307 (__project)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/Lukas/Desktop/Programming/ESP-IDF/test_programs/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Lukas/Desktop/Programming/ESP-IDF/test_programs/hello_world/build/CMakeFiles/CMakeError.log".
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja .." terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.