Hi,<br>I recently downloaded FFTW version 3.2 and tried to use it with ITK<br>I configured the build script to use the following:<br><br>FFTWPREFIX=/home2/suk203/fftw-3.2.2/compiled<br>export FFTWPREFIX=/home2/suk203/fftw-3.2.2/compiled <br>
<br><br>cmake_command=&quot;cmake . \<br>        -DINSTALL_WRAP_ITK_COMPATIBILITY=OFF \<br>    -DCMAKE_INSTALL_PREFIX:PATH=/ \<br>        -DITK_INSTALL_BIN_DIR=${PREFIX}/bin \<br>        -DITK_INSTALL_LIB_DIR=${PREFIX}/lib \<br>
        -DITK_INSTALL_DATA_DIR=${PREFIX}/share \<br>        -DITK_INSTALL_INCLUDE_DIR=${PREFIX}/include \<br>        -DITK_USE_REVIEW:BOOL=ON \<br>        -DITK_USE_OPTIMIZED_REGISTRATION_METHODS:BOOL=ON \<br>        -DITK_USE_REVIEW_STATISTICS:BOOL=OFF \<br>
        -DUSE_FFTWF:BOOL=ON \<br>        -DUSE_FFTWD:BOOL=ON \<br>        -DFFTW_INCLUDE_PATH:PATH=${FFTWPREFIX}/include \<br>        -DBUILD_SHARED_LIBS=ON \<br>        -DJAVA_INCLUDE_PATH:PATH=${JAVA_HOME}/include \<br>
        -DJAVA_INCLUDE_PATH2:PATH=${JAVA_HOME}/include/linux \<br>        -DJAVA_AWT_INCLUDE_PATH:PATH=${JAVA_HOME}/include \<br>        -DJAVA_AWT_LIBRARY=${JAVA_HOME}/jre/lib/amd64/libawt.so \<br>        -DITK_CSWIG_JAVA=ON \<br>
        -DITK_CSWIG_PYTHON=ON \<br>        -DWRAP_ITK_PYTHON=ON \<br>        -DITK_USE_PYTHON_NUMARRAY=ON \<br>        -DITK_CSWIG_TCL=ON \<br>        -DWRAP_ITK_TCL=ON \<br>        -DBUILD_DOXYGEN:BOOL=OFF \<br>        -DBUILD_EXAMPLES=OFF \<br>
        -DITK_USE_PATENTED=ON \<br>        -DITK_USE_SYSTEM_TIFF=ON \<br>        -DITK_USE_SYSTEM_PNG=ON \<br>        -DITK_USE_SYSTEM_ZLIB=ON \<br>        -DFFTWF_LIB=${FFTWPREFIX}/lib/libfftw3.a \<br>&quot;<br><br>However I get the following error while building:<br>
My platform details: Linux version 2.6.9-89.0.16.ELsmp (<a href="mailto:mockbuild@hs20-bc1-2.build.redhat.com">mockbuild@hs20-bc1-2.build.redhat.com</a>) (gcc v<br>ersion 3.4.6 20060404 (Red Hat 3.4.6-11)) #1 SMP Tue Oct 27 03:51:52 EDT 2009<br>
<br><br>[ 88%] Built target itkAlgorithmsTests<br>[ 89%] Built target itkAlgorithmsTests2<br>[ 89%] Built target itkAlgorithmsTests3<br>Linking CXX executable ../../../bin/itkAlgorithmsTests4<br>CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE11DestroyPlanEP12fftwf_plan_s+0x11): In function `itk::fftw::Proxy&lt;float&gt;::DestroyPlan(fftwf_plan_s*)&#39;:<br>
: undefined reference to `fftwf_destroy_plan&#39;<br>CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE7ExecuteEP12fftwf_plan_s+0x11): In function `itk::fftw::Proxy&lt;float&gt;::Execute(fftwf_plan_s*)&#39;:<br>
: undefined reference to `fftwf_execute&#39;<br>CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_c2r_3dEiiiPA2_fPfj+0x40): In function `itk::fftw::Proxy&lt;float&gt;::Plan_dft_c2r_3d(int, int, int, float (*) [2], float*, unsigned int)&#39;:<br>
: undefined reference to `fftwf_plan_dft_c2r_3d&#39;<br>CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_r2c_3dEiiiPfPA2_fj+0x40): In function `itk::fftw::Proxy&lt;float&gt;::Plan_dft_r2c_3d(int, int, int, float*, float (*) [2], unsigned int)&#39;:<br>
: undefined reference to `fftwf_plan_dft_r2c_3d&#39;<br>CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_c2r_2dEiiPA2_fPfj+0x2f): In function `itk::fftw::Proxy&lt;float&gt;::Plan_dft_c2r_2d(int, int, float (*) [2], float*, unsigned int)&#39;:<br>
: undefined reference to `fftwf_plan_dft_c2r_2d&#39;<br>CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_r2c_2dEiiPfPA2_fj+0x2f): In function `itk::fftw::Proxy&lt;float&gt;::Plan_dft_r2c_2d(int, int, float*, float (*) [2], unsigned int)&#39;:<br>
: undefined reference to `fftwf_plan_dft_r2c_2d&#39;<br>CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_c2r_1dEiPA2_fPfj+0x25): In function `itk::fftw::Proxy&lt;float&gt;::Plan_dft_c2r_1d(int, float (*) [2], float*, unsigned int)&#39;:<br>
: undefined reference to `fftwf_plan_dft_c2r_1d&#39;<br>CMakeFiles/itkAlgorithmsTests4.dir/itkFFTTest.o(.gnu.linkonce.t._ZN3itk4fftw5ProxyIfE15Plan_dft_r2c_1dEiPfPA2_fj+0x25): In function `itk::fftw::Proxy&lt;float&gt;::Plan_dft_r2c_1d(int, float*, float (*) [2], unsigned int)&#39;:<br>
: undefined reference to `fftwf_plan_dft_r2c_1d&#39;<br>collect2: ld returned 1 exit status<br>make[2]: *** [bin/itkAlgorithmsTests4] Error 1<br>make[1]: *** [Testing/Code/Algorithms/CMakeFiles/itkAlgorithmsTests4.dir/all] Error 2<br>
make: *** [all] Error 2<br><br>I would really appreciate any help on this.<br><br>Regards,<br>Somi<br>