我正在尝试使用Clion与Cmake和MinGW建立一个环境。我在clion配置,但是当我刷新时,我得到了下面的错误。我应该提一下,我是C / C ++的新手,但我已按照设置所需内容的说明进行操作,但出于某种原因,它并不起作用。我试图编辑的是vox引擎的一个分支。我已经搜索了错误,但没有找到帮助我的内容。
我尝试设置路径C:\ MinGW \ bin,将工作目录移动到名称中没有空格的位置。还有我尝试过的其他事情,但不能具体记住。
"D:\Gustav Olsson\Program\CLion 2016.3.2\bin\cmake\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" "D:\Gustav Olsson\Programming\Voxel"
-- 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
CMake Error: Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_f8fdc/fast"
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at D:/Gustav Olsson/Program/CLion 2016.3.2/bin/cmake/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (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: D:/Gustav Olsson/Programming/Voxel/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_f8fdc/fast"
Generator: execution of make failed. Make command was:
"C:/MinGW/bin/mingw32-make.exe" "cmTC_f8fdc/fast"
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "D:/Gustav Olsson/Programming/Voxel/CMakeFiles/CMakeOutput.log".
See also "D:/Gustav Olsson/Programming/Voxel/CMakeFiles/CMakeError.log".
编辑: 输出CMakeOutput.log的最后一行
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
The CXX compiler identification is GNU, found in "D:/Gustav Olsson/Programming/Voxel/CMakeFiles/3.6.3/CompilerIdCXX/a.exe"
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/MinGW/bin/gcc.exe
Build flags:
Id flags:
The output was:
0
输出CMakeError.log
Determining if the C compiler works failed with the following output:
Change Dir: D:/Gustav Olsson/Programming/Voxel/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_ae556/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_ae556/fast"
Determining if the C compiler works failed with the following output:
Change Dir: D:/Gustav Olsson/Programming/Voxel/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_f8fdc/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_f8fdc/fast"
Determining if the C compiler works failed with the following output:
Change Dir: D:/Gustav Olsson/Programming/Voxel/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_3f00c/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_3f00c/fast"
感谢您的帮助