[Insight-users] how to use FFTW with ITK

Shengzhou Xu shengzhouxu at gmail.com
Wed Sep 17 09:01:37 EDT 2008


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


More information about the Insight-users mailing list