[vtkusers] VTK7 and VS 2015 compatibility?

Andrea Borsic aborsic at ne-scientific.com
Sat Jun 4 04:55:58 EDT 2016


Hi Elvis,

Just to contribute one data point:

I build VTK 7.0.0 with VS 2015 Community Edition with no problems. In my 
configurations I use both OpenGL and OpenGL2 back-ends, Qt 5.6, python 3 
wrapping, VTK Imaging, VTK Views, and SMP = OpenMP.

Sorry, but have instead no suggestions regarding the cause of the issues 
you are encountering.

Best Regards,

Andrea



On 2/24/2016 5:28 PM, Elvis Chen wrote:
> Greetings,
>
> Trying to compile VTK 7 using Visual Studio 2015 (Enterprise) and got 
> the following error. Can anyone confirm if compatibility is a problem?
>
> 1>------ Build started: Project: vtkhdf5, Configuration: Debug Win32 
> ------
> 2>------ Build started: Project: vtkIOImport, Configuration: Debug 
> Win32 ------
> 3>------ Build started: Project: vtkIOLSDyna, Configuration: Debug 
> Win32 ------
> 4>------ Skipped Build: Project: vtkCompileTools, Configuration: Debug 
> Win32 ------
> 4>Project not selected to build for this solution configuration
> 1>  vtkhdf5.vcxproj -> G:\works\bin\vtk-7.0.0\bin\Debug\vtkhdf5-7.0.dll
> 3>  vtkLSDynaPart.cxx
> 2>  vtkVRMLImporter.cxx
> 5>------ Build started: Project: vtkNetCDF, Configuration: Debug Win32 
> ------
> 3>C:\Program Files (x86)\Microsoft Visual Studio 
> 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler 
> used, but unwind semantics are not enabled. Specify /EHsc
> 2>C:\Program Files (x86)\Microsoft Visual Studio 
> 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler 
> used, but unwind semantics are not enabled. Specify /EHsc
> 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): 
> fatal error C1083: Cannot open include file: 'unistd.h': No such file 
> or directory
> 3>  vtkLSDynaPartCollection.cxx
> 3>C:\Program Files (x86)\Microsoft Visual Studio 
> 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler 
> used, but unwind semantics are not enabled. Specify /EHsc
> 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): 
> fatal error C1083: Cannot open include file: 'unistd.h': No such file 
> or directory
> 3>  vtkLSDynaReader.cxx
> 3>C:\Program Files (x86)\Microsoft Visual Studio 
> 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler 
> used, but unwind semantics are not enabled. Specify /EHsc
> 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): 
> fatal error C1083: Cannot open include file: 'unistd.h': No such file 
> or directory
> 3>  vtkLSDynaSummaryParser.cxx
> 3>C:\Program Files (x86)\Microsoft Visual Studio 
> 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler 
> used, but unwind semantics are not enabled. Specify /EHsc
> 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): 
> fatal error C1083: Cannot open include file: 'unistd.h': No such file 
> or directory
> 3>  LSDynaFamily.cxx
> 3>C:\Program Files (x86)\Microsoft Visual Studio 
> 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler 
> used, but unwind semantics are not enabled. Specify /EHsc
> 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): 
> fatal error C1083: Cannot open include file: 'unistd.h': No such file 
> or directory
> 3>  LSDynaMetaData.cxx
> 3>C:\Program Files (x86)\Microsoft Visual Studio 
> 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler 
> used, but unwind semantics are not enabled. Specify /EHsc
> 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): 
> fatal error C1083: Cannot open include file: 'unistd.h': No such file 
> or directory
> 3>  Generating Code...
> 5>  lookup3.c
> 2>g:\works\src\vtk\vtk-7.0.0\io\import\vtkVRMLImporter_Yacc.h(1708): 
> fatal error C1083: Cannot open include file: 'unistd.h': No such file 
> or directory
> 5>G:\works\src\vtk\VTK-7.0.0\ThirdParty\netcdf\vtknetcdf\libsrc\lookup3.c(58): 
> fatal error C1083: Cannot open include file: 'sys/param.h': No such 
> file or directory
> 5>  error4.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>  nc4attr.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>  nc4dim.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>  nc4file.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>  nc4grp.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>  nc4type.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>  nc4var.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>  ncfunc.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>  nc4internal.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>  nc4hdf.c
> 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): 
> error C2632: 'int' followed by 'int' is illegal
> 5>G:\works\src\vtk\VTK-7.0.0\ThirdParty\netcdf\vtknetcdf\libsrc4\nc4hdf.c(3666): 
> error C2177: constant too big
> 5>  Generating Code...
> 6>------ Build started: Project: vtkNetCDF_cxx, Configuration: Debug 
> Win32 ------
> 6>LINK : fatal error LNK1104: cannot open file 
> '..\..\..\lib\Debug\vtkNetCDF-7.0.lib'
> 7>------ Build started: Project: vtkIONetCDF, Configuration: Debug 
> Win32 ------
> 8>------ Build started: Project: vtkexoIIc, Configuration: Debug Win32 
> ------
> 9>------ Build started: Project: vtkIOMINC, Configuration: Debug Win32 
> ------
> 8>LINK : fatal error LNK1104: cannot open file 
> '..\..\..\lib\Debug\vtkNetCDF_cxx-7.0.lib'
> 10>------ Build started: Project: vtkIOExodus, Configuration: Debug 
> Win32 ------
> 7>LINK : fatal error LNK1104: cannot open file 
> '..\..\lib\Debug\vtkNetCDF_cxx-7.0.lib'
> 11>------ Build started: Project: vtkIOParallel, Configuration: Debug 
> Win32 ------
> 9>LINK : fatal error LNK1104: cannot open file 
> '..\..\lib\Debug\vtkNetCDF_cxx-7.0.lib'
> 10>LINK : fatal error LNK1104: cannot open file 
> '..\..\lib\Debug\vtkexoIIc-7.0.lib'
> 11>LINK : fatal error LNK1104: cannot open file 
> '..\..\lib\Debug\vtkIONetCDF-7.0.lib'
> 12>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 
> ------
> 12>Project not selected to build for this solution configuration
> ========== Build: 1 succeeded, 9 failed, 104 up-to-date, 2 skipped 
> ==========Description Project File Line Suppression State
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

-- 
++++++++++++++++++++++++++++++++++++
Andrea Borsic Ph.D.
Founder NE Scientific LLC
Tel: +1 603 676 7450
Web: www.ne-scientific.com
Twitter: https://twitter.com/ne_scientific

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160604/e045fef6/attachment.html>


More information about the vtkusers mailing list