我正在为vs 2012构建glm但是我用cmake得到了这些错误 当我运行vs2012并编译一个普通的控制台应用程序时,我也会收到错误消息:
错误C1069:无法读取编译器命令行
使用cmake我会收到这些错误,我认为上述错误与它有关。
使用以下输出确定C编译器是否失败:
更改目录:C:/ Users / Amar Thapa / Desktop / glm bin / CMakeFiles / CMakeTmp
运行Build命令:C:\ Program Files \ MSBuild \ 12.0 \ Bin \ MSBuild.exe cmTryCompileExec2330384412.vcxproj / p:Configuration = Debug /p:VisualStudioVersion=12.0 Microsoft(R)Build Engine版本12.0.21005.1
[Microsoft .NET Framework,版本4.0.30319.18408]
版权所有(C)Microsoft Corporation。保留所有权利。
Build on 12/23/2013 12:50:51 AM。
节点1上的项目“C:\ Users \ Amar Thapa \ Desktop \ glm bin \ CMakeFiles \ CMakeTmp \ cmTryCompileExec2330384412.vcxproj”。(默认目标)。
PrepareForBuild:
Creating directory "cmTryCompileExec2330384412.dir\Debug\". Creating directory "C:\Users\Amar Thapa\Desktop\glm bin\CMakeFiles\CMakeTmp\Debug\". Creating directory "cmTryCompileExec2330384412.dir\Debug\cmTryCom.89557F4B.tlog\".
InitializeBuildStatus:
Creating "cmTryCompileExec2330384412.dir\Debug\cmTryCom.89557F4B.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files\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\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2330384412.dir\Debug\\" /Fd"cmTryCompileExec2330384412.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. cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2330384412.dir\Debug\\" /Fd"cmTryCompileExec2330384412.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c testCCompiler.c
testCCompiler.c(12):致命错误C1069:无法读取编译器命令行[C:\ Users \ Amar Thapa \ Desktop \ glm bin \ CMakeFiles \ CMakeTmp \ cmTryCompileExec2330384412.vcxproj]
完成构建项目“C:\ Users \ Amar Thapa \ Desktop \ glm bin \ CMakeFiles \ CMakeTmp \ cmTryCompileExec2330384412.vcxproj”(默认目标) - FAILED。
构建失败。
“C:\ Users \ Amar Thapa \ Desktop \ glm bin \ CMakeFiles \ CMakeTmp \ cmTryCompileExec2330384412.vcxproj”(默认目标)(1) - >
(ClCompile target) - >
testCCompiler.c(12): fatal error C1069: cannot read compiler command line [C:\Users\Amar Thapa\Desktop\glm bin\CMakeFiles\CMakeTmp\cmTryCompileExec2330384412.vcxproj] 0 Warning(s) 1 Error(s)
时间流逝00:00:00.34