CLion 新建c++项目报错解决方法
2017-05-07 14:22
141 查看
“C:\Software\CLion 2017.1.1\bin\cmake\bin\cmake.exe” -DCMAKE_BUILD_TYPE=Debug -G “CodeBlocks - MinGW Makefiles” C:\Users\让生活多一点惊喜\CLionProjects\myCpp
– The C compiler identification is GNU 4.9.2
– The CXX compiler identification is GNU 4.9.2
– Check for working C compiler: C:/Software/mingw64/bin/gcc.exe
– Check for working C compiler: C:/Software/mingw64/bin/gcc.exe – broken
CMake Error at C:/Software/CLion 2017.1.1/bin/cmake/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler “C:/Software/mingw64/bin/gcc.exe” is not able to compile a
simple test program.
It fails with the following output:
Change Dir: C:/Users/璁╃敓娲诲涓�鐐规儕鍠�/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:”C:/Software/mingw64/bin/mingw32-make.exe” “cmTC_9dba3/fast”
C:/Software/mingw64/bin/mingw32-make.exe -f
CMakeFiles\cmTC_9dba3.dir\build.make CMakeFiles/cmTC_9dba3.dir/build mingw32-make.exe[1]: Entering directory
‘C:/Users/让生活多一点惊喜/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_9dba3.dir/testCCompiler.c.obj
C:\Software\mingw64\bin\gcc.exe -o
CMakeFiles\cmTC_9dba3.dir\testCCompiler.c.obj -c
C:\Users\璁╃敓娲诲涓�鐐规儕鍠淺CLionProjects\myCpp\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error:
C:\Users\璁╃敓娲诲涓�鐐规儕鍠淺CLionProjects\myCpp\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c:
No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
CMakeFiles\cmTC_9dba3.dir\build.make:64: recipe for target
‘CMakeFiles/cmTC_9dba3.dir/testCCompiler.c.obj’ failed
mingw32-make.exe[1]: * [CMakeFiles/cmTC_9dba3.dir/testCCompiler.c.obj]
Error 1
mingw32-make.exe[1]: Leaving directory
‘C:/Users/让生活多一点惊喜/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeTmp’
makefile:125: recipe for target ‘cmTC_9dba3/fast’ failed
mingw32-make.exe: * [cmTC_9dba3/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:/Users/璁╃敓娲诲涓�鐐规儕鍠�/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeOutput.log”.
See also
“C:/Users/璁╃敓娲诲涓�鐐规儕鍠�/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeError.log”.
– The C compiler identification is GNU 4.9.2
– The CXX compiler identification is GNU 4.9.2
– Check for working C compiler: C:/Software/mingw64/bin/gcc.exe
– Check for working C compiler: C:/Software/mingw64/bin/gcc.exe – broken
CMake Error at C:/Software/CLion 2017.1.1/bin/cmake/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler “C:/Software/mingw64/bin/gcc.exe” is not able to compile a
simple test program.
It fails with the following output:
Change Dir: C:/Users/璁╃敓娲诲涓�鐐规儕鍠�/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:”C:/Software/mingw64/bin/mingw32-make.exe” “cmTC_9dba3/fast”
C:/Software/mingw64/bin/mingw32-make.exe -f
CMakeFiles\cmTC_9dba3.dir\build.make CMakeFiles/cmTC_9dba3.dir/build mingw32-make.exe[1]: Entering directory
‘C:/Users/让生活多一点惊喜/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_9dba3.dir/testCCompiler.c.obj
C:\Software\mingw64\bin\gcc.exe -o
CMakeFiles\cmTC_9dba3.dir\testCCompiler.c.obj -c
C:\Users\璁╃敓娲诲涓�鐐规儕鍠淺CLionProjects\myCpp\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error:
C:\Users\璁╃敓娲诲涓�鐐规儕鍠淺CLionProjects\myCpp\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c:
No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
CMakeFiles\cmTC_9dba3.dir\build.make:64: recipe for target
‘CMakeFiles/cmTC_9dba3.dir/testCCompiler.c.obj’ failed
mingw32-make.exe[1]: * [CMakeFiles/cmTC_9dba3.dir/testCCompiler.c.obj]
Error 1
mingw32-make.exe[1]: Leaving directory
‘C:/Users/让生活多一点惊喜/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeTmp’
makefile:125: recipe for target ‘cmTC_9dba3/fast’ failed
mingw32-make.exe: * [cmTC_9dba3/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:/Users/璁╃敓娲诲涓�鐐规儕鍠�/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeOutput.log”.
See also
“C:/Users/璁╃敓娲诲涓�鐐规儕鍠�/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeError.log”.
检查项目路径是否有中文
相关文章推荐
- 安装intel c++8.0后导致vc6编译正常的项目链接失败的一个解决方法
- 新建ASP.NET项目的时候出现HTTP/1.1 500 Server Error的错误解决方法
- 新建ArcGis Project for Android项目失败解决方法
- VS2010新建”安装和部署项目“时,“项目属性”-》“系统必备”列表中没有项,或显示“prerequisite could not be found for Bootstrapping”,的解决方法
- 新建ASP.NET项目时出现错误的解决方法(尝试创建WEB项目...)
- VS2008 不能创建C++的项目,解决方法
- 无法新建项目,解决方法
- VS突然不能创建C++项目的解决方法
- vs2005新建项目中没有ASP.NET WEB应用程序的解决方法
- vs2005 新建项目时出现"automation服务器不能创建对象"解决方法.
- VS2008 不能创建C++的项目,解决方法
- vs2005新建项目中没有ASP.NET WEB应用程序的解决方法
- 初次使用VS2010基于C++开发项目碰到的问题及解决方法
- VS2005新建项目找不到工程模版错误的解决方法。
- vs2005新建项目中没有ASP.NET WEB应用程序的解决方法(转)
- Tips:vc2005无法新建智能项目创建的解决方法
- VS2005,在“最近的项目”上"打开"和"新建"都只有"项目"没有"网站"的解决方法
- VS2008 不能创建C++的项目,解决方法
- workflow没有Activity Properties,parameter editor,新建项目时的选项 的解决方法.
- 初次使用VS2010基于C++开发项目碰到的问题及解决方法