我用CMake进行vtk安装时出现问题

kongmengzhang 2014-03-19 10:27:27
下边为错误提示,如何解决?谢谢了!
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)
...全文
430 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
tianyi2012 2014-04-04
  • 打赏
  • 举报
回复
我也是哎,弄了两天没好使,不知道为什么呢,愁死了

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