Firstly I cloned idf repository via
Code: Select all
git clone --recursive https://github.com/espressif/esp-idf.git
In Preferencs/Build, Execution, Deployment/Toolchains In CLion I setted compilers (Screenshot_1)
There was this error in CMake log:
Code: Select all
-- The C compiler identification is GNU 8.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - broken
CMake Error at C:/Program Files/JetBrains/CLion 2020.3.3/bin/cmake/win/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"C:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/User/Desktop/esp32/test/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):C:/msys32/usr/bin/make.exe cmTC_b9276/fast && /usr/bin/make -f CMakeFiles\cmTC_b9276.dir\build.make CMakeFiles/cmTC_b9276.dir/build
make: *** [Makefile:139: cmTC_b9276/fast] Error 1
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/User/Desktop/esp32/test/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/User/Desktop/esp32/test/cmake-build-debug/CMakeFiles/CMakeError.log".
[Finished]