[CMake] VTK compiling problem with CMake
lanhz
h1lan at ucsd.edu
Tue Sep 23 13:08:20 EDT 2014
Hi,
I'm trying use CMake to build VTK, but got error as below. I searched the
internet and tried many ways suggested, but they didn't work. The OS is
Windows 7 with Visual Studio 2010 Pro (up to date). I don't know how to
solve. I'll appreciate your help.
Error info from CMake-gui
---------------------------------------------------------------------
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 Win64
Check for working C compiler using: Visual Studio 10 Win64 -- 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
10.0/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Code/VTK-bin/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~2.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec696148031
Microsoft (R) Visual Studio Version 10.0.30319.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec696148031, Configuration:
Debug x64 ------
1>Build started 9/10/2014 1:31:13 PM.
1>PrepareForBuild:
1> Creating directory "C:\Code\VTK-bin\CMakeFiles\CMakeTmp\Debug\".
1>InitializeBuildStatus:
1> Creating
"cmTryCompileExec696148031.dir\Debug\cmTryCompileExec696148031.unsuccessfulbuild"
because "AlwaysCreate" was specified.
1>ClCompile:
1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D
"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
/Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec696148031.dir\Debug\\"
/Fd"cmTryCompileExec696148031.dir\Debug\vc100.pdb" /Gd /TC
/errorReport:prompt testCCompiler.c
1>
1> testCCompiler.c
1>LINK : fatal error LNK1123: failure during conversion to COFF: file
invalid or corrupt
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.26
========== 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:28 (project)
Configuring incomplete, errors occurred!
See also "C:/Code/VTK-bin/CMakeFiles/CMakeOutput.log".
See also "C:/Code/VTK-bin/CMakeFiles/CMakeError.log".
Best
Lan
--
View this message in context: http://cmake.3232098.n2.nabble.com/VTK-compiling-problem-with-CMake-tp7588569.html
Sent from the CMake mailing list archive at Nabble.com.
More information about the CMake
mailing list