question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem using ITKElastix in another ITK remote module

See original GitHub issue

I am trying to use ITKElastix from HASI. To accomplish this, I am adding ITKElastix as a remote module to ITK. ITK builds fine, but HASI runs into link errors (cannot find elastix_lib.lib). In an attempt to fix this, I tried adding CMake export code to ITKElastix, but this causes circular dependency of transformix_lib and elastix_lib when trying to generate ITK project from CMake:

Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
Running module dependency checks
Enabled BoneEnhancement, requested by Module_BoneEnhancement.
Enabled Cuberille, requested by Module_Cuberille.
Enabled Elastix, requested by Module_Elastix.
Enabled ITKAnisotropicSmoothing, requested by ITK_BUILD_DEFAULT_MODULES.
Enabled ITKAntiAlias, requested by ITK_BUILD_DEFAULT_MODULES.
...
Enabled ITKVtkGlue, requested by Module_ITKVtkGlue.
Enabled ITKWatersheds, requested by ITK_BUILD_DEFAULT_MODULES.
Enabled ITKZLIB, requested by ITK_BUILD_DEFAULT_MODULES.
Elastix_LIBRARIES: elastix_lib;transformix_lib
elx_BINARY_DIR: C:/Dev/ITK-git-2015/_deps/elx-build
Checking for InitOnceExecuteOnce:
Performing Test InitOnceExecuteOnce - Success
Warnings Configuration:
Filter ZLIB is ON
Could NOT find Perl (missing: PERL_EXECUTABLE) 
Configuring done
CMake Error at C:/Dev/ITK-git-2015/_deps/elx-src/Core/CMakeLists.txt:184 (add_library):
  Target "transformix_lib" links to itself.

CMake Error at C:/Dev/ITK-git-2015/_deps/elx-src/Core/CMakeLists.txt:184 (add_library):
  Target "transformix_lib" links to itself.

CMake Error at C:/Dev/ITK-git-2015/_deps/elx-src/Core/CMakeLists.txt:154 (add_library):
  Target "elastix_lib" links to itself.

CMake Error at C:/Dev/ITK-git-2015/_deps/elx-src/Core/CMakeLists.txt:154 (add_library):
  Target "elastix_lib" links to itself.

CMake Error at C:/Dev/ITK-git-2015/_deps/elx-src/Core/CMakeLists.txt:154 (add_library):
  Target "elastix_lib" links to itself.

CMake Error at C:/Dev/ITK-git-2015/_deps/elx-src/Core/CMakeLists.txt:184 (add_library):
  Target "transformix_lib" links to itself.

Generating done

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
dzenanzcommented, Nov 19, 2020

Update: we have a version of the involved software which compiles. I will follow up (this week or next) in respective repositories.

0reactions
dzenanzcommented, Dec 22, 2020

Partly addressed, partly abandoned.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backwards incompatibility with (pip) itk-5.3rc4.post2 and itk ...
Hi! I just want to report that if I install: pip uninstall -y itk{,-{,elastix,tubetk,strain,core,filtering,io,minimalpathextraction,numerics ...
Read more >
BUG: `v5.3rc04.post2` breaks backwards compatibility with ...
Install external module package. Tested with itk-meshtopolydata , itk-elastix , itk-ultrasound · In a Python console try to force load modules ...
Read more >
SlicerRT does not build due to missing ITK remote module
The dashboard currently shows a trivial Plastimatch configuration error (saying that only ITK 3 and 4 are supported),the bigger problem is ...
Read more >
Python error: module 'itk' has no attribute 'ParameterObject'
You need ITKElastix. Get it via pip install itk-elastix . If you are building ITK from source, you need to build ITKElastix from...
Read more >
SimpleITK-SimpleElastix - PyPI
SimpleITK is a simplified interface to the Insight Toolkit (ITK) for image ... SimpleElastix is an extension of SimpleITK that offers a user-friendly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found