c – CMake:C编译器无法编译简单的测试程序.令人惊讶的是,C编译
发布时间:2020-12-16 06:52:17 所属栏目:百科 来源:网络整理
导读:我试图编译一个Thor库.这取决于SFML.编译SFGUI时也没有任何问题,SFGUI也依赖于SFML.以前我使用完全相同的工具链.一切都很好 CMake gui错误: The C compiler identification is unknownThe CXX compiler identification is GNU 4.9.2Check for working C com
我试图编译一个Thor库.这取决于SFML.编译SFGUI时也没有任何问题,SFGUI也依赖于SFML.以前我使用完全相同的工具链.一切都很好
CMake gui错误: The C compiler identification is unknown The CXX compiler identification is GNU 4.9.2 Check for working C compiler: E:/Programs_Portable/Dev-Cpp/minGW32/bin/gcc.exe Check for working C compiler: E:/Programs_Portable/Dev-Cpp/minGW32/bin/gcc.exe -- broken CMake 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/CMakeTmp Run Build Command:"E:/Programs_Portable/Dev-Cpp/minGW32/bin/mingw32-make.exe" "cmTC_6b11a/fast" E:/Programs_Portable/Dev-Cpp/minGW32/bin/mingw32-make.exe -f CMakeFilescmTC_6b11a.dirbuild.make CMakeFiles/cmTC_6b11a.dir/build mingw32-make.exe[1]: Entering directory 'D:/Michal/Pliki/thor-v2.0-sdk/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6b11a.dir/testCCompiler.c.obj E:Programs_PortableDev-CppminGW32bingcc.exe -o CMakeFilescmTC_6b11a.dirtestCCompiler.c.obj -c D:MichalPlikithor-v2.0-sdkbuildCMakeFilesCMakeTmptestCCompiler.c <built-in>: internal compiler error: Segmentation fault libbacktrace could not find executable to open Please submit a full bug report,with preprocessed source if appropriate. See <http://sourceforge.net/projects/mingw-w64> for instructions. CMakeFilescmTC_6b11a.dirbuild.make:64: recipe for target 'CMakeFiles/cmTC_6b11a.dir/testCCompiler.c.obj' failed mingw32-make.exe[1]: *** [CMakeFiles/cmTC_6b11a.dir/testCCompiler.c.obj] Error 1 mingw32-make.exe[1]: Leaving directory 'D:/Michal/Pliki/thor-v2.0-sdk/build/CMakeFiles/CMakeTmp' makefile:125: recipe for target 'cmTC_6b11a/fast' failed mingw32-make.exe: *** [cmTC_6b11a/fast] Error 2 CMake 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工作. 我很惊讶,因为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 然后它工作正常. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |