WIP: Experimental Python package builds against ITK 6.0 Beta 2#381
WIP: Experimental Python package builds against ITK 6.0 Beta 2#381thewtex wants to merge 1 commit into
Conversation
|
xref #307 |
@N-Dekker is there a version of elastix that has been updated for ITK 6 CMake module targets? |
@thewtex I don't think so, sorry! The last time I tried an ITK 6 with elastix, it was still without "CMake module targets", if I understand correctly. It was using the old ITK v6.0b02 tagged by Hans: https://github.com/SuperElastix/elastix/tree/Use-ITK-v6.0b02 Do you think support for ITK 6 CMake module targets could be added without dropping ITK5, for elastix? You know, I would like the main branch of elastix to support using an official release of ITK, not just a beta. So then elastix should at least support the last non-beta of ITK, which is now ITK 5.4.5. 🤷 |
|
@N-Dekker 👍 I'll work on adding ITK 6 support, while also supporting ITK 5. |
@thewtex I am going to assume this is getting the wrapping to work with ITKv6 as opposed to a larger refactor to use ITK target and set target properties for elastix libraries? Related is SimpleITK/SimpleITK #2543 which is trying to use Elastix with FetchConent. Elastix currently is using mostly directory properties over target properties. |
|
@N-Dekker @blowekamp I'm not sure everything I will run into, but I am taking a look :-) |
It's unfortunate I neglected to look into building elastix this way and I'm not online next week. Briefly looking at the error: This looks like elastix_lib may have been a string on a link line, and not a proper cmake target? In this module Elastix provides essentially third party libraries provided in this module. It would be relevant to look at itk_module_target https://github.com/InsightSoftwareConsortium/ITK/blob/main/CMake/ITKModuleMacros.cmake#L829-L849 And how it it's used in other thridparty and remote modules. When configuring ITKElastix it should produce a Targets file in the ITK build's cmake/ITK-6.0 path ( I don't recall the exact name/path right now for the externally built targets. ) I Hope that's helpful. |
|
@blowekamp thanks! |
|
See #382 and SuperElastix/elastix#1426 for work. |
No description provided.