<span style="color: rgb(0, 0, 0);">Hi </span><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(0, 0, 0);" lang="EN-US">Antonio Gómez Barquero,<br><br>Thank you for your help, I really appreciate it. I just had 3 more question if you do not mind.<br>
<br><u>Question 1</u><br><br>I understand up until your step 3 but then there is a gap between step 3 and step 4.<br></span><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">After step 3 I configure ITK with CMake and I set ITK_USE_REVIEW, USE_FFTWD and USE_FFTWF to</span><span style="background: none repeat scroll 0% 0% white; color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">&quot;On&quot; but the problem is CMake can not find</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><p style="color: rgb(0, 0, 0);" class="MsoNormal">FFTWD_LIB</p><p style="color: rgb(0, 0, 0);" class="MsoNormal">FFTWD_THREADS_LIB</p><p style="color: rgb(0, 0, 0);" class="MsoNormal">FFTWF_LIB <br>
</p><p style="color: rgb(0, 0, 0);" class="MsoNormal">FFTWF_THREADS_LIB</p><span style="color: rgb(0, 0, 0);">FTTW_INCLUDE_PATH</span><br style="color: rgb(0, 0, 0);"><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">They are located in </span><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><span style="color: rgb(0, 0, 0);">FFTW_LIBS so did you have to manually set them to a lib? If yes, then which one did you set each of them to?</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><u style="color: rgb(0, 0, 0);">Question 2</u><br><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">Also, another question so in order to use ITK in visual studios I have to do the following steps</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">A.Configure ITK in CMake</span><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">B.Build ITK in visual studios</span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);">C.Configure my project in CMake</span><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">D. Build my project in visual studios</span><br style="color: rgb(0, 0, 0);"><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);">In your steps 4,5,6 you are setting</span></span><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(0, 0, 0);" lang="EN-US"> Additional dependencies, Additional libs directory and Environment do you do this for both building itk in visual studios and building your project in visual studios?<br>
<br><u>Question 3</u><br><br>I just wanted to check if there was a difference in your step 5b and 6?<br><br>Thanks again,<br><br>Calvin<br><br></span><br style="color: rgb(0, 0, 0);"><div class="gmail_quote">2011/11/21 Antonio Gómez Barquero <span dir="ltr">&lt;<a href="mailto:agb1@alu.upct.es">agb1@alu.upct.es</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="ES"><div><p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Hi Calvin<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">I also had the same problem some months ago, and I solved it making some changes in the configuration of ‘Visual Studio 2008’, here I tell you the process:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p style="text-align: justify;"><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><span>1.<span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Download the file “fftw-3.3dll32.zip from fftw org website (</span><a href="http://www.fftw.org/install/windows.html" target="_blank"><span lang="EN-US">http://www.fftw.org/install/windows.html</span></a><span lang="EN-US">)</span><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p style="text-align: justify;">
<u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><span>2.<span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">In order to link to these .dll files from Visual C++, you need to create .lib &quot;import libraries&quot; for them, and can do so with the &quot;lib&quot; command that comes with VC++.  In particular, run:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left: 70.8pt; text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">     lib /def:libfftw3-3.def<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left: 70.8pt; text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">     lib /def:libfftw3f-3.def<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left: 70.8pt; text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">     lib /def:libfftw3l-3.def<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left: 70.8pt; text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left: 70.8pt; text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">In “Tools &gt; Visual Studio 2008 Command Prompt” without opening any project, just Visual. Once you are in the console, you go with the ‘cd’ command to the root where the folder is placed and once there you run the three lines above, and then the ‘lib files are created.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p style="text-align: justify;">
<u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><span>3.<span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Copy the folder where the libs are created and then copy it inside the project folder where we want to use it and rename the folder to “FFTW_LIBS”. In this folder the necessary files are the ones that have the ‘*.dll’ , ‘*.lib’ and the ‘fftw3.h’.<u></u><u></u></span></p>
<p style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p style="text-align: justify;"><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><span>4.<span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Inclusion of the libs in the project: “Project &gt; Properties &gt; Configuration Properties &gt; Linker &gt; Entry &gt; Additional dependencies” and then we include the three new libs files:<u></u><u></u></span></p>
<p style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left: 35.4pt; text-align: justify;">
<span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">libfftw3-3.lib <u></u><u></u></span></p><p class="MsoNormal" style="margin-left: 35.4pt; text-align: justify;">
<span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">libfftw3f-3.lib<u></u><u></u></span></p><p class="MsoNormal" style="margin-left: 35.4pt; text-align: justify;">
<span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">libfftw3l-3.lib<u></u><u></u></span></p><p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p>
<p style="text-align: justify;"><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><span>5.<span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Inclusion of the path where the libs are:<u></u><u></u></span></p>
<p style="margin-left: 72pt; text-align: justify;"><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><span>a.<span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">“Project &gt; Properties &gt; Configuration Properties &gt; Linker &gt; General &gt; Additional libs directory” , and there we write “./FFTW_LIBS”.<u></u><u></u></span></p>
<p style="margin-left: 72pt; text-align: justify;"><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><span>b.<span style="font: 7pt &quot;Times New Roman&quot;;">      </span></span></span><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">“Project &gt; Properties &gt; Configuration Properties &gt; Depuration &gt; Environment” , and there we write “./FFTW_LIBS”.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p style="text-align: justify;">
<u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><span>6.<span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><u></u><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Inclusion of the path where the ‘.dll’ file is. In “Project &gt; Properties &gt; Configuration Properties &gt; Depuration &gt; Environment”. In the variable ‘enviroment’ we have to specify where the file ‘libfftw3-3.dll’ and we write “PATH = .\FFTW_LIBS”<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal" style="text-align: justify;">
<span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">After all of this steps, you just have to add “ #include fftw3.h” and use the fftw functions!<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">My visual Studio is in Spanish, so sorry if any of the word is not perfect translated.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal" style="text-align: justify;">
<span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Hope it helps!<u></u><u></u></span></p><p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Antonio Gómez Barquero<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal">
<span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">De:</span></b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;"> <a href="mailto:insight-users-bounces@itk.org" target="_blank">insight-users-bounces@itk.org</a> [mailto:<a href="mailto:insight-users-bounces@itk.org" target="_blank">insight-users-bounces@itk.org</a>] <b>En nombre de </b>Calvin Lefebvre<br>
<b>Enviado el:</b> viernes, 18 de noviembre de 2011 19:07<br><b>Para:</b> <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br><b>Asunto:</b> [Insight-users] Insight-users Digest Questions - Problems Building FFTW From Review<u></u><u></u></span></p>
<div><div></div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hi Insight-users,<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I am currently trying to use FFTW from the &quot;Review&quot; directory option but I am having a great deal of difficulty and I would appreciate any help.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><b><u>Attempt1</u></b><u></u><u></u></p><p class="MsoNormal"><b> </b><u></u><u></u></p><p class="MsoNormal"><b>Step 1</b><u></u><u></u></p><p class="MsoNormal">
<b> </b><u></u><u></u></p><p class="MsoNormal">I download the windows version for FFTW dll files from <a href="http://www.fftw.org/install/windows.html" target="_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:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">libfftw3-3.lib<u></u><u></u></p><p class="MsoNormal">libfftw3f-3.lib<u></u><u></u></p><p class="MsoNormal">libfftw3l-3.lib<u></u><u></u></p><p class="MsoNormal">
 <u></u><u></u></p><p class="MsoNormal"><b>Step 2</b><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I then modified the CMakelist for compiling the ITK by adding <u></u><u></u></p><p class="MsoNormal">
