No subject
Tue Nov 1 15:57:14 EDT 2011
currently trying to use FFTW from the "Review" directory =
option but I am having a great deal of difficulty and I would appreciate =
any help.<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><u>Attemp=
t1</u></b><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b> </b=
><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b>Step =
1</b><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b> </b=
><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I download =
the windows version for FFTW dll files from <a =
href=3D"http://www.fftw.org/install/windows.html" =
target=3D"_blank">http://www.fftw.org/install/windows.html</a> and used =
lib.exe to create the .lib (import libraries). So now I have the =
following new three lib files:<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>libfftw3-3.l=
ib<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>libfftw3f-3.=
lib<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>libfftw3l-3.=
lib<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b>Step =
2</b><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I then =
modified the CMakelist for compiling the ITK by adding =
<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br>SET(CMAK=
E_MODULE_PATH ${ITK_SOURCE_DIR}/CMake) <br>OPTION(USE_FFTWD "Use =
double precision FFTW if found" ON) <br>OPTION(USE_FFTWF "Use =
single precision FFTW if found" ON) <br>FIND_PACKAGE( FFTW ) =
<br><br>IF(USE_FFTWF) <br> LINK_LIBRARIES(${FFTWF_LIB}) =
<br>ENDIF(USE_FFTWF) <br><br>IF(USE_FFTWD) <br> =
LINK_LIBRARIES(${FFTWD_LIB}) <br>ENDIF(USE_FFTWD)<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b> </b=
><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b>Step =
3</b><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Next I =
configure ITK in CMake. I set ITK_USE_REVIEW, USE_FFTWD and USE_FFTWF =
to<span style=3D'background:white'> </span>"On". I get the =
following error<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>CMake =
Error: The following variables are used in this project, but they are =
set to NOTFOUND.<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Please set =
them or make sure they are set and tested correctly in the CMake =
files:<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>FFTWD_LIB =
(ADVANCED)<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>linked by =
target "ITKAlgorithms" in directory =
C:/Users/clefebvr/Desktop/InsightToolkit-3.20.1/Code/Algorithms<o:p></o:p=
></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>FFTWF_LIB =
(ADVANCED)<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>linked by =
target "ITKAlgorithms" in directory =
C:/Users/clefebvr/Desktop/InsightToolkit-3.20.1/Code/Algorithms<o:p></o:p=
></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>FFTW_INCLUDE=
_PATH<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>...<o:p></o:=
p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>So, in =
CMake it mentions that it cannot find FFTWD_LIB, FFTWD_THREADS_LIB, =
FFTWF_LIB, FFTWF_THREADS_LIB and FTTW_INCLUDE_PATH. So I set the<span =
style=3D'background:white'> </span>path in =
CMake <span =
style=3D'background:white'>a</span>s the following<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>FFTWD_LIB, =
FFTWD_THREADS_LIB to libfftw3-3.lib<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>FFTWF_LIB, =
FFTWF_THREADS_LIB to libfftw3f-3.lib<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>FTTW_INCLUDE=
_PATH to directory of fftw3.h<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I =
configured and generated in CMake without any errors and there was no =
problem building ITK in visual studios 2008. When I try and build my own =
project with itkFFTWComplexToComplexImageFilter.h =
I get I get several errors =
that are similar to the following<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>itkGaborImag=
eSourceTest.obj : error LNK2019: unresolved external symbol =
__imp_fftwf_destroy_plan referenced in function "protected: virtual =
__cdecl =
itk::FFTWComplexToComplexImageFilter<float,2>::~FFTWComplexToComple=
xImageFilter<float,2>(void)" =
(??1?$FFTWComplexToComplexImageFilter at M$01 at itk@@MEAA at XZ)<o:p></o:p></p><p=
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><u>Attempt =
2</u><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I also =
tried a different modification to the CMakelist file for the ITK =
configuration by adding <o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>SET(CMAKE_MO=
DULE_PATH ${ITK_SOURCE_DIR}/CMake)<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>option(USE_F=
FTWD "Use double precision fftw if found" ON)<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>option(USE_F=
FTWF "Use single precision fftw if found" ON)<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>option(USE_S=
YSTEM_FFTW "Use an installed version of fftw" =
OFF)<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>if =
(USE_FFTWD OR USE_FFTWF)<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
if(USE_SYSTEM_FFTW)<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
find_package( FFTW )<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
=
link_directories(${FFTW_LIBDIR})<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
else(USE_SYSTEM_FFTW)<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
=
link_directories(${ITK_DIR}/fftw/lib)<o:p></o:p><=
/p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
=
include_directories(${ITK_DIR}/fftw/include)<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
endif(USE_SYSTEM_FFTW)<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>endif(USE_FF=
TWD OR USE_FFTWF)<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>It did not =
show any FFTWD_LIB, FFTWD_THREADS_LIB, FFTWF_LIB, FFTWF_THREADS_LIB and =
FTTW_INCLUDE_PATH errors in CMake. Regardless I continued and no errors =
occurred generating in CMake, and building ITK in visual studio. Again, =
when I tried to build my project with =
itkFFTWComplexToComplexImageFilter.h from the Review folder I get =
several errors that are similar to the following<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>itkGaborImag=
eSourceTest.obj : error LNK2019: unresolved external symbol =
__imp_fftwf_destroy_plan referenced in function "protected: virtual =
__cdecl =
itk::FFTWComplexToComplexImageFilter<float,2>::~FFTWComplexToComple=
xImageFilter<float,2>(void)" =
(??1?$FFTWComplexToComplexImageFilter at M$01 at itk@@MEAA at XZ)<o:p></o:p></p><p=
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I compiled =
CMake with the Visual Studios 2008 64 bit option.<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thanks for =
the help,<o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Calvin<o:p><=
/o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p><=
/o:p></p></div></div></div></div></div><p =
class=3DMsoNormal><o:p> </o:p></p></div></div></div><p =
class=3DMsoNormal><o:p> </o:p></p></div></body></html>
------=_NextPart_000_0016_01CCA8FC.E814BD40--
More information about the Insight-users
mailing list