[Insight-users] ITK 3.4 examples build

Luis Ibanez luis.ibanez at kitware.com
Fri Oct 5 08:13:49 EDT 2007


Hi Ruben,

We build ITK Nightly on Debian GNU/Linux, with fftw 3.1.2,
and the Examples

please look at the Dashboard for the submission from

         zion.kitware       Linux-g++-4.­1

The output of the SystemInformation test
http://www.itk.org/Testing/Sites/zion.kitware/Linux-g++-4.1/20071005-0100-Nightly/Results/__Testing_Code_Common_itkSystemInformationTest.html

will show you all the content of the CMakeCache.txt file,
in particular

zion [202] grep FFT CMakeCache.txt

FFTWD_LIB:FILEPATH=/usr/lib/libfftw3.so
FFTWD_THREADS_LIB:FILEPATH=/usr/lib/libfftw3_threads.so

FFTWF_LIB:FILEPATH=/usr/lib/libfftw3f.so
FFTWF_THREADS_LIB:FILEPATH=/usr/lib/libfftw3f_threads.so

FFTW_INCLUDE_PATH:PATH=/usr/include

//Use double precision FFTW if found
USE_FFTWD:BOOL=ON

//Use single precision FFTW if found
USE_FFTWF:BOOL=ON



You might want to check your CMakeCache.txt file
to see if you have similar entries.



    Please let us know what you find,


       Thanks,


          Luis



-----------------------
Ruben Schilling wrote:
> Hi all,
> 
> I built ITK 3.4 using cmake 2.4 patch 7 and fftw 3.1.2 on a SuSe 64 bit 
> Linux box. I seem to have a problem building the examples from ITK, that 
> use FFTW - is it maybe a version mismatch? Has anybody experienced 
> errors like the one I posted below?
> 
> Regards
> Ruben
> 
> 
> [ 81%] Building CXX object 
> Examples/Filtering/CMakeFiles/FilteringExamples6.dir/FilteringExamp
> Linking CXX executable ../../bin/FilteringExamples6
> CMakeFiles/FilteringExamples6.dir/FilteringExamples6.o: In function 
> `itk::FFTWRealToComplexCon
> ateImageFilter()':
> FilteringExamples6.cxx:(.text._ZN3itk37FFTWRealToComplexConjugateImageFilterIfLj2EED0Ev[itk::F
> RealToComplexConjugateImageFilter()]+0x29): undefined reference to 
> `fftwf_destroy_plan'
> CMakeFiles/FilteringExamples6.dir/FilteringExamples6.o: In function 
> `itk::FFTWRealToComplexCon
> ateImageFilter()':
> FilteringExamples6.cxx:(.text._ZN3itk37FFTWRealToComplexConjugateImageFilterIfLj2EED1Ev[itk::F
> RealToComplexConjugateImageFilter()]+0x29): undefined reference to 
> `fftwf_destroy_plan'
> CMakeFiles/FilteringExamples6.dir/FilteringExamples6.o: In function 
> `itk::FFTWComplexConjugate
> ealImageFilter()':
> FilteringExamples6.cxx: 
> (.text._ZN3itk37FFTWComplexConjugateToRealImageFilterIfLj2EED0Ev[itk::F
> ComplexConjugateToRealImageFilter()]+0x29): undefined reference to 
> `fftwf_destroy_plan'
> CMakeFiles/FilteringExamples6.dir/FilteringExamples6.o: In function 
> `itk::FFTWComplexConjugate
> ealImageFilter()':
> FilteringExamples6.cxx:(.text._ZN3itk37FFTWComplexConjugateToRealImageFilterIfLj2EED1Ev[itk::F
> ComplexConjugateToRealImageFilter()]+0x29): undefined reference to 
> `fftwf_destroy_plan'
> CMakeFiles/FilteringExamples6.dir/FilteringExamples6.o: In function 
> `itk::FFTWRealToComplexCon
> FilteringExamples6.cxx:(.text._ZN3itk37FFTWRealToComplexConjugateImageFilterIfLj2EE12GenerateD
> , 2u>::GenerateData()]+0x152): undefined reference to 
> `fftwf_plan_dft_r2c_2d'
> FilteringExamples6.cxx:(.text._ZN3itk37FFTWRealToComplexConjugateImageFilterIfLj2EE12GenerateD
> , 2u>::GenerateData()]+0x18d): undefined reference to `fftwf_execute'
> FilteringExamples6.cxx:(.text._ZN3itk37FFTWRealToComplexConjugateImageFilterIfLj2EE12GenerateD 
> 
> , 2u>::GenerateData()]+0x22d): undefined reference to `fftwf_destroy_plan'
> CMakeFiles/FilteringExamples6.dir/FilteringExamples6.o: In function 
> `itk::FFTWComplexConjugate
> FilteringExamples6.cxx:(.text._ZN3itk37FFTWComplexConjugateToRealImageFilterIfLj2EE12GenerateD 
> 
> , 2u>::GenerateData()]+0x136): undefined reference to 
> `fftwf_plan_dft_c2r_2d'
> FilteringExamples6.cxx:(.text._ZN3itk37FFTWComplexConjugateToRealImageFilterIfLj2EE12GenerateD
> , 2u>::GenerateData()]+0x171): undefined reference to `fftwf_execute'
> FilteringExamples6.cxx:(.text._ZN3itk37FFTWComplexConjugateToRealImageFilterIfLj2EE12GenerateD
> , 2u>::GenerateData()]+0x458): undefined reference to `fftwf_destroy_plan'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/FilteringExamples6] Error 1
> make[2]: Target 
> `Examples/Filtering/CMakeFiles/FilteringExamples6.dir/build' not remade 
> becaus
> make[1]: *** [Examples/Filtering/CMakeFiles/FilteringExamples6.dir/all] 
> Error 2
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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