Open franciscomcm opened 2 years ago
Hi, did you end up solving this issue? I get the same error after following the Manually Building On Linux steps.
I was having the exact same problem but i found a solution that seems to work. I built elastix v5.0.1
manually using the -fPIC
flag for the g++
compiler. Assuming the installation directory is set to /usr/local
, the static libraries libelastix-5.0.a
and libtransformix-5.0.a
are installed in /usr/local/lib
.
Before proceeding to build SimpleElastix, i created a link of these two libraries to libelastix.a
and libtransformix.a
respectively:
cd /usr/local/lib
sudo ln libelastix-5.0.a libelastix.a
sudo ln libtransformix-5.0.a libtransformix.a
and the built was successful.
I doubt that this is a 'good' solution but it nevertheless worked for me. Hope this helps!
Thanks! @ChristosChadoulos I was able to build and install without errors thanks to your advice
however, there is still a problem- once I try to import SimpleITK I get this error: ImportError: /home/gali/anaconda3/envs/thesis/lib/python3.9/site-packages/SimpleITK-2.0.0rc2.dev910+ga138e-py3.9-linux-x86_64.egg/SimpleITK/_SimpleITK.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZTIN11xoutlibrary8xoutbaseE
can I ask what versions/tags/commits you've used for ITK, elastix, simpleITK and simpleelastix? maybe I'll start over with the versions that have worked for you
thanks again!
Hi @galihod! Unfortunately not, I ended up getting ITKElastix to work instead. I will also give a try to Christos solution!
Hello,
I am trying to compile SimpleElastix following the instructions given here and here (for Python 3.x). I followed the steps and managed to fix some of the errors I encountered in the process, but it still fails at 100% with a linker error:
I tried on macOS Big Sur v11.6 (Apple clang version 12.0.0) and Fedora release 34 (clang version 12.0.1, gcc 11.2.1, GNU ld version 2.35.2-6.fc34).
I would appreciate any help! Thank you!