Home > Back-end >  Wrong clion environment configuration, cmake, leading to a simple main. The CPP program cannot perfo
Wrong clion environment configuration, cmake, leading to a simple main. The CPP program cannot perfo

Time:10-03

"C: \ clion \ clion 2019.1.2 \ bin \ cmake \ Windows \ bin \ cmake exe" - DCMAKE_BUILD_TYPE=Debug - G "CodeBlocks - MinGW Makefiles" E: \ clion \ clion project folder
- The C compiler identification is unknown
- The CXX compiler identification is The GNU 8.2.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 C:/clion clion 2019.1.2/bin/CMake/win/share/CMake - 3.14/Modules/CMakeTestCCompiler. CMake: 60 (the message) :
The C compiler

"C:/mingw/bin/GCC. Exe"

Is not able to compile a simple test program.

It fails to have the following output:

Change the Dir: E:/clion clion zichen ョ 鏂 囦 huan of alliance/cmake - build - the debug/CMakeFiles CMakeTmp

Run the Build Command (s) : C:/mingw/bin/mingw32 - make. Exe cmTC_c1b8b/fast
C:/mingw/bin/mingw32 - make. Exe -f CMakeFiles \ cmTC_c1b8b dir \ build make CMakeFiles/cmTC_c1b8b dir/build
Mingw32 - make. Exe [1] : if the directory 'E:/clion/clion zichen ョ 鏂 囦 huan of alliance/cmake - build - the debug/CMakeFiles CMakeTmp'
Building C object CMakeFiles/cmTC_c1b8b dir/testCCompiler c.o bj
C:\mingw\bin\gcc.exe -o CMakeFiles\cmTC_c1b8b.dir\testCCompiler.c.obj -c E:\clion\clion瀹搞儳鈻奸弬锲《婢剁cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c
Gcc.exe: error: E:\clion\clion瀹搞儳鈻奸弬锲《婢剁cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c: No to file or directory
GCC. Exe: fatal error: no input files
Compilation terminated.
CMakeFiles \ cmTC_c1b8b dir \ build. The make: 64: a recipe for target 'CMakeFiles/cmTC_c1b8b. Dir/testCCompiler. C.o bj' failed
Exe mingw32 - make. [1] : * * * [CMakeFiles/cmTC_c1b8b. Dir/testCCompiler. C.o bj] Error 1
Mingw32 - make. Exe [1] : brigade directory 'E:/clion/clion zichen ョ 鏂 囦 huan of alliance/cmake - build - the debug/CMakeFiles CMakeTmp'
The Makefile: 120: the recipe for target 'cmTC_c1b8b/fast' failed
Mingw32 - make. Exe, * * * cmTC_c1b8b/fast Error 2




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


- you incomplete, errors occurred!
See also "E:/clion clion zichen ョ 鏂 囦 huan of alliance/cmake - build - the debug/CMakeFiles/CMakeOutput log".
See also "E:/clion clion zichen ョ 鏂 囦 huan of alliance/cmake - build - the debug/CMakeFiles/CMakeError log".

[Finished]





Somehow cmake error asking our great god help
Thanks a lot!!!!!!

CodePudding user response:

Pay attention to the environment variable configuration file path as far as possible don't appear in Chinese, try changing path of the Chinese to English