[Insight-users] Problem with FFTW

somi seesomi at gmail.com
Wed Nov 18 12:14:12 EST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091118/1e84480c/attachment.htm>


More information about the Insight-users mailing list