[Insight-users] Problem with FFTW

Luis Ibanez luis.ibanez at kitware.com
Sun Nov 22 18:05:47 EST 2009


Hi Somi,

Your report looks familiar,

See the following email from the mailing list archives:

http://www.itk.org/pipermail/insight-users/2007-October/023814.html


It would seem that you have enabled in ITK:

                     USE_FFTWF:BOOL=ON

but may not have built the "float" version of the FFT libraries.


    Regards,


         Luis


---------------------------------------------------------------
On Wed, Nov 18, 2009 at 12:14 PM, somi <seesomi at gmail.com> wrote:
> Hi,
> I recently downloaded FFTW version 3.2 and tried to use it with ITK
> I configured the build script to use the following:
>
> FFTWPREFIX=/home2/suk203/fftw-3.2.2/compiled
> export FFTWPREFIX=/home2/suk203/fftw-3.2.2/compiled
>
>
> cmake_command="cmake . \
>         -DINSTALL_WRAP_ITK_COMPATIBILITY=OFF \
>     -DCMAKE_INSTALL_PREFIX:PATH=/ \
>         -DITK_INSTALL_BIN_DIR=${PREFIX}/bin \
>         -DITK_INSTALL_LIB_DIR=${PREFIX}/lib \
>         -DITK_INSTALL_DATA_DIR=${PREFIX}/share \
>         -DITK_INSTALL_INCLUDE_DIR=${PREFIX}/include \
>         -DITK_USE_REVIEW:BOOL=ON \
>         -DITK_USE_OPTIMIZED_REGISTRATION_METHODS:BOOL=ON \
>         -DITK_USE_REVIEW_STATISTICS:BOOL=OFF \
>         -DUSE_FFTWF:BOOL=ON \
>         -DUSE_FFTWD:BOOL=ON \
>         -DFFTW_INCLUDE_PATH:PATH=${FFTWPREFIX}/include \
>         -DBUILD_SHARED_LIBS=ON \
>         -DJAVA_INCLUDE_PATH:PATH=${JAVA_HOME}/include \
>         -DJAVA_INCLUDE_PATH2:PATH=${JAVA_HOME}/include/linux \
>         -DJAVA_AWT_INCLUDE_PATH:PATH=${JAVA_HOME}/include \
>         -DJAVA_AWT_LIBRARY=${JAVA_HOME}/jre/lib/amd64/libawt.so \
>         -DITK_CSWIG_JAVA=ON \
>         -DITK_CSWIG_PYTHON=ON \
>         -DWRAP_ITK_PYTHON=ON \
>         -DITK_USE_PYTHON_NUMARRAY=ON \
>         -DITK_CSWIG_TCL=ON \
>         -DWRAP_ITK_TCL=ON \
>         -DBUILD_DOXYGEN:BOOL=OFF \
>         -DBUILD_EXAMPLES=OFF \
>         -DITK_USE_PATENTED=ON \
>         -DITK_USE_SYSTEM_TIFF=ON \
>         -DITK_USE_SYSTEM_PNG=ON \
>         -DITK_USE_SYSTEM_ZLIB=ON \
>         -DFFTWF_LIB=${FFTWPREFIX}/lib/libfftw3.a \
> "
>
> However I get the following error while building:
> My platform details: Linux version 2.6.9-89.0.16.ELsmp
> (mockbuild at hs20-bc1-2.build.redhat.com) (gcc v
> ersion 3.4.6 20060404 (Red Hat 3.4.6-11)) #1 SMP Tue Oct 27 03:51:52 EDT
> 2009
>
>
> [ 88%] Built target itkAlgorithmsTests
> [ 89%] Built target itkAlgorithmsTests2
> [ 89%] Built target itkAlgorithmsTests3
> Linking CXX executable ../../../bin/itkAlgorithmsTests4
> CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE11DestroyPlanEP12fftwf_plan_s+0x11):
> In function `itk::fftw::Proxy<float>::DestroyPlan(fftwf_plan_s*)':
> : undefined reference to `fftwf_destroy_plan'
> CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE7ExecuteEP12fftwf_plan_s+0x11):
> In function `itk::fftw::Proxy<float>::Execute(fftwf_plan_s*)':
> : undefined reference to `fftwf_execute'
> CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_c2r_3dEiiiPA2_fPfj+0x40):
> In function `itk::fftw::Proxy<float>::Plan_dft_c2r_3d(int, int, int, float
> (*) [2], float*, unsigned int)':
> : undefined reference to `fftwf_plan_dft_c2r_3d'
> CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_r2c_3dEiiiPfPA2_fj+0x40):
> In function `itk::fftw::Proxy<float>::Plan_dft_r2c_3d(int, int, int, float*,
> float (*) [2], unsigned int)':
> : undefined reference to `fftwf_plan_dft_r2c_3d'
> CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_c2r_2dEiiPA2_fPfj+0x2f):
> In function `itk::fftw::Proxy<float>::Plan_dft_c2r_2d(int, int, float (*)
> [2], float*, unsigned int)':
> : undefined reference to `fftwf_plan_dft_c2r_2d'
> CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_r2c_2dEiiPfPA2_fj+0x2f):
> In function `itk::fftw::Proxy<float>::Plan_dft_r2c_2d(int, int, float*,
> float (*) [2], unsigned int)':
> : undefined reference to `fftwf_plan_dft_r2c_2d'
> CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_c2r_1dEiPA2_fPfj+0x25):
> In function `itk::fftw::Proxy<float>::Plan_dft_c2r_1d(int, float (*) [2],
> float*, unsigned int)':
> : undefined reference to `fftwf_plan_dft_c2r_1d'
> CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_r2c_1dEiPfPA2_fj+0x25):
> In function `itk::fftw::Proxy<float>::Plan_dft_r2c_1d(int, float*, float (*)
> [2], unsigned int)':
> : undefined reference to `fftwf_plan_dft_r2c_1d'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/itkAlgorithmsTests4] Error 1
> make[1]: ***
> [Testing/Code/Algorithms/CMakeFiles/itkAlgorithmsTests4.dir/all] Error 2
> make: *** [all] Error 2
>
> I would really appreciate any help on this.
>
> Regards,
> Somi
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list