InsightSoftwareConsortium / InsightSoftwareConsortium/ITK
build itk with ITK_USE_CUFFTW ITK_USE_GPU ON gets error
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 748
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 64
Description
build itk master on windows 10 cmake 3.23.1 vs 2022 cuda 11.8 got errors
### Description

### Steps to Reproduce
1、set option ITK_USE_GPU=ON ITK_USE_CUFFTW=ON in CmakeList.txt
2、configure cmake

got some warnings as below


all wrap_* has been turn on, still got the warnings, so i just ignore it and continue generate
### Expected behavior
build successful, then i can build itk montage using cufft acclerated itk
### Actual behavior
build failed
```Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: static void __cdecl itk::FFTWFFTImageFilterInitFactory::RegisterFactories(void)" (?RegisterFactories@FFTWFFTImageFilterInitFactory@itk@@SAXXZ) referenced in function _wrap_itkFFTWFFTImageFilterInitFactory_RegisterOneFactory ITKFFTPython D:\build_itk_new\Wrapping\Modules\ITKFFT\itkFFTWFFTImageFilterInitFactoryPython.obj 1
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "protected: __cdecl itk::FFTWFFTImageFilterInitFactory::FFTWFFTImageFilterInitFactory(void)" (??0FFTWFFTImageFilterInitFactory@itk@@IEAA@XZ) referenced in function "public: static class itk::SmartPointer __cdecl itk::FFTWFFTImageFilterInitFactory::New(void)" (?New@FFTWFFTImageFilterInitFactory@itk@@SA?AV?$SmartPointer@VFFTWFFTImageFilterInitFactory@itk@@@2@XZ) ITKFFTPython D:\build_itk_new\Wrapping\Modules\ITKFFT\itkFFTWFFTImageFilterInitFactoryPython.obj 1
Severity Code Description Project File Line Suppression State
Error LNK1120 2 unresolved externals ITKFFTPython D:\build_itk_new\Wrapping\Generators\Python\itk\_ITKFFTPython.pyd 1
Severity Code Description Project File Line Suppression State
Error MSB8066 Custom build for 'D:\build_itk_new\CMakeFiles\44df38219fcd6d646b4dd91a924288b1\itk-stub-files.rule' exited with code 1. itk-stub-files D:\softwares\visualStudio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets 245
```
### Reproducibility
### Versions
master branch commit id 38696b2609884358af0d10b062213fcfc2ffcef1
### Environment
windows 10 cmake 3.23.1 vs 2022 cuda 11.8 python 3.10.8
### Additional Information
Contributor guide
Assessment
This issue has not been assessed yet.