Operating system: windows
Slicer version: 4.11
I am trying to build the SlicerCAT as explained in https://blog.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/ by following the exact instructions here Windows — 3D Slicer documentation
I have got error and warnings about CTK, VTK and simpleITK projects in the last step of the build process in VS while I haven’t change anything in CMakeLists.txt
. would you please tell me how to fix it?
Details about error and warnings related to CTK, VTK and simpleITK projects
|Error|MSB8066|Custom build for 'E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-mkdir.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-download.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-update.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-patch.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-configure.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-build.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-forceconfigure.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-install.rule;E:\D\S4R\CMakeFiles\a292924acdc90ab5003f524bcf7a9fa8\Slicer-complete.rule;E:\D\S4R\CMakeFiles\18dd41b82dccc87fa779d30114192df1\Slicer.rule;E:\D\S4\Slicer\CMakeLists.txt' exited with code 1.|Slicer|C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets|242||
|Error|MSB8066|Custom build for 'E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-mkdir.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-download.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-update.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-patch.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-configure.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-build.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-install.rule;E:\D\S4R\CMakeFiles\a292924acdc90ab5003f524bcf7a9fa8\SimpleITK-complete.rule;E:\D\S4R\CMakeFiles\18dd41b82dccc87fa779d30114192df1\SimpleITK.rule;E:\D\S4\Slicer\CMakeLists.txt' exited with code 1.|SimpleITK|C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets|242||
|Error|MSB8066|Custom build for 'E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-mkdir.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-download.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-update.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-patch.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-configure.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-forcebuild.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-build.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-install.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\9be4e433cd02aef5b6487fefef7ada35\SimpleITK-complete.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\bb9f6672bdc8a30b78dccc82e0a89b19\SimpleITK.rule;E:\D\S4R\SimpleITK\SuperBuild\CMakeLists.txt' exited with code 1. [E:\D\S4R\SimpleITK-build\SimpleITK.vcxproj]|SimpleITK|C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets|242||
|Error|LNK1181|cannot open input file 'E:\D\S4R\ITK-build\lib\Release\itksys-5.2.lib' [E:\D\S4R\SimpleITK-build\SimpleITK-build\Code\Common\src\SimpleITKCommon.vcxproj] [E:\D\S4R\SimpleITK-build\SimpleITK.vcxproj]|SimpleITK|E:\D\S4R\LINK|1||
|Error|MSB8066|Custom build for 'E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-mkdir.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-download.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-update.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-patch.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-configure.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-build.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-generate_project_description.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-install.rule;E:\D\S4R\CMakeFiles\a292924acdc90ab5003f524bcf7a9fa8\SlicerExecutionModel-complete.rule;E:\D\S4R\CMakeFiles\18dd41b82dccc87fa779d30114192df1\SlicerExecutionModel.rule;E:\D\S4\Slicer\CMakeLists.txt' exited with code 1.|SlicerExecutionModel|C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets|242||
|Error|LNK1181|cannot open input file 'E:\D\S4R\ITK-build\lib\Release\itksys-5.2.lib' [E:\D\S4R\SlicerExecutionModel-build\ModuleDescriptionParser\ModuleDescriptionParser.vcxproj]|SlicerExecutionModel|E:\D\S4R\LINK|1||
|Error|MSB8066|Custom build for 'E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-mkdir.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-download.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-update.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-patch.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-configure.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-build.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-generate_project_description.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-install.rule;E:\D\S4R\CMakeFiles\a292924acdc90ab5003f524bcf7a9fa8\CTK-complete.rule;E:\D\S4R\CMakeFiles\18dd41b82dccc87fa779d30114192df1\CTK.rule;E:\D\S4\Slicer\CMakeLists.txt' exited with code 1.|CTK|C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets|242||
|Error|MSB8066|Custom build for 'E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-mkdir.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-download.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-update.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-patch.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-configure.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-build.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-forceconfigure.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-install.rule;E:\D\S4R\CTK-build\CMakeFiles\5ecc0909b7e629936336667a3198cb7f\CTK-complete.rule;E:\D\S4R\CTK-build\CMakeFiles\133301bfd8d7306c1cff6360a6c6b40c\CTK.rule;E:\D\S4R\CTK\CMakeLists.txt' exited with code 1. [E:\D\S4R\CTK-build\CTK.vcxproj]|CTK|C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets|242||
Severity | Code | Description | Project | File | Line | Suppression State |
---|---|---|---|---|---|---|
Error | MSB8066 | Custom build for ‘E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-mkdir.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-download.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-update.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-patch.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-configure.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-build.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-forceconfigure.rule;E:\D\S4R\CMakeFiles\edbed8a7c8f5e3496e69de9e4425bff5\Slicer-install.rule;E:\D\S4R\CMakeFiles\a292924acdc90ab5003f524bcf7a9fa8\Slicer-complete.rule;E:\D\S4R\CMakeFiles\18dd41b82dccc87fa779d30114192df1\Slicer.rule;E:\D\S4\Slicer\CMakeLists.txt’ exited with code 1. | Slicer | C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets | 242 | |
Error | MSB8066 | Custom build for ‘E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-mkdir.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-download.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-update.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-patch.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-configure.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-build.rule;E:\D\S4R\CMakeFiles\eec0fafea484c1c9bf8d0dbc735ed3d8\SimpleITK-install.rule;E:\D\S4R\CMakeFiles\a292924acdc90ab5003f524bcf7a9fa8\SimpleITK-complete.rule;E:\D\S4R\CMakeFiles\18dd41b82dccc87fa779d30114192df1\SimpleITK.rule;E:\D\S4\Slicer\CMakeLists.txt’ exited with code 1. | SimpleITK | C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets | 242 | |
Error | MSB8066 | Custom build for ‘E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-mkdir.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-download.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-update.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-patch.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-configure.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-forcebuild.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-build.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\e434fb47607d62ac9904788467fcbb5e\SimpleITK-install.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\9be4e433cd02aef5b6487fefef7ada35\SimpleITK-complete.rule;E:\D\S4R\SimpleITK-build\CMakeFiles\bb9f6672bdc8a30b78dccc82e0a89b19\SimpleITK.rule;E:\D\S4R\SimpleITK\SuperBuild\CMakeLists.txt’ exited with code 1. [E:\D\S4R\SimpleITK-build\SimpleITK.vcxproj] | SimpleITK | C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets | 242 | |
Error | LNK1181 | cannot open input file ‘E:\D\S4R\ITK-build\lib\Release\itksys-5.2.lib’ [E:\D\S4R\SimpleITK-build\SimpleITK-build\Code\Common\src\SimpleITKCommon.vcxproj] [E:\D\S4R\SimpleITK-build\SimpleITK.vcxproj] | SimpleITK | E:\D\S4R\LINK | 1 | |
Error | MSB8066 | Custom build for ‘E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-mkdir.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-download.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-update.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-patch.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-configure.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-build.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-generate_project_description.rule;E:\D\S4R\CMakeFiles\99511604aac5c76d372eaa262a119621\SlicerExecutionModel-install.rule;E:\D\S4R\CMakeFiles\a292924acdc90ab5003f524bcf7a9fa8\SlicerExecutionModel-complete.rule;E:\D\S4R\CMakeFiles\18dd41b82dccc87fa779d30114192df1\SlicerExecutionModel.rule;E:\D\S4\Slicer\CMakeLists.txt’ exited with code 1. | SlicerExecutionModel | C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets | 242 | |
Error | LNK1181 | cannot open input file ‘E:\D\S4R\ITK-build\lib\Release\itksys-5.2.lib’ [E:\D\S4R\SlicerExecutionModel-build\ModuleDescriptionParser\ModuleDescriptionParser.vcxproj] | SlicerExecutionModel | E:\D\S4R\LINK | 1 | |
Error | MSB8066 | Custom build for ‘E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-mkdir.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-download.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-update.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-patch.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-configure.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-build.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-generate_project_description.rule;E:\D\S4R\CMakeFiles\9bad8873f29c688a199c24d814eb83b7\CTK-install.rule;E:\D\S4R\CMakeFiles\a292924acdc90ab5003f524bcf7a9fa8\CTK-complete.rule;E:\D\S4R\CMakeFiles\18dd41b82dccc87fa779d30114192df1\CTK.rule;E:\D\S4\Slicer\CMakeLists.txt’ exited with code 1. | CTK | C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets | 242 | |
Error | MSB8066 | Custom build for ‘E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-mkdir.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-download.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-update.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-patch.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-configure.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-build.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-forceconfigure.rule;E:\D\S4R\CTK-build\CMakeFiles\6897e4f0eca62e72c3a61e1ea7f571d2\CTK-install.rule;E:\D\S4R\CTK-build\CMakeFiles\5ecc0909b7e629936336667a3198cb7f\CTK-complete.rule;E:\D\S4R\CTK-build\CMakeFiles\133301bfd8d7306c1cff6360a6c6b40c\CTK.rule;E:\D\S4R\CTK\CMakeLists.txt’ exited with code 1. [E:\D\S4R\CTK-build\CTK.vcxproj] | CTK | C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets | 242 | |
Warning | C4996 | ‘QTime::start’: Use QElapsedTimer instead [E:\D\S4R\CTK-build\CTK-build\Libs\Visualization\VTK\Widgets\CTKVisualizationVTKWidgets.vcxproj] [E:\D\S4R\CTK-build\CTK.vcxproj] | CTK | E:\D\S4R\CTK\Libs\Visualization\VTK\Widgets\ctkVTKAbstractView.cpp | 206 | |
Warning | C4302 | ‘reinterpret_cast’: truncation from ‘void *’ to ‘long’ [E:\D\S4R\CTK-build\CTK-build\Libs\Visualization\VTK\Widgets\CTKVisualizationVTKWidgets.vcxproj] [E:\D\S4R\CTK-build\CTK.vcxproj] | CTK | E:\D\S4R\CTK\Libs\Visualization\VTK\Widgets\ctkVTKScalarsToColorsWidget.cpp | 299 | |
Warning | C4302 | ‘reinterpret_cast’: truncation from ‘void *’ to ‘unsigned long’ [E:\D\S4R\CTK-build\CTK-build\Libs\Visualization\VTK\Widgets\CTKVisualizationVTKWidgets.vcxproj] [E:\D\S4R\CTK-build\CTK.vcxproj] | CTK | E:\D\S4R\CTK\Libs\Visualization\VTK\Widgets\ctkVTKScalarsToColorsView.cpp | 559 | |
Warning | C4996 | ‘Qt::MidButton’: MidButton is deprecated. Use MiddleButton instead [E:\D\S4R\CTK-build\CTK-build\Libs\Visualization\VTK\Widgets\CTKVisualizationVTKWidgets.vcxproj] [E:\D\S4R\CTK-build\CTK.vcxproj] | CTK | E:\D\S4R\CTK\Libs\Visualization\VTK\Widgets\ctkVTKChartView.cpp | 428 | |
Error | LNK1181 | cannot open input file ‘E:\D\S4R\ITK-build\lib\Release\ITKCommon-5.2.lib’ [E:\D\S4R\CTK-build\CTK-build\Libs\ImageProcessing\ITK\Core\CTKImageProcessingITKCore.vcxproj] [E:\D\S4R\CTK-build\CTK.vcxproj] | CTK | E:\D\S4R\LINK | 1 |