Looks like VTMK is not building for the latest preview.
See the following thread where @chir.set needs to finalize compatibility with VTK 9.4.
In windows stable (5.8.1) extension is present but fails to launch after the install with this error:
Error(s):
CLI executable: C:/Users/maria/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/SlicerVMTK/lib/Slicer-5.8/qt-loadable-modules/vtkvmtk.py
The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.
Fail to instantiate module "vtkvmtk"
The following modules failed to be instantiated:
On Mac 5.8.1 it installs and works fine.
This error message can be safely ignored. See the following:
Not even for SlicerStable on cdash since a commit I made 2 weeks ago.
I am merging a patch and will see tomorrow.
Please see this comment.
SlicerVMTK built for Mac but not for Windows on cdash with the last patch I pushed.
I am reverting the offending commit and will monitor cdash to check how it builds on the 3 platforms.
VTK-9.2/9.4 compatibility: I would recommend to keep the same source code for the stable and preview releases for now. To get VMTK compatibility with both VTK versions, update to the latest VMTK.
CMake updates: I would not try to make any CMake file changes in VMTK extension now (and revert any changes that cause trouble), but wait for Slicer and all its dependencies to support CMake4 first.
SlicerVMTK now builds for Mac and Windows, for SlicerStable. The Linux build does not seem to be triggered, for another extension also.
For a successful build of VMTK itself at the latest commit, this patch must be applied, for VTK 9.4.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0d46a7c..4043110 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.12...3.29.1)
+cmake_minimum_required(VERSION 3.3)
project(VMTK)
@@ -27,7 +27,7 @@ if(VMTK_WITH_LIBRARY_VERSION)
)
endif()
-find_package( Python3 COMPONENTS Interpreter )
+find_package( PythonInterp )
if (NOT VMTK_PYTHON_VERSION)
set(VMTK_PYTHON_VERSION "python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" CACHE STRING "" FORCE)
endif ()
@@ -309,17 +309,11 @@ if(VMTK_SCRIPTS_ENABLED)
${VMTK_BINARY_DIR}/VMTKConfig.cmake
@ONLY IMMEDIATE
)
- install(FILES ${VMTK_BINARY_DIR}/VMTKConfig.cmake
- TYPE LIB
- )
configure_file(
${VMTK_SOURCE_DIR}/CMake/VMTKUse.cmake.in
${VMTK_BINARY_DIR}/VMTKUse.cmake
@ONLY IMMEDIATE
)
- install(FILES ${VMTK_BINARY_DIR}/VMTKUse.cmake
- TYPE LIB
- )
endif()
It’s just a reverse of that commit for the CMakeLists.txt
only.