我用CMake进行vtk安装时出现问题
下边为错误提示,如何解决?谢谢了!
CMake Error at F:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "F:/Program Files/Microsoft Visual Studio
10.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: F:/Program Files/VTK 5.8.0/bin/CMakeFiles/CMakeTmp
Run Build Command:F:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec1999438401
Microsoft(R) Visual Studio 10.0.30319.1 版。
版权所有(C) Microsoft Corp。保留所有权利。
1>------ 已启动生成: 项目: cmTryCompileExec1999438401, 配置: Debug Win32
------
1>生成启动时间为 2014/3/19 10:16:04。
1>PrepareForBuild:
1> 正在创建目录“F:\Program Files\VTK
5.8.0\bin\CMakeFiles\CMakeTmp\Debug\”。
1>InitializeBuildStatus:
1>
正在创建“cmTryCompileExec1999438401.dir\Debug\cmTryCompileExec1999438401.unsuccessfulbuild”,因为已指定“AlwaysCreate”。
1>ClCompile:
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"cmTryCompileExec1999438401.dir\Debug\\"
/Fd"F:/Program Files/VTK
5.8.0/bin/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec1999438401.pdb" /Gd /TC
/analyze- /errorReport:prompt testCCompiler.c
1>
1> testCCompiler.c
1>LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
1>
1>生成失败。
1>
1>已用时间 00:00:02.15
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:9 (PROJECT)