I’m having trouble getting SlicerOpenIGTLink to compile, but it’s a different problem, and I can’t tell if it’s getting past the place where SlicerExtension-VMTK stops. Here’s the error:
[ 97%] Performing configure step for ‘Slicer’
…
– Configuring extension directory: SlicerOpenIGTLink
– Checking EXTENSION_NAME variable
– Checking EXTENSION_NAME variable - NOTDEFINED
– Checking MODULE_NAME variable
– Checking MODULE_NAME variable - NOTDEFINED
– Checking PROJECT_NAME variable
– Checking PROJECT_NAME variable - SlicerOpenIGTLink
– Setting EXTENSION_NAME …: SlicerOpenIGTLink
– Checking EXTENSION_NAME variable
– Checking EXTENSION_NAME variable - SlicerOpenIGTLink
– Looking for decorator header qSlicerOpenIGTLinkIFModuleWidgetsPythonQtDecorators.h
– Looking for decorator header qSlicerOpenIGTLinkIFModuleWidgetsPythonQtDecorators.h - Not found
– Configuring Loadable module: OpenIGTLinkIF [qSlicerOpenIGTLinkIFModuleExport.h]
CMake Error at /short/pack/PADPlanner-SB/SlicerOpenIGTLink/OpenIGTLinkIF/Testing/CMakeLists.txt:29 (list):
list sub-command INSERT requires at least three arguments.
I’m still not certain about what’s happening, but something that may be interesting is that with OpenIGTLink, I don’t see the message output lines that I added to ExternalProjectDependency.cmake in the build output. In both cases, I see them in the Configure stage in the CMake GUI, but with SlicerExtension-VMTK, I see them again in the Slicer build configuration phase. It makes me think that OpenIGTLink doesn’t re-run the macro during the build.
Here’s the build output leading up to the error when I try adding SlicerExtension-VMTK to Slicer. The four lines after “SuperBuild - First pass” are my additions.
[ 97%] Performing configure step for ‘Slicer’
…
– Configuring extension directory: SlicerExtension-VMTK
CMake Warning (dev) at /short/pack/PADPlanner-SB/SlicerExtension-VMTK/CMakeLists.txt:4 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run “cmake --help-policy CMP0048” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
– Checking EXTENSION_NAME variable
– Checking EXTENSION_NAME variable - NOTDEFINED
– Checking MODULE_NAME variable
– Checking MODULE_NAME variable - NOTDEFINED
– Checking PROJECT_NAME variable
– Checking PROJECT_NAME variable - SlicerVMTK
– Setting EXTENSION_NAME …: SlicerVMTK
– SuperBuild - First pass
EXTERNAL_PROJECT_DIR location is /short/pack/PADPlanner-SB/slicersources-src/SuperBuild/External_VMTK.cmake
dep_FILEPATH location is
EXTERNAL_PROJECT_ADDITIONAL_DIR location is /External_VMTK.cmake
This is the whole EXTERNAL_PROJECT_ADDITIONAL_DIRS list:
CMake Error at /short/pack/PADPlanner-SB/slicersources-src/CMake/ExternalProjectDependency.cmake:862 (message):
Can’t find External_VMTK.cmake
Call Stack (most recent call first):
/short/pack/PADPlanner-SB/SlicerExtension-VMTK/SuperBuild.cmake:32 (ExternalProject_Include_Dependencies)
/short/pack/PADPlanner-SB/SlicerExtension-VMTK/CMakeLists.txt:33 (include)
-- Configuring incomplete, errors occurred!
See also “/short/pack/PADPlanner-SB/Slicer-build/CMakeFiles/CMakeOutput.log”.
See also “/short/pack/PADPlanner-SB/Slicer-build/CMakeFiles/CMakeError.log”.
make[2]: *** [slicersources-build/Slicer-prefix/src/Slicer-stamp/Slicer-configure] Error 1
make[1]: *** [slicersources-build/CMakeFiles/Slicer.dir/all] Error 2
make: *** [all] Error 2