Commit 15ad9f0
COMP: Fix linker errors and disable broken Python wrapping
Two pre-existing issues exposed by working CI:
1. src/ executables fail to link against ITK shared libraries in
external-module builds. The VariationalRegistration_LIBRARIES
variable contains target names but the external-module CMake
context doesn't fully resolve their link dependencies. Adding
ITK_LIBRARIES (set by find_package(ITK)) provides the complete
transitive link set:
undefined reference to itk::DataObject::GetUpdateMTime()
undefined reference to itk::DataObject::DataHasBeenGenerated()
undefined reference to typeinfo for itk::ExceptionObject
2. Seven .wrap files pass the wrong number of template arguments:
- Regularizer, DiffusionRegularizer, ElasticRegularizer,
GaussianRegularizer, CurvatureRegularizer: all take 1 template
param (TDisplacementField) but wrapping uses
itk_wrap_image_filter with 2 image types
- StopCriterion: takes (TRegistrationFilter, TMRFilter) — not
image types at all
- MultiResolutionFilter: takes 4 params, wrapping provides 2
These wrapping files have never produced working Python bindings.
Disabled in wrapping/CMakeLists.txt; the 9 correctly-wrapped
3-parameter filters remain active.
ITK v6 is NOT required — these are wrapping authoring bugs, not
API incompatibilities.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a2d14f6 commit 15ad9f0
2 files changed
Lines changed: 23 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | | - | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | | - | |
15 | 12 | | |
16 | | - | |
17 | 13 | | |
18 | | - | |
19 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
20 | 33 | | |
21 | 34 | | |
22 | 35 | | |
0 commit comments