我正在尝试在Windows 7 x64上编译食人魔。这只是示例教程。
环境变量是:
BOOST_INCLUDEDIR=C:\OgreSDK\boost
BOOST_LIBRARYDIR=C:\OgreSDK\boost\lib
BOOST_ROOT=C:\OgreSDK\boost
OGRE_HOME=C:/OgreSDK
Path=...C:\Python34\;C:\Python34\Scripts...C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\GnuWin32\bin;C:\MinGW\bin;C:\Python34\;C:\Python34\Scripts...;C:/OgreSDK/bin/;C:\MinGW\bin
您可以在此处查看完整的https://gist.github.com/vinz243/bf1a2465215c0fb906b0
回购邮件在https://github.com/vinz243/ogre-test
所以输出是:
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/MinGW/bin/gcc.exe
Build flags:
Id flags: -c
The output was:
1
多次https://github.com/vinz243/ogre-test/blob/master/CMakeFiles/CMakeError.log
请注意,我必须附加
//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=C:/MinGW/bin/g++.exe
//C compiler.
CMAKE_C_COMPILER:FILEPATH=C:/MinGW/bin/gcc.exe
// Make program
CMAKE_MAKE_PROGRAM:FILEPATH=C:/MinGW/bin/make.exe
在每个构建b / c上,每个构建都会抛出错误
答案 0 :(得分:0)
有几个问题
bin/
文件夹,并且它与w / cmake相冲突