InsightSoftwareConsortium / InsightSoftwareConsortium/ITK

build itk with ITK_USE_CUFFTW ITK_USE_GPU ON gets error

Open
#3,744 14 comments 0 reactions 0 assignees View on GitHub
type:Compiler
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

![88f033127f588834b1041ee3831050a](https://user-images.githubusercontent.com/23504604/202069981-75444915-52d2-4863-a418-e76ebb88a8c6.png)

### Steps to Reproduce

1、set option ITK_USE_GPU=ON ITK_USE_CUFFTW=ON in CmakeList.txt
2、configure cmake
![18af6a41eee9b13f8c0d019c5a6927b](https://user-images.githubusercontent.com/23504604/202070383-cf04c688-a868-483d-ac27-a65fe6e2c6c1.png)

got some warnings as below
![4751fbde926bdac8f18a81189e33f84](https://user-images.githubusercontent.com/23504604/202068737-64024edc-fc31-4a86-b2ea-10213353afaf.png)

![46fcba9965dc1a67254aace213e35be](https://user-images.githubusercontent.com/23504604/202068331-46f6ce61-0036-4796-ac99-3b14a52a1ee0.png)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.