CLion compilation

pablourbano
Posts: 2
Joined: Tue Jun 11, 2019 6:44 am

CLion compilation

Postby pablourbano » Tue Jun 11, 2019 7:11 am

Hello,

I'm working with ESP-WROVER-KIT V4.1 board in Windows 10.

I follow all the step of the Get Started guide: https://docs.espressif.com/projects/esp ... index.html
I can make flash, make monitor of the hello world example.

I want to use CLION but when I set up it I get this error:

"O:\JetBrains\CLion 2019.1.4\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=O:/msys32/usr/bin/make.exe -DCMAKE_C_COMPILER=O:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -DCMAKE_CXX_COMPILER=O:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-c++.exe -DCLION= -G "CodeBlocks - MinGW Makefiles" O:\msys32\home\Pablo\esp\hello_world
-- The C compiler identification is GNU 5.2.0
-- Check for working C compiler: O:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: O:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- broken
CMake Error at O:/JetBrains/CLion 2019.1.4/bin/cmake/win/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"O:/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: O:/msys32/home/Pablo/esp/hello_world/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):O:/msys32/usr/bin/make.exe cmTC_eb69b/fast
/usr/bin/make -f CMakeFiles\cmTC_eb69b.dir\build.make CMakeFiles/cmTC_eb69b.dir/build


make: *** [Makefile:120: cmTC_eb69b/fast] Error 1




CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)

The problem I'm sure is at:

CMakeFiles\cmTC_eb69b.dir\build.make hte \ should be / but i do'nt know where can I change this setting.

Here is my Settings:
Clion-Toolchains.png
Clion-Toolchains.png (33.06 KiB) Viewed 2619 times
Clion-CMAKE.png
Clion-CMAKE.png (45.38 KiB) Viewed 2619 times

Who is online

Users browsing this forum: kevlar and 82 guests