<div dir="ltr">Hello,<div><br></div><div>I am currently writing a C++ program that I've called FTTC using VS2012 to compile.  I'm having problems including the FFTW libraries, which I downloaded v3.3.4 of the precompiled libraries for Windows, into ITK.  I reconfigured and rebuilt ITK v4.6.1, changing the variables in CMake to turn on ITK_USE_FFTWF and set the path for both FFTWF_LIB and FFTWF_THREADS_LIB to the downloaded version of libfftw3-3.lib.  I also set FFTW_INCLUDE_PATH to where all of the downloaded files for the FFTW are located.</div><div><br></div><div>ITK built without a problem, but when I now compile my program that uses the FFTWForwardFFTImageFilter and FFTWInverseFFTImageFilter, I get a whole host of linker error messages: </div><div><br></div><div><div>fttc.obj : error LNK2019: unresolved external symbol __imp__fftwf_execute referenced in function "protected: virtual void __thiscall itk::FFTWInverseFFTImageFilter<class itk::Image<float,2>,class itk::Image<float,2> >::BeforeThreadedGenerateData(void)" (?BeforeThreadedGenerateData@?$FFTWInverseFFTImageFilter@V?$Image@M$01@itk@@V12@@itk@@MAEXXZ)</div><div><br></div><div>fttc.obj : error LNK2019: unresolved external symbol __imp__fftwf_plan_dft_r2c referenced in function "public: static struct fftwf_plan_s * __cdecl itk::fftw::Proxy<float>::Plan_dft_r2c(int,int const *,float *,float (*)[2],unsigned int,int,bool)" (?Plan_dft_r2c@?$Proxy@M@fftw@itk@@SAPAUfftwf_plan_s@@HPBHPAMPAY01MIH_N@Z)</div><div><br></div><div>fttc.obj : error LNK2019: unresolved external symbol __imp__fftwf_plan_dft_c2r referenced in function "public: static struct fftwf_plan_s * __cdecl itk::fftw::Proxy<float>::Plan_dft_c2r(int,int const *,float (*)[2],float *,unsigned int,int,bool)" (?Plan_dft_c2r@?$Proxy@M@fftw@itk@@SAPAUfftwf_plan_s@@HPBHPAY01MPAMIH_N@Z)</div><div><br></div><div>fttc.obj : error LNK2019: unresolved external symbol __imp__fftwf_destroy_plan referenced in function "protected: virtual void __thiscall itk::FFTWInverseFFTImageFilter<class itk::Image<float,2>,class itk::Image<float,2> >::BeforeThreadedGenerateData(void)" (?BeforeThreadedGenerateData@?$FFTWInverseFFTImageFilter@V?$Image@M$01@itk@@V12@@itk@@MAEXXZ)</div><div><br></div><div>fttc.obj : error LNK2019: unresolved external symbol __imp__fftwf_plan_with_nthreads referenced in function "public: static struct fftwf_plan_s * __cdecl itk::fftw::Proxy<float>::Plan_dft_c2r(int,int const *,float (*)[2],float *,unsigned int,int,bool)" (?Plan_dft_c2r@?$Proxy@M@fftw@itk@@SAPAUfftwf_plan_s@@HPBHPAY01MPAMIH_N@Z)</div><div><br></div><div>ITKFFT-4.6.lib(itkFFTWGlobalConfiguration.obj) : error LNK2019: unresolved external symbol __imp__fftwf_cleanup referenced in function "private: virtual __thiscall itk::FFTWGlobalConfiguration::~FFTWGlobalConfiguration(void)" (??1FFTWGlobalConfiguration@itk@@EAE@XZ)</div><div><br></div><div>ITKFFT-4.6.lib(itkFFTWGlobalConfiguration.obj) : error LNK2019: unresolved external symbol __imp__fftwf_init_threads referenced in function __catch$??0FFTWGlobalConfiguration@itk@@AAE@XZ$0</div><div><br></div><div>ITKFFT-4.6.lib(itkFFTWGlobalConfiguration.obj) : error LNK2019: unresolved external symbol __imp__fftwf_cleanup_threads referenced in function "private: virtual __thiscall itk::FFTWGlobalConfiguration::~FFTWGlobalConfiguration(void)" (??1FFTWGlobalConfiguration@itk@@EAE@XZ)</div><div><br></div><div>ITKFFT-4.6.lib(itkFFTWGlobalConfiguration.obj) : error LNK2019: unresolved external symbol __imp__fftwf_import_system_wisdom referenced in function __catch$??0FFTWGlobalConfiguration@itk@@AAE@XZ$0</div><div><br></div><div>ITKFFT-4.6.lib(itkFFTWGlobalConfiguration.obj) : error LNK2019: unresolved external symbol __imp__fftwf_import_wisdom_from_file referenced in function "public: static bool __cdecl itk::FFTWGlobalConfiguration::ExportWisdomFileFloat(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?ExportWisdomFileFloat@FFTWGlobalConfiguration@itk@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)</div></div><div><br></div><div>C:\MIIA\FTTCBin\Release\FTTC.exe : fatal error LNK1120: 10 unresolved externals<br></div><div><br></div><div><br></div><div>I've spent a long time searching the help forums and looked for ways to resolve this, but to no avail.  Does anyone know what I may be doing wrong?  I'm guessing I did something wrong when setting variables in CMake, but haven't been able to find any information on how to set them correctly.</div><div><br></div><div>Thanks for your time and assistance!</div><div><br></div><div>Best,</div><div>Tim</div><div><br></div></div>