I am programming an extension module for Slicer 3D. In one step I need to call an external command (Elastix). At this point is when I obtain the following error:
My guess is that the Slicer version of the libcrypto ends up in your PATH/LD_LIBRARY_PATH before the system library paths, and conflicts with the version expected by libgdmCommon (the elastix copy of it).
What type of extension is this, Python or C++ (CLI)?
This issue has been discussed before - see this page. The problem was what Isaiah described above (preferred library paths set up by the Slicer launcher caused loading of wrong version of some shared libraries).
I think the best would be to add a new extension to Slicer that contains Elastix. Alba, would you be interested/have time to work on this?
After reading that page it seems I have solved it with this commands:
import os os.system(‘elastix’) os.environ[‘ITKAUTOLOAD_PATH’] = ‘’
Now my time is limited but it would be a great idea…and I guess it would help us. Maybe after I finish my final degree project I could improve it with an Elastix extension
I’ve added Elastix as an extension to Slicer - download the nightly build of Slicer tomorrow and install it from the extension manager. It includes the Elastix toolbox, so you don’t have to manually install or configure anything.