VTK failed to build with error 2666 on MSVC
Hi, all VTK fails to build on MSVC due to error C2666. Could you help look?
error message
F:\gitP\vtk\vtk\IO\MINC\vtkMINCImageAttributes.cxx(468,12): error C2666: 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>::operator []': overloaded functions have similar conversions [F:\gitP\vtk\vtk\build_x86\IO\MINC\IOMINC.vcxproj]
Version Information
the commit of Azerothcore_wotlk we use is 3d190792 windows server 2019 VS version: VS2019 (16.11.11)
Steps to reproduce the problem
- git clone https://gitlab.kitware.com/vtk/vtk/ F:\gitP\vtk\vtk
- cd F:\gitP\vtk\vtk
- set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=x86 -arch=x86
- mkdir build_x86
- cd F:\gitP\vtk\vtk\build_x86
- cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DBUILD_SHARED_LIBS=OFF -DVTK_BUILD_TESTING=WANT -DVTK_BUILD_EXAMPLES=OFF -DVTK_IGNORE_CMAKE_CXX11_CHECKS=TRUE -DVTK_DATA_EXCLUDE_FROM_ALL=ON .. 2>&1
- cd F:\gitP\vtk\vtk\build_x86
- msbuild /m /p:Platform=Win32 /p:Configuration=Release All_BUILD.vcxproj /t:Rebuild 2>&1
Edited by Mathieu Westphal (Kitware)