[Insight-developers] FFTW not working
gang song
songgang97 at gmail.com
Mon Apr 18 19:23:30 EDT 2011
Hi,
I could not compile today's ITK with FFTW with these CMake options:
BUILD_DOCUMENTATION OFF
BUILD_EXAMPLES OFF
BUILD_SHARED_LIBS OFF
BUILD_TESTING ON
CMAKE_BUILD_TYPE Release
DART_TESTING_TIMEOUT 1500
ITKV3_COMPATIBILITY OFF
ITK_BUILD_ALL_MODULES ON
USE_FFTWD ON
USE_FFTWF ON
USE_SYSTEM_FFTW OFF
The OS is Linux (CentOS). No fftw library has been installed in the
system path.
ITK did download fftw in the first step and compiled successfully
[ 0%] Built target fftwd
[ 1%] Built target fftwf
But then it came to this error -- seems that many FFTW related
variables are broken:
[ 59%] Building CXX object
Modules/Filtering/FFT/src/CMakeFiles/ITK-FFT.dir/itkFFTWGlobalConfiguration.cxx.o
In file included from
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:18:
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/include/itkFFTWGlobalConfiguration.h:30:19:
error: fftw3.h: No such file or directory
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:
In static member function ‘static int
itk::FFTWGlobalConfiguration::GetPlanRigorValue(const std::string&)’:
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:44:
error: ‘FFTW_ESTIMATE’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:48:
error: ‘FFTW_MEASURE’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:52:
error: ‘FFTW_PATIENT’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:56:
error: ‘FFTW_EXHAUSTIVE’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:
In static member function ‘static std::string
itk::FFTWGlobalConfiguration::GetPlanRigorName(const int&)’:
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:67:
error: ‘FFTW_ESTIMATE’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:69:
error: ‘FFTW_MEASURE’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:71:
error: ‘FFTW_PATIENT’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:73:
error: ‘FFTW_EXHAUSTIVE’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:
In constructor ‘itk::FFTWGlobalConfiguration::FFTWGlobalConfiguration()’:
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:147:
error: ‘FFTW_ESTIMATE’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:165:
error: ‘fftwf_init_threads’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:171:
error: ‘fftw_init_threads’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:231:
error: ‘fftwf_import_system_wisdom’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:235:
error: ‘fftw_import_system_wisdom’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:
In destructor ‘virtual
itk::FFTWGlobalConfiguration::~FFTWGlobalConfiguration()’:
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:266:
error: ‘fftwf_cleanup_threads’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:267:
error: ‘fftwf_cleanup’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:270:
error: ‘fftw_cleanup_threads’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:271:
error: ‘fftw_cleanup’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:
In static member function ‘static bool
itk::FFTWGlobalConfiguration::ImportWisdomFileFloat(const
std::string&)’:
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:343:
error: ‘fftwf_import_wisdom_from_file’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:
In static member function ‘static bool
itk::FFTWGlobalConfiguration::ImportWisdomFileDouble(const
std::string&)’:
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:374:
error: ‘fftw_import_wisdom_from_file’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:
In static member function ‘static bool
itk::FFTWGlobalConfiguration::ExportWisdomFileFloat(const
std::string&)’:
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:411:
error: ‘fftwf_export_wisdom_to_file’ was not declared in this scope
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:
In static member function ‘static bool
itk::FFTWGlobalConfiguration::ExportWisdomFileDouble(const
std::string&)’:
/home/songgang/project/ITKv4/ITK/Modules/Filtering/FFT/src/itkFFTWGlobalConfiguration.cxx:442:
error: ‘fftw_export_wisdom_to_file’ was not declared in this scope
make[2]: *** [Modules/Filtering/FFT/src/CMakeFiles/ITK-FFT.dir/itkFFTWGlobalConfiguration.cxx.o]
Error 1
make[1]: *** [Modules/Filtering/FFT/src/CMakeFiles/ITK-FFT.dir/all] Error 2
make: *** [all] Error 2
Thanks for any suggestion
-Gang
More information about the Insight-developers
mailing list