Dear all,
I'm compiling Elastix with CMake on Linux. I have first successfully compile ITK-5.1.1 with option:
ITK_USE_64BITS_IDS = ON
ITK_LEGACY_REMOVE=ON
ITK_WRAP_PYTHON = ON
Module_ITKReview = ON
Module_RTK = ON
RTK_USE_CUDA = ON.
Then I try to compile Elastix with option:
CMAKE_BUILD_TYPE = Release
ELASTIX_USE_OPENCL = OFF
However, I got following error after I call make order:
[ 70%] Linking CXX executable ../bin/elastix
/usr/bin/ld: cannot find -lITKCudaCommon
collect2: error: ld returned 1 exit status
make[2]: *** [Core/CMakeFiles/elastix_exe.dir/build.make:405: bin/elastix] Error 1
make[1]: *** [CMakeFiles/Makefile2:4615: Core/CMakeFiles/elastix_exe.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
I have GPU on my server and cuda/11.0 is installed. I am wondering is there some conflicts between my ITK/RTK compile and Elastix compile?
If someone knows what's happening here, could you please give me some ideas to solve this problem? Appreciate for any help.
Best,
Zhehao