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 --
1Build started 9/10/2014 1:31:13 PM.
1PrepareForBuild:
1 Creating directory C:\Code\VTK-bin\CMakeFiles\CMakeTmp\Debug\.
1InitializeBuildStatus:
1 Creating
cmTryCompileExec696148031.dir\Debug\cmTryCompileExec696148031.unsuccessfulbuild
because AlwaysCreate was specified.
1ClCompile:
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 /FocmTryCompileExec696148031.dir\Debug\\
/FdcmTryCompileExec696148031.dir\Debug\vc100.pdb /Gd /TC
/errorReport:prompt testCCompiler.c
1
1 testCCompiler.c
1LINK : fatal error LNK1123: failure during conversion to COFF: file
invalid or corrupt
1
1Build FAILED.
1
1Time 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.
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake