
CMake gui错误:
The C compiler IDentification is unkNownThe CXX compiler IDentification is GNU 4.9.2Check for working C compiler: E:/Programs_Portable/Dev-Cpp/minGW32/bin/gcc.exeCheck for working C compiler: E:/Programs_Portable/Dev-Cpp/minGW32/bin/gcc.exe -- brokenCMake Error at C:/CMake/share/cmake-3.4/Modules/CMakeTestCCompiler.cmake:61 (message):The C compiler "E:/Programs_Portable/Dev-Cpp/minGW32/bin/gcc.exe" is not able to compile a simple test program.It fails with the following output:Change Dir: D:/Michal/Pliki/thor-v2.0-sdk/build/CMakefiles/CMakeTmpRun BuildCommand:"E:/Programs_Portable/Dev-Cpp/minGW32/bin/mingw32-make.exe""cmTC_6b11a/fast"E:/Programs_Portable/Dev-Cpp/minGW32/bin/mingw32-make.exe -fCMakefiles\cmTC_6b11a.dir\build.make CMakefiles/cmTC_6b11a.dir/buildmingw32-make.exe[1]: Entering directory'D:/Michal/Pliki/thor-v2.0-sdk/build/CMakefiles/CMakeTmp'Building C object CMakefiles/cmTC_6b11a.dir/testCCompiler.c.objE:\Programs_Portable\Dev-Cpp\minGW32\bin\gcc.exe -oCMakefiles\cmTC_6b11a.dir\testCCompiler.c.obj -cD:\Michal\Pliki\thor-v2.0-sdk\build\CMakefiles\CMakeTmp\testCCompiler.c<built-in>: internal compiler error: Segmentation faultlibbacktrace Could not find executable to openPlease submit a full BUG report,with preprocessed source if appropriate.See <http://sourceforge.net/projects/mingw-w64> for instructions.CMakefiles\cmTC_6b11a.dir\build.make:64: recipe for target'CMakefiles/cmTC_6b11a.dir/testCCompiler.c.obj' Failedmingw32-make.exe[1]: *** [CMakefiles/cmTC_6b11a.dir/testCCompiler.c.obj]Error 1mingw32-make.exe[1]: Leaving directory'D:/Michal/Pliki/thor-v2.0-sdk/build/CMakefiles/CMakeTmp'makefile:125: recipe for target 'cmTC_6b11a/fast' Failedmingw32-make.exe: *** [cmTC_6b11a/fast] Error 2CMake will not be able to correctly generate this project.Call Stack (most recent call first):CMakeLists.txt:42 (project)Configuring incomplete,errors occurred!See also "D:/Michal/Pliki/thor-v2.0-sdk/build/CMakefiles/CMakeOutput.log".See also "D:/Michal/Pliki/thor-v2.0-sdk/build/CMakefiles/CMakeError.log".
我尝试编译简单的int main(){}. gcc工作.
所有路径都符合预期. (顺便说一下,我不使用DevCpp,它只是编译器的路径).
我很惊讶,因为g工作,CMake能够显示识别但显然不适用于gcc
谢谢你的帮助
解决方法 如果您不安装基本构建包,则会在solus OS上显示该消息.CMake Error at /usr/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):The C compiler "/usr/bin/cc"is not able to compile a simple test program.
您必须使用安装软件包
sudo eopkg it -c system.devel
然后它工作正常.
总结以上是内存溢出为你收集整理的c – CMake:C编译器无法编译简单的测试程序.令人惊讶的是,C编译器识别是未知的,但CXX是GNU 4.9.2全部内容,希望文章能够帮你解决c – CMake:C编译器无法编译简单的测试程序.令人惊讶的是,C编译器识别是未知的,但CXX是GNU 4.9.2所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)