I’ve attempted to build all of the default and optional modules, as well as all testing and example. There are several errors during configuration and generation. I just simply turn these corresponding modules off, and it works. I’m not sure if some of them are bugs, so here provide these errors for your reference.
Modules
VkFFTBackend: turn off because FFTW GPL risk
WebAssemblyInterface: need to git clone manually
CMake Error at CMake/ITKModuleRemote.cmake:111 (message): Failed to checkout tag: ‘982daf8ea91d5ecb052c3bf707542dbc43a4d1ef’ Call Stack (most recent call first): CMake/ITKModuleRemote.cmake:145 (_git_update) CMake/ITKModuleRemote.cmake:273 (_fetch_with_git) Modules/Remote/WebAssemblyInterface.remote.cmake:45 (itk_fetch_module) Modules/Remote/CMakeLists.txt:21 (include)
ITKTBB: compiled by default module, so don’t need to turn on
CMake Error at Modules/ThirdParty/TBB/itk-module-init.cmake:2 (find_package): Could not find a package configuration file provided by “TBB” with any of the following names: TBBConfig.cmake tbb-config.cmake Add the installation prefix of “TBB” to CMAKE_PREFIX_PATH or set “TBB_DIR” to a directory containing one of the above files. If “TBB” provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMake/ITKModuleEnablement.cmake:374 (include) CMakeLists.txt:583 (include)
IOOpenSlide: turn off because LGPL risks
CMake Error at Modules/Remote/IOOpenSlide/CMakeLists.txt:8 (message):
Please specify OPENSLIDE_LIBRARY and OPENSLIDE_INCLUDE_DIR.
ITKVideoBridgeOpenCV:need to install OpenCV in system
CMake Error at Modules/Video/BridgeOpenCV/itk-module-init.cmake:4 (find_package):
By not providing “FindOpenCV.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “OpenCV”, but
CMake did not find one.
Could not find a package configuration file provided by “OpenCV” with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of “OpenCV” to CMAKE_PREFIX_PATH or set
“OpenCV_DIR” to a directory containing one of the above files. If “OpenCV”
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMake/ITKModuleEnablement.cmake:374 (include)
CMakeLists.txt:583 (include)
ITKVtkGlue: need to compile VTK additionally
LesionSizingToolkit:depend on VTKGlue
CMake Error at Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package):
Could not find a package configuration file provided by “VTK” with any of
the following names:
VTKConfig.cmake
vtk-config.cmake
Add the installation prefix of “VTK” to CMAKE_PREFIX_PATH or set “VTK_DIR”
to a directory containing one of the above files. If “VTK” provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
CMake/ITKModuleEnablement.cmake:374 (include)
CMakeLists.txt:583 (include)
SphinxExamples:path too long (ITK folder is already in C:\)
CMake Error at Modules/Remote/SphinxExamples/CMakeLists.txt:65 (message):
The source directory is currently too long, 40 characters. Please move the
Examples source directory to a shorter path.
CudaCommon: CUDA environment needed
CMake Error at Modules/Remote/CudaCommon/src/CMakeLists.txt:12 (target_link_libraries):
Target “CudaCommon” links to:
CUDA::cudart
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Example and Testing
IsotropicWavelets_BUILD_EXAMPLES: lack of module
CMake Error at CMake/ITKModuleAPI.cmake:88 (message):
No such module: “ITKImageIO”
Call Stack (most recent call first):
CMake/ITKModuleAPI.cmake:31 (itk_module_load)
CMake/ITKModuleAPI.cmake:143 (_itk_module_config_recurse)
C:/ITK/build/CMakeTmp/ITKConfig.cmake:52 (itk_module_config)
Modules/Remote/IsotropicWavelets/examples/CMakeLists.txt:4 (find_package)
TubeTK_BUILD_EXAMPLES: cannot find package
CMake Error at Modules/Remote/TubeTK/examples/Applications/CMakeLists.txt:39 (find_package):
By not providing “FindSlicerExecutionModel.cmake” in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
“SlicerExecutionModel”, but CMake did not find one.
Could not find a package configuration file provided by
“SlicerExecutionModel” with any of the following names:
SlicerExecutionModelConfig.cmake
slicerexecutionmodel-config.cmake
Add the installation prefix of “SlicerExecutionModel” to CMAKE_PREFIX_PATH
or set “SlicerExecutionModel_DIR” to a directory containing one of the
above files. If “SlicerExecutionModel” provides a separate development
package or SDK, be sure it has been installed.
Thanks for your support.