ANTsPy icon indicating copy to clipboard operation
ANTsPy copied to clipboard

Faliure to build on Arch Linux with python 3.8

Open mark-dawn opened this issue 3 years ago • 1 comments

Describe the bug Hello, I was trying to build the project but cmake seems to be throwing errors. This might be due to the fact that I'm on python 3.8, but there are no information of a maximum version in the readme.

To Reproduce The build process fails, either with the last commit or the last commit that the automated testing system seem to have passed (39142f6fec72284f688857b348ae9d267dc61ab3)

In general make seems to not find certain recipes/failing to build a file, which makes me think it might not be the python version but some missing dependency

make[2]: *** [Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/build.make:482: Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageChangePhotometricInterpretation.cxx.o] Error 1
[...]
make[2]: *** No rule to make target '/tmp/pip-req-build-kcnfhc3o/itkbuild/lib/libitkvnl_algo-5.2.a', needed by '/tmp/pip-req-build-kcnfhc3o/ants/lib/addNoiseToImage.cpython-38-x86_64-linux-gnu.so'.  Stop.

However it seems that Ants binaries from the aur have built just fine, so I feel a bit confused.

mark-dawn avatar Jan 14 '22 10:01 mark-dawn

Ok, looking a bit more into this it seems that the aur version of Ants has a GCDM patch, that might be necessary to compile ITK. I will have to look on how to use a patch on an external dependency while invoking pip but this might work, I'll report if I can fix it.

mark-dawn avatar Jan 14 '22 11:01 mark-dawn