我目前正在尝试为Ogre/mingw/eclipse/Windows/C++构建CEGui。
Cmake抛出第一个错误(还有一大堆错误):
The C compiler identification is GNU 3.4.5
The CXX compiler identification is GNU 4.8.1
Check for working C compiler: D:/###/mingw/bin/gcc.exe
Check for working C compiler: D:/###/mingw/bin/gcc.exe -- broken
CMake Error at D:/###/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "D:/###/mingw/bin/gcc.exe" is not able to
compile a simple test program.
It fails with the following output:
Change Dir: D:/###/cegui-0.8.3_build/CMakeFiles/CMakeTmp
Run Build Command:D:/###/mingw/bin/mingw32-make.exe
"cmTryCompileExec1524602820/fast"
D:/###/mingw/bin/mingw32-make.exe -f
CMakeFiles\cmTryCompileExec1524602820.dir\build.make
CMakeFiles/cmTryCompileExec1524602820.dir/build老实说,我完全迷路了。有什么线索可以解决这个问题吗?在C++下工作的时候需要用到gcc编译器吗?是否对Cmake进行了手动设置以绕过此错误?
感谢您的帮助和亲切的问候,
科拉克
发布于 2014-05-01 01:39:02
你的C编译器太旧了,能不能换个新的(GCC 4.x)?您安装了用于GCC 3.x和GCC 4.x的库-这两个库可能不兼容。意思:可能是GCC 3.x使用了GCC 4.x库,但失败了。
您使用的是什么版本的CMake?请使用最新版本进行测试。您还应该完全清除CMake缓存,然后重试。
https://stackoverflow.com/questions/23394100
复制相似问题