I compiled 3D slicer (5.6.1), but vtk failed to compile successfully (vs2019, Qt5.15.2). It seems to be python related, and one of them reported an error:
16> Generating Python wrapper sources for vtkAbstractGridConnectivity
16> vtkWrapPython-9.2d.exe: In D:/gitrepos/Slicer/build/VTK/Filters/Geometry/vtkAbstractGridConnectivity.h:1: syntax error.
16>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: “D:\gitrepos\Slicer\build \VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkAbstractGridConnectivityPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkAttributeSmoothingFilterPython.cxx .rule;D:\gitrepos\Slicer\build\VTK-build \CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkCompositeDataGeometryFilterPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkDataSetRegionSurfaceFilterPython.cxx .rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a \vtkDataSetSurfaceFilterPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkExplicitStructuredGridSurfaceFilterPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af1 1fe569d29134735de9f076a\vtkGeometryFilterPython.cxx .rule; D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkHierarchicalDataSetGeometryFilterPython.cxx.rule; f076a\vtkImageDataGeometryFilterPython.cxx.rule;D :\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkImageDataToUniformGridPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vt kLinearToQuadraticCellsFilterPython.cxx.rule;D:\gitrepos\ Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkMarkBoundaryFilterPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkProjectSphereFilterPython .cxx.rule;D:\gitrepos\Slicer\build\ VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkRecoverGeometryWireframePython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkRectilinearGridGeometryFilter Python.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\ CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkRectilinearGridPartitionerPython.cxx.rule; ;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\ vtkStructuredAMRNeighborPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkStructuredGridConnectivityPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569 d29134735de9f076a\vtkStructuredGeometryFilterPython.cxx. rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkStructuredGridPartitionerPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a \vtkStructuredNeighborPython.cxx.rule;D: \gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkStructuredPointsGeometryFilterPython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\v tkUnstructuredGridGeometryFilterPython.cxx.rule;D:\gitrepos\Slicer \build\VTK-build\CMakeFiles\403ee1af11fe569d29134735de9f076a\vtkFiltersGeometryModulePython.cxx.rule;D:\gitrepos\Slicer\build\VTK-build\CMakeFiles\91e9c2b522b46bd386e977bc61299a90\vtkFiltersG eometryPythonInit.cxx.rule" exited with code 1 . [D:\gitrepos\Slicer\build\VTK-build\vtkFiltersGeometryPython.vcxproj]