CMAKE2.8.12+VS2010配置问题
问题:我在cmake2.8.12中配置好文件,运行就出现如下问题:谁能帮着解决一下啊
The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- broken
CMake Error at C:/Program Files/cmake/cmake-2.8.12-win32-x86/share/cmake- 2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "D:/Program Files/Microsoft Visual Studio10.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: E:/PCL/cmake-bin/CMakeFiles/CMakeTmp
Run Build Command:D:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec3283164848
Microsoft(R) Visual Studio 10.0.30319.1 版。
版权所有(C) Microsoft Corp。保留所有权利。
1>------ 已启动生成: 项目: cmTryCompileExec3283164848, 配置: Debug Win32 ------
1> 用于 80x86 的 Microsoft (R) 32 位 C/C++ 优化编译器 16.00.30319.01 版
1> 版权所有(C) Microsoft Corporation。保留所有权利。
1>
1> 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"cmTryCompileExec3283164848.dir\Debug\\"
/Fd"cmTryCompileExec3283164848.dir\Debug\vc100.pdb" /Gd /TC /analyze-
/errorReport:prompt testCCompiler.c
1>
1> testCCompiler.c
1>LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
Configuring incomplete, errors occurred!
See also "E:/PCL/cmake-bin/CMakeFiles/CMakeOutput.log".
See also "E:/PCL/cmake-bin/CMakeFiles/CMakeError.log".