[vtkusers] Error While Attempting to Build VTK 5.10.1 on VS2012

ianl ilindsay at insigniamedical.co.uk
Tue Sep 10 10:51:51 EDT 2013


Hi all,

I am getting errors when attempting to build VTK 5.10.1, in 64 bit mode
using Visual Studio 2012 (ultimate) using CMake 2.8.11.2. I get as far as
picking the compiler from the drop down in CMake after clicking the
configure button, and get the following when it tries to compile its simple
test program:


The C compiler identification is MSVC 17.0.60610.1
The CXX compiler identification is MSVC 17.0.60610.1
Check for working C compiler using: Visual Studio 11 Win64
Check for working C compiler using: Visual Studio 11 Win64 -- broken
CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "E:/Program Files (x86)/Microsoft Visual Studio
  11.0/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test
program.

  It fails with the following output:

   Change Dir: E:/VTK Build Area/VTK 5.10.1/VTK64Build/CMakeFiles/CMakeTmp

  

  Run Build Command:E:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec317528356

  

  Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.60610.1.

  Copyright (C) Microsoft Corp.  All rights reserved.

  1>------ Build started: Project: cmTryCompileExec317528356, Configuration:
  Debug x64 ------

  1> Microsoft (R) C/C++ Optimizing Compiler Version 17.00.60610.1 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"cmTryCompileExec317528356.dir\Debug\\"
  /Fd"E:/VTK Build Area/VTK
  5.10.1/VTK64Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec317528356.pdb"
  /Gd /TC /errorReport:prompt testCCompiler.c

  1> 

  1> testCCompiler.c

  1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'

  ========== 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:15 (PROJECT)


Configuring incomplete, errors occurred!


I'm a bit stumped with this one. I have previously built VTK and ITK, 32 and
64 bit versions using Visual Studio 2010 with no issues. I have tried
manually selecting the compiler via the 'specify native compilers' option,
but as far as I can see, there is only one 'devenv.exe', i.e. the compiler
produces 64 bit output based on command line options / environment. I have
also tried launching the CMake GUI from a 64 bit visual studio command
prompt so it inherits the enviroment from it. Neither of these helps, or was
necessary previously.

Does anyone have any other ideas?



--
View this message in context: http://vtk.1045678.n5.nabble.com/Error-While-Attempting-to-Build-VTK-5-10-1-on-VS2012-tp5723371.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list