Failed to start with CLion

已回答

I am trying to start using CLion, but i'm having this error log:

 

-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at D:/Софт/CLion 2017.2/bin/cmake/share/cmake-3.8/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
program.

It fails with the following output:

Change Dir: C:/SomeCProject/cmake-build-debug/CMakeFiles/CMakeTmp

 

Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_96dc7/fast"

C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_96dc7.dir\build.make
CMakeFiles/cmTC_96dc7.dir/build

mingw32-make.exe[1]: Entering directory
'C:/SomeCProject/cmake-build-debug/CMakeFiles/CMakeTmp'

Системе не удается найти указанный путь.

CMakeFiles\cmTC_96dc7.dir\build.make:64: recipe for target
'CMakeFiles/cmTC_96dc7.dir/testCCompiler.c.obj' failed

mingw32-make.exe[1]: *** [CMakeFiles/cmTC_96dc7.dir/testCCompiler.c.obj]
Error 1

mingw32-make.exe[1]: Leaving directory
'C:/SomeCProject/cmake-build-debug/CMakeFiles/CMakeTmp'

Makefile:125: recipe for target 'cmTC_96dc7/fast' failed

mingw32-make.exe: *** [cmTC_96dc7/fast] Error 2

 

 

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:/SomeCProject/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/SomeCProject/cmake-build-debug/CMakeFiles/CMakeError.log".

 

 

Please advise.

0
Avatar
Permanently deleted user

Системе не удается найти указанный путь

means, that system failed to recognize the path.

0

We suppose that it's not CLion problem, but a problem with using CMake + MinGW, because they don't support non-latin symbols.

To solve the problem you can

1) change usage of MinGW to Cygwin

or

2) сhange idea.system.path in the IDE_HOME\bin\idea.properties file so it won't contain non-latin symbols (please see https://intellij-support.jetbrains.com/entries/23358108 and https://www.jetbrains.com/idea/help/project-and-ide-settings.html for more details).

0

请先登录再写评论。