试了网上n种方法都不行,一直显示测试CMake运行完成但有错误!!!显示如下
【-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Check for working C compiler: D:/DevCpp/MinGW32/bin/gcc.exe
-- Check for working C compiler: D:/DevCpp/MinGW32/bin/gcc.exe - broken
CMake Error at D:/CLion/bin/cmake/win/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
Run Build Command(s):D:/DevCpp/MinGW32/bin/mingw32-make.exe cmTC_0912c/fast && D:/DevCpp/MinGW32/bin/mingw32-make.exe -f CMakeFiles\cmTC_0912c.dir\build.make CMakeFiles/cmTC_0912c.dir/build
mingw32-make[1]: Entering directory 'C:/Users/缁嗛洦娴侀瓊/AppData/Local/Temp/cmake_check_environment/_build16740896224053456572/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0912c.dir/testCCompiler.c.obj
D:\DevCpp\MinGW32\bin\gcc.exe -o CMakeFiles\cmTC_0912c.dir\testCCompiler.c.obj -c C:\Users\缂佸棝娲﹀ù渚�鐡夾ppData\Local\Temp\cmake_check_environment\_build16740896224053456572\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: C:\Users\缂佸棝娲﹀ù渚�鐡夾ppData\Local\Temp\cmake_check_environment\_build16740896224053456572\CMakeFiles\CMakeTmp\testCCompiler.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
mingw32-make[1]: *** [CMakeFiles\cmTC_0912c.dir\build.make:85: CMakeFiles/cmTC_0912c.dir/testCCompiler.c.obj] Error 1
mingw32-make[1]: Leaving directory 'C:/Users/缁嗛洦娴侀瓊/AppData/Local/Temp/cmake_check_environment/_build16740896224053456572/CMakeFiles/CMakeTmp'
mingw32-make: *** [Makefile:140: cmTC_0912c/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/缁嗛洦娴侀瓊/AppData/Local/Temp/cmake_check_environment/_build16740896224053456572/CMakeFiles/CMakeOutput.log".
See also "C:/Users/缁嗛洦娴侀瓊/AppData/Local/Temp/cmake_check_environment/_build16740896224053456572/CMakeFiles/CMakeError.log".