[vtkusers] Building VTK 5.10 with VS 2015

Gib Bogle g.bogle at auckland.ac.nz
Mon Nov 9 20:01:06 EST 2015


Hi,

Unfortunately my student has Visual Studio 2015 Community - the earlier VS versions seem to be no longer available on Dreamspark.  I am trying to build VTK 5.10.1 with this version, but 8 library builds failed.  Here are a few of the error messages:

8>C:\VTK5.10.1\Utilities\vtkhdf5\src\H5Omtime.c(226): error C2065: 'timezone': undeclared identifier

20>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt_search.h(191): error C2375: 'lfind': redefinition; different linkage (compiling source file C:\VTK5.10.1\Utilities\vtktiff\tif_close.c)
20>  c:\vtk5.10.1\utilities\vtktiff\tiffiop.h(57): note: see declaration of 'lfind' (compiling source file C:\VTK5.10.1\Utilities\vtktiff\tif_close.c)
(this error occurred many times)

16>C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx(60): error C2678: binary '<<': no operator found which takes a left-hand operand of type 'std::ostream' (or there is no acceptable conversion)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(497): note: could be 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_streambuf<char,std::char_traits<char>> *)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(477): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(const void *)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(457): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long double)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(437): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(double)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(417): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(float)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(396): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned __int64)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(376): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(__int64)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(355): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned long)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(335): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(315): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned int)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(290): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(int)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(270): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned short)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(236): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(short)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(216): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(bool)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(209): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(202): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ios<char,std::char_traits<char>> &(__cdecl *)(std::basic_ios<char,std::char_traits<char>> &))' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ostream(196): note: or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ostream<char,std::char_traits<char>> &(__cdecl *)(std::basic_ostream<char,std::char_traits<char>> &))' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  c:\vtk5.10.1\common\vtkSmartPointerBase.h(115): note: or       'std::ostream &operator <<(std::ostream &,const vtkSmartPointerBase &)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  c:\vtk5.10.1\common\vtkStdString.h(28): note: or       'std::ostream &operator <<(std::ostream &,const vtkStdString &)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)
16>  c:\vtk5.10.1\common\vtkLargeInteger.h(94): note: or       'std::ostream &operator <<(std::ostream &,const vtkLargeInteger &)' (compiling source file C:\VTK5.10.1\Common\vtkOStreamWrapper.cxx)

27>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file C:\VTK5.10.1\Utilities\vtklibxml2\DOCBparser.c)
27>  C:\VTK-build\Utilities\vtklibxml2\config.h(254): note: see previous definition of 'snprintf' (compiling source file C:\VTK5.10.1\Utilities\vtklibxml2\DOCBparser.c)
27>cl : Command line warning D9025: overriding '/W1' with '/w'
27>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file C:\VTK5.10.1\Utilities\vtklibxml2\DOCBparser.c)
27>  SAX2.c
(this error occurs many times)

38>C:\VTK5.10.1\IO\vtkEnSightGoldBinaryReader.cxx(3925): error C2678: binary '==': no operator found which takes a left-hand operand of type 'std::basic_istream<char,std::char_traits<char>>' (or there is no acceptable conversion)
37>  vtkImageHSIToRGB.cxx
38>  c:\vtk5.10.1\common\vtkUnicodeString.h(234): note: could be 'bool operator ==(const vtkUnicodeString &,const vtkUnicodeString &)' (compiling source file C:\VTK5.10.1\IO\vtkEnSightGoldBinaryReader.cxx)
38>  c:\vtk5.10.1\common\vtkWeakPointerBase.h(96): note: or       'bool operator ==(const vtkWeakPointerBase &,vtkObjectBase *)' (compiling source file C:\VTK5.10.1\IO\vtkEnSightGoldBinaryReader.cxx)
38>  c:\vtk5.10.1\common\vtkWeakPointerBase.h(96): note: or       'bool operator ==(vtkObjectBase *,const vtkWeakPointerBase &)' (compiling source file C:\VTK5.10.1\IO\vtkEnSightGoldBinaryReader.cxx)
38>  c:\vtk5.10.1\common\vtkWeakPointerBase.h(96): note: or       'bool operator ==(const vtkWeakPointerBase &,const vtkWeakPointerBase &)' (compiling source file C:\VTK5.10.1\IO\vtkEnSightGoldBinaryReader.cxx)

...

Am I wasting my time with VS 2015?

Thanks
Gib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151110/c296ca72/attachment.html>


More information about the vtkusers mailing list