[Insight-users] how to use FFTW with ITK
Jakub Bican
jakub.bican at matfyz.cz
Wed Sep 17 10:08:58 EDT 2008
Hello,
you should turn ON the two options
USE_FFTWD
USE_FFTWF
when configuring ITK. It asks you for the FFTW libraries and include path.
After compilation, ITK will be FFTW-enabled.
You do not need to mention FFTW in your CMakeLists.txt file.
Regards,
Jakub
2008/9/17 Shengzhou Xu <shengzhouxu at gmail.com>:
> Hello,
>
> every one,When I built the "DeformableRegistration10", there was an
> error: "This program needs FFTWD to work". btw, I was using Microsoft
> Visual C++ 7.1 on Windows XP, and I downloaded fftw-3.1.2 from the
> official website, however, I don't know how to get the FFTW.lib.
> I add the following sentences to the CMakeList.txt:
>
> SET(CMAKE_MODULE_PATH ${ITK_SOURCE_DIR}/CMake)
> OPTION(USE_FFTWD "Use double precision FFTW if found" ON)
> OPTION(USE_FFTWF "Use single precision FFTW if found" OFF)
> FIND_PACKAGE( FFTW )
>
> IF(USE_FFTWF)
> LINK_LIBRARIES(${FFTWF_LIB})
> ENDIF(USE_FFTWF)
>
> IF(USE_FFTWD)
> LINK_LIBRARIES(${FFTWD_LIB})
> ENDIF(USE_FFTWD)
>
> When I Cmake it, it prompt that: "FFTW_DIR-NOTFOUND".
>
> please help me step by step explain. Thank you every much!
>
> Best Wishes
> Xu
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list