I’m getting the following VTK-related errors while trying to build the Preview version of Slicer for Windows 10. I just updated to CMake 3.23.0-rc2, although I believe this should be fine?
I’m not able to find the lib file that can’t be opened: “vtkViewsQt-9.1d.lib”. Any advice on how to resolve this?
Severity Code Description Project File Line Suppression State
Error C2039 'max': is not a member of 'std' [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 425
Error C2039 'max': is not a member of 'std' [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 328
Error C2065 'max': undeclared identifier [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 328
Error C2275 'vtkIdType': illegal use of this type as an expression [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 328
Error C2039 'min': is not a member of 'std' [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 328
Error C2065 'min': undeclared identifier [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 328
Error C2275 'vtkIdType': illegal use of this type as an expression [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 328
Error C2039 'max': is not a member of 'std' [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 331
Error C2065 'max': undeclared identifier [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 331
Error C2275 'vtkIdType': illegal use of this type as an expression [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 331
Error C2065 'max': undeclared identifier [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 425
Error C2275 'vtkIdType': illegal use of this type as an expression [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 425
Error C2039 'min': is not a member of 'std' [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 425
Error C2065 'min': undeclared identifier [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 425
Error C2275 'vtkIdType': illegal use of this type as an expression [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 425
Error C2039 'max': is not a member of 'std' [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 426
Error C2065 'max': undeclared identifier [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 426
Error C2275 'vtkIdType': illegal use of this type as an expression [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 426
Error C2039 'max': is not a member of 'std' [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 491
Error C2065 'max': undeclared identifier [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 491
Error C2275 'vtkIdType': illegal use of this type as an expression [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 491
Error C2039 'min': is not a member of 'std' [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 491
Error C2065 'min': undeclared identifier [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 491
Error C2275 'vtkIdType': illegal use of this type as an expression [C:\S_B\VTK-build\Common\DataModel\CommonDataModel-objects.vcxproj] VTK C:\S_B\VTK\Common\DataModel\vtkTable.cxx 491
Error LNK1104 cannot open file 'C:\S_B\VTK-build\lib\Debug\vtkViewsInfovis-9.1d.lib' [C:\S_B\CTK-build\CTK-build\Libs\Visualization\VTK\Core\CTKVisualizationVTKCore.vcxproj] [C:\S_B\CTK-build\CTK.vcxproj] CTK C:\S_B\LINK 1
Error LNK1104 cannot open file 'C:\S_B\VTK-build\lib\Debug\vtkViewsQt-9.1d.lib' [C:\S_B\Slicer-build\Libs\vtkAddon\vtkAddon.vcxproj] Slicer C:\S_B\LINK 1
Error LNK1104 cannot open file 'C:\S_B\VTK-build\lib\Debug\vtkViewsQt-9.1d.lib' [C:\S_B\Slicer-build\Libs\vtkITK\vtkITK.vcxproj] Slicer C:\S_B\LINK 1
Error LNK1104 cannot open file 'C:\S_B\VTK-build\lib\Debug\vtkViewsQt-9.1d.lib' [C:\S_B\Slicer-build\Libs\vtkSegmentationCore\vtkSegmentationCore.vcxproj] Slicer C:\S_B\LINK 1
Error LNK1104 cannot open file 'C:\S_B\VTK-build\lib\Debug\vtkViewsQt-9.1d.lib' [C:\S_B\Slicer-build\Libs\vtkTeem\vtkTeem.vcxproj] Slicer C:\S_B\LINK 1