MantisBT - CMake
View Issue Details
0015616CMakeCMakepublic2015-06-13 11:322016-01-04 11:51
dkuegler 
 
normalminoralways
closedno change required 
WindowsWindows8.1 Pro x64
CMake 3.2.3 
 
0015616: Configuring for Visual Studio 2015 creates Error
System:
Windows 8.1 Pro (up-to-date) x64
Visual Studio (multiple installations: 2012 Ultimate, 2010 Professional, 2015 RC1)
CMAKE 3.2.3

After downloading and selecting VTK 6.2.0 folder, klick Configure and select "Visual Studio 2015 x64", "default native compiler".

multiple Errors are raised: MS VC++ Redist Lib
minkernel\crts\ucrt\inc\corecrt_internal_stdio_output.h : 761 : Expression ("Unexpected length specifier", false)

The same happens for ITK 4.7.1 .

This issue might have to be escalated to Microsoft, but since it is directly happening from within CMAKE, I thought I'd start here.
Use a Win8.1 machine
install Visual Studio 2015 RC

download VTK 6.2.0

run CMake 3.2.3
configure from the VTK 6.2.0 source with a blank Build folder
as a compiler select MS Visual Studio 2015 x64.

Errors should be thrown ...
Workaround:
"Ignoring" seems to be sufficient
No tags attached.
png VTK_CMAKE_Build-Error.PNG (114,828) 2015-06-13 11:32
https://public.kitware.com/Bug/file/5475/VTK_CMAKE_Build-Error.PNG
png

log CMakeError.log (685,505) 2015-06-13 13:52
https://public.kitware.com/Bug/file/5476/CMakeError.log
log CMakeOutput.log (928,363) 2015-06-13 13:52
https://public.kitware.com/Bug/file/5477/CMakeOutput.log
Issue History
2015-06-13 11:32dkueglerNew Issue
2015-06-13 11:32dkueglerFile Added: VTK_CMAKE_Build-Error.PNG
2015-06-13 13:52dkueglerFile Added: CMakeError.log
2015-06-13 13:52dkueglerFile Added: CMakeOutput.log
2015-06-15 11:40Brad KingNote Added: 0038928
2015-06-15 11:41Brad KingNote Added: 0038929
2015-06-15 11:41Brad KingStatusnew => resolved
2015-06-15 11:41Brad KingResolutionopen => no change required
2016-01-04 11:51Robert MaynardNote Added: 0040070
2016-01-04 11:51Robert MaynardStatusresolved => closed

Notes
(0038928)
Brad King   
2015-06-15 11:40   
Thanks for the detailed report. I reproduced the issue. It is not a problem with Visual Studio or CMake but rather with a program executed via try_run in HDF5 CMake code that comes with VTK. I've proposed a fix here:

 https://gitlab.kitware.com/vtk/vtk/merge_requests/307 [^]
(0038929)
Brad King   
2015-06-15 11:41   
I'm resolving this CMake issue tracker entry as the problem is not with CMake. Follow the link in 0015616:0038928 for updates on the VTK side.
(0040070)
Robert Maynard   
2016-01-04 11:51   
Closing resolved issues that have not been updated in more than 4 months.