<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sorry, I should have mentioned that--I've installed FFTW 3.3.3, ITK 4.4.2, and cmake 2.8.11.1, and I'm on OsX 10.8.5.<div><br></div><div>I changed ITK_DIR to /Applications/ITK/build using ccmake ../src when building the FFTW example (not when building ITK--is this what you meant for me to do?), but now I'm getting this error:</div><div><br></div><div><div>$ make</div><div>Linking CXX executable fftw</div><div>ld: library not found for -litkdouble-conversion</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>make[2]: *** [fftw] Error 1</div><div>make[1]: *** [CMakeFiles/fftw.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div><div><div><br></div><div>Any ideas? &nbsp;Thanks so much for your help!</div><div><br></div><div><div><div>On Dec 4, 2013, at 8:49 PM, Xiaoxiao Liu &lt;<a href="mailto:xiaoxiao.liu@kitware.com">xiaoxiao.liu@kitware.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px">Regarding this error:</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">error: "FFTW 3.3.2 or later is required so that FFTW_WISDOM_ONLY is</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">defined."</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>Did you try FFTW 3.3.3 ?</div><a href="http://www.fftw.org/download.html">http://www.fftw.org/download.html</a><br>
<div><br></div><div>Did I miss something(sorry, I didn't go through the entire stream)</div><div><br></div><div>P.S.</div><div>When you build your own project and using ITK as an external library, as long as you set up "ITK_DIR" correctly,&nbsp;</div>
<div>the corresponding ${ITK_DIR}/ ITKConfig.cmake will be used.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 4, 2013 at 4:43 PM, DVigneault <span dir="ltr">&lt;<a href="mailto:davis.vigneault@gmail.com" target="_blank">davis.vigneault@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello again--<br>
<br>
I started this thread a while back because I'd been having trouble getting a<br>
complex result from an inverse FFT. &nbsp;I was advised to use the<br>
FFTWInverseFFTImageFilter, which required that I install fftw3 and then<br>
rebuild ITK with ITK_USE_REVIEW, ITK_USE_FFTWD, and ITK_USE_SYSTEM_FFTW set<br>
to on. &nbsp;However, after taking these steps, I get this error when trying to<br>
compile &nbsp;this example<br>
&lt;<a href="http://www.itk.org/Doxygen/html/Filtering_2FFTDirectInverse2_8cxx-example.html" target="_blank">http://www.itk.org/Doxygen/html/Filtering_2FFTDirectInverse2_8cxx-example.html</a>&gt;<br>
(I've only changed 'float' to 'double' and 'ITK_USE_FFTF' to 'ITK_USE_FFTD'<br>
in the example).<br>
<br>
error: "FFTW 3.3.2 or later is required so that FFTW_WISDOM_ONLY is<br>
defined."<br>
<br>
I came across something which I *hope* will help to solve the problem. &nbsp;I<br>
noticed that the ITKConfig.cmake file in my ITK build directory has the<br>
appropriate settings, but the ITKConfig.cmake file in my<br>
/usr/local/lib/cmake/ITK-4.4/ directory does not (exerpts pasted below).<br>
Should I be concerned about this, and could this be the cause of my problem?<br>
If so, how could I fix it? &nbsp;Also, if anyone could post a CMakeLists.txt file<br>
that they have used to build the above example, it would be greatly<br>
appreciated!<br>
<br>
Build directory:<br>
<br>
# Add configuration with FFTW<br>
set(ITK_USE_FFTWD "ON")<br>
set(ITK_USE_FFTWF "OFF")<br>
set(ITK_USE_SYSTEM_FFTW "ON")<br>
set(ITK_FFTW_INCLUDE_PATH "/usr/local/include")<br>
set(ITK_FFTW_LIBDIR "/usr/local/lib")<br>
<br>
/usr/local/lib/cmake/ITK-4.4/:<br>
<br>
# Add configuration with FFTW<br>
set(ITK_USE_FFTWD "OFF")<br>
set(ITK_USE_FFTWF "OFF")<br>
set(ITK_USE_SYSTEM_FFTW "OFF")<br>
set(ITK_FFTW_INCLUDE_PATH<br>
"${ITK_INSTALL_PREFIX}/include/ITK-4.4/Algorithms")<br>
set(ITK_FFTW_LIBDIR "${ITK_INSTALL_PREFIX}/lib/ITK-4.4")<br>
<br>
<br>
Best, and thanks,<br>
<br>
--Davis<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/Obtaining-Real-Result-from-Inverse-Fourier-Transform-tp32814p32898.html" target="_blank">http://itk-users.7.n7.nabble.com/Obtaining-Real-Result-from-Inverse-Fourier-Transform-tp32814p32898.html</a><br>

Sent from the ITK - Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>
<div class="HOEnZb"><div class="h5">_____________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div><br></div>---------------------------------------------<br><b>Xiaoxiao Liu</b>, Ph.D.<div><div><font face="arial, sans-serif">R &amp; D Engineer</font></div>
<div><a href="http://www.kitware.com/" target="_blank">Kitware Inc</a>.</div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Clifton Park, NY</span><div><div>Phone: (518) 881-4924 &nbsp;or &nbsp;<span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">(518) 371-3971 x124</span></div>
<div><font face="Verdana, Arial, Helvetica, sans-serif"><span style="line-height:31px;font-size:x-small"><br></span></font></div></div></div></div>
</div>
</blockquote></div><br></div></div></body></html>