I'm trying to Cmake compile Ogre default branch with VIsual Studio 2012 (and 2013). Unfortunately it just won't work at all, I am using the latest CMake (2.8.12.2).
I have tried: -
- Running using visual studio command prompt
- VS command prompt run as admin
- Run cmake-gui as admin
- Specifying the compiler location manually
- Installing Visual Studio 2013 from scratch in the default folder
- Installing the windows 8.1 SDK
What step am I missing here? I'm starting to go insane
Thanks for your help!
Here is the output: -
VS2012
:-
Code: Select all
The C compiler identification is MSVC 17.0.60610.1
The CXX compiler identification is MSVC 17.0.60610.1
Check for working C compiler using: Visual Studio 11
Check for working C compiler using: Visual Studio 11 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "G:/Program Files (x86)/Microsoft Visual Studio
11.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/Ashley/3rdParty/code/ogre/CMakeFiles/CMakeTmp
Run Build Command:G:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2863877349
Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.60610.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec2863877349, Configuration:
Debug Win32 ------
1> Microsoft (R) C/C++ Optimizing Compiler Version 17.00.60610.1 for x86
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
"CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t
/Zc:forScope /Fo"cmTryCompileExec2863877349.dir\Debug\\"
/Fd"cmTryCompileExec2863877349.dir\Debug\vc110.pdb" /Gd /TC /analyze-
/errorReport:prompt testCCompiler.c
1>
1> testCCompiler.c
1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:48 (project)
Configuring incomplete, errors occurred!
See also "C:/Users/Ashley/3rdParty/code/ogre/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Ashley/3rdParty/code/ogre/CMakeFiles/CMakeError.log".
VS2013
:-
Code: Select all
The C compiler identification is MSVC 18.0.21005.1
The CXX compiler identification is MSVC 18.0.21005.1
Check for working C compiler using: Visual Studio 12
Check for working C compiler using: Visual Studio 12 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
12.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/Ashley/3rdParty/code/ogre/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MSBuild\12.0\Bin\MSBuild.exe
cmTryCompileExec937682278.vcxproj /p:Configuration=Debug
/p:VisualStudioVersion=12.0
Microsoft (R) Build Engine version 12.0.21005.1
[Microsoft .NET Framework, version 4.0.30319.34011]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 09/03/2014 16:32:11.
Project
"C:\Users\Ashley\3rdParty\code\ogre\CMakeFiles\CMakeTmp\cmTryCompileExec937682278.vcxproj"
on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTryCompileExec937682278.dir\Debug\".
Creating directory "C:\Users\Ashley\3rdParty\code\ogre\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTryCompileExec937682278.dir\Debug\cmTryCom.50D6FD06.tlog\".
InitializeBuildStatus:
Creating "cmTryCompileExec937682278.dir\Debug\cmTryCom.50D6FD06.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec937682278.dir\Debug\\" /Fd"cmTryCompileExec937682278.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
testCCompiler.c
cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec937682278.dir\Debug\\" /Fd"cmTryCompileExec937682278.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\Ashley\3rdParty\code\ogre\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec937682278.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/Users/Ashley/3rdParty/code/ogre/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec937682278.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/Ashley/3rdParty/code/ogre/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec937682278.lib" /MACHINE:X86 /SAFESEH /machine:X86 /debug cmTryCompileExec937682278.dir\Debug\testCCompiler.obj
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
[C:\Users\Ashley\3rdParty\code\ogre\CMakeFiles\CMakeTmp\cmTryCompileExec937682278.vcxproj]
Done Building Project
"C:\Users\Ashley\3rdParty\code\ogre\CMakeFiles\CMakeTmp\cmTryCompileExec937682278.vcxproj"
(default targets) -- FAILED.
Build FAILED.
"C:\Users\Ashley\3rdParty\code\ogre\CMakeFiles\CMakeTmp\cmTryCompileExec937682278.vcxproj"
(default target) (1) ->
(Link target) ->
LINK : fatal error LNK1104: cannot open file 'kernel32.lib' [C:\Users\Ashley\3rdParty\code\ogre\CMakeFiles\CMakeTmp\cmTryCompileExec937682278.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.85
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:48 (project)
Configuring incomplete, errors occurred!
See also "C:/Users/Ashley/3rdParty/code/ogre/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Ashley/3rdParty/code/ogre/CMakeFiles/CMakeError.log".