<br>SET(CMAKE_MODULE_PATH ${ITK_SOURCE_DIR}/CMake) <br>OPTION(USE_FFTWD &quot;Use double precision FFTW if found&quot; ON) <br>OPTION(USE_FFTWF &quot;Use single precision FFTW if found&quot; 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)<u></u><u></u></p><p class="MsoNormal"><b> </b><u></u><u></u></p><p class="MsoNormal">
<b>Step 3</b><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Next I configure ITK in CMake. I set ITK_USE_REVIEW, USE_FFTWD and USE_FFTWF to<span style="background: none repeat scroll 0% 0% white;"> </span>&quot;On&quot;. I get the following error<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">CMake Error: The following variables are used in this project, but they are set to NOTFOUND.<u></u><u></u></p><p class="MsoNormal">Please set them or make sure they are set and tested correctly in the CMake files:<u></u><u></u></p>
<p class="MsoNormal">FFTWD_LIB (ADVANCED)<u></u><u></u></p><p class="MsoNormal">linked by target &quot;ITKAlgorithms&quot; in directory C:/Users/clefebvr/Desktop/InsightToolkit-3.20.1/Code/Algorithms<u></u><u></u></p><p class="MsoNormal">
FFTWF_LIB (ADVANCED)<u></u><u></u></p><p class="MsoNormal">linked by target &quot;ITKAlgorithms&quot; in directory C:/Users/clefebvr/Desktop/InsightToolkit-3.20.1/Code/Algorithms<u></u><u></u></p><p class="MsoNormal">FFTW_INCLUDE_PATH<u></u><u></u></p>
<p class="MsoNormal">...<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">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="background: none repeat scroll 0% 0% white;"> </span>path       in CMake          <span style="background: none repeat scroll 0% 0% white;">a</span>s the following<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">FFTWD_LIB, FFTWD_THREADS_LIB to libfftw3-3.lib<u></u><u></u></p><p class="MsoNormal">FFTWF_LIB, FFTWF_THREADS_LIB to libfftw3f-3.lib<u></u><u></u></p><p class="MsoNormal">
FTTW_INCLUDE_PATH to directory of fftw3.h<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">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<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">itkGaborImageSourceTest.obj : error LNK2019: unresolved external symbol __imp_fftwf_destroy_plan referenced in function &quot;protected: virtual __cdecl itk::FFTWComplexToComplexImageFilter&lt;float,2&gt;::~FFTWComplexToComplexImageFilter&lt;float,2&gt;(void)&quot; (??1?$FFTWComplexToComplexImageFilter@M$01@itk@@MEAA@XZ)<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><u>Attempt 2</u><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I also tried a different modification to the CMakelist file for the ITK configuration by adding <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">SET(CMAKE_MODULE_PATH ${ITK_SOURCE_DIR}/CMake)<u></u><u></u></p><p class="MsoNormal">option(USE_FFTWD &quot;Use double precision fftw if found&quot; ON)<u></u><u></u></p>
<p class="MsoNormal">option(USE_FFTWF &quot;Use single precision fftw if found&quot; ON)<u></u><u></u></p><p class="MsoNormal">option(USE_SYSTEM_FFTW &quot;Use an installed version of fftw&quot; OFF)<u></u><u></u></p><p class="MsoNormal">
if (USE_FFTWD OR USE_FFTWF)<u></u><u></u></p><p class="MsoNormal">        if(USE_SYSTEM_FFTW)<u></u><u></u></p><p class="MsoNormal">       find_package( FFTW )<u></u><u></u></p><p class="MsoNormal">       link_directories(${FFTW_LIBDIR})<u></u><u></u></p>
<p class="MsoNormal">        else(USE_SYSTEM_FFTW)<u></u><u></u></p><p class="MsoNormal">       link_directories(${ITK_DIR}/fftw/lib)<u></u><u></u></p><p class="MsoNormal">       include_directories(${ITK_DIR}/fftw/include)<u></u><u></u></p>
<p class="MsoNormal">        endif(USE_SYSTEM_FFTW)<u></u><u></u></p><p class="MsoNormal">endif(USE_FFTWD OR USE_FFTWF)<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">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<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">itkGaborImageSourceTest.obj : error LNK2019: unresolved external symbol __imp_fftwf_destroy_plan referenced in function &quot;protected: virtual __cdecl itk::FFTWComplexToComplexImageFilter&lt;float,2&gt;::~FFTWComplexToComplexImageFilter&lt;float,2&gt;(void)&quot; (??1?$FFTWComplexToComplexImageFilter@M$01@itk@@MEAA@XZ)<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I compiled CMake with the Visual Studios 2008 64 bit option.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">
Thanks for the help,<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Calvin<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div></blockquote></div><br>