<DIV>
<DIV>First of all, thank you bery much for replying. </DIV>
<DIV> </DIV>
<DIV>- my 3 files <STRONG>fftw3.h, fftw3.lib and fftw3.dll</STRONG> are in the same directory <STRONG>C:\FFTW3_LIBRARIES</STRONG>.</DIV>
<DIV> </DIV>
<DIV>- once I got them, I modify my <STRONG>FindFFTW3.cmake</STRONG> as reported. Here is my FindFFTW3.cmake:</DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>
<P>IF (USE_FFTW)</P>
<P>SET(FFTW_INC_SEARCHPATH</P>
<P>/usr/include</P>
<P>/usr/include/fftw</P>
<P>/usr/local/include</P>
<P>/usr/local/include/fftw</P>
<P>)</P>
<P>SET(FFTW_LIB_SEARCHPATH</P>
<P>/usr/lib</P>
<P>/usr/lib/fftw</P>
<P>/usr/local/lib</P>
<P>/usr/local/lib/fftw</P>
<P>)</P>
<P>FIND_PATH(FFTW_INCLUDE_PATH fftw3.h ${FFTW_INC_SEARCHPATH})</P>
<P>IF(FFTW_INCLUDE_PATH)</P>
<P> SET(FFTW_INCLUDE ${FFTW_INCLUDE_PATH})</P>
<P>ENDIF (FFTW_INCLUDE_PATH)</P>
<P> </P>
<P>FIND_LIBRARY(FFTW_LIB_PATH fftw3 ${FFTW_LIB_SEARCHPATH})</P>
<P>IF(FFTW_LIB_PATH)</P>
<P> SET(FFTW_LIB ${FFTW_LIB_PATH})</P>
<P>ENDIF (FFTW_LIB_PATH)</P>
<P> </P>
<P>IF(FFTW_INCLUDE)</P>
<P> IF(FFTW_LIB)</P>
<P> SET(FFTW_FOUND 1)</P>
<P> ENDIF (FFTW_LIB)</P>
<P>ENDIF(FFTW_INCLUDE)</P>
<P> </P>
<P>IF(FFTW_FOUND)</P>
<P> INCLUDE_DIRECTORIES( ${FFTW_INCLUDE})</P>
<P> <STRONG>LINK_LIBRARIES( ${FFTW_LIB} )</STRONG>//modification</P>
<P> ADD_DEFINITIONS(-DUSE_FFTW)</P>
<P> SET(FFTW_DIR .)</P>
<P>ENDIF (FFTW_FOUND)</P>
<P> </P>
<P>MARK_AS_ADVANCED(FFTW_INCLUDE_PATH FFTW_LIB_PATH)</P>
<P>ENDIF (USE_FFTW)</P>
<P> </P>
<P>-then, I use <STRONG>CMake</STRONG> to <STRONG>enable FFTW in ITK</STRONG>: with <STRONG>USE_FFTW = ON</STRONG></P>
<P> </P>
<P>- after that, I use <STRONG>CMake to config my own project</STRONG>. Here is my CMakeLists.txt for this project: </P>
<P> </P>
<P>PROJECT(Project)</P>
<P> </P>
<P>ADD_DEFINITIONS(-D_AFXDLL)</P>
<P> </P>
<P>SET(CMAKE_MFC_FLAG 6)</P>
<P> </P>
<P>SET(SOURCES ...)</P>
<P> </P>
<P>IF(WIN32)<BR> LINK_LIBRARIES(wsock32)<BR>ENDIF(WIN32)</P>
<P> </P>
<P>#to use ITK<BR>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR> INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR> MESSAGE(FATAL ERROR<BR> "ITK not found. Please set ITK_DIR.")<BR>ENDIF(ITK_FOUND)</P>
<P> </P>
<P>#to use VTK<BR>FIND_PACKAGE(VTK)<BR>IF(VTK_FOUND)<BR> INCLUDE(${USE_VTK_FILE})<BR>ELSE(VTK_FOUND)<BR> MESSAGE(FATAL ERROR<BR> "VTK not found. Please set VTK_DIR.")<BR>ENDIF(VTK_FOUND)</P>
<P> </P>
<P><STRONG>#to use FFTW<BR>SET(USE_FFTW 1)<BR>FIND_PACKAGE( FFTW )<BR></STRONG> <BR>SET(ITK_LIBRARIES ITKBasicFilters ITKCommon ITKIO ITKAlgorithms)<BR>SET(VTK_LIBRARIES vtkRendering vtkGraphics vtkHybrid<BR> vtkImaging vtkIO vtkFiltering vtkCommon vtkWidgets)<BR>SET(FFTW3_LIBRARIES fftw3)</P>
<P> </P>
<P>ADD_EXECUTABLE(Project WIN32 ${SOURCES})<BR></P>
<P>TARGET_LINK_LIBRARIES(Project ${ITK_LIBRARIES} ${VTK_LIBRARIES} <BR> ${FFTW3_LIBRARIES})</P>
<P> </P>
<P>With CMake, I got the following error, <STRONG>CMake Error: FFTW_DIR is set to C:\FFTW3 which is not a directory containing FFTWConfig.cmake. </STRONG></P>
<P> </P>
<P>And now, I am still locked there. Of course, I look for this FFTWConfig.cmake but couldn't find it.</P>
<P> </P>
<P>Do you see something wrong? </P>
<P> </P>
<P>Isabelle </P>
<P> </P>
<P><BR> </P>
<P> </P>
<P> </P></FONT></DIV>
<DIV> </DIV>
<DIV><BR><BR><B><I>Hans Johnson <hans-johnson@uiowa.edu></I></B> a écrit :</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><FONT face="Verdana, Helvetica, Arial"><SPAN style="FONT-SIZE: 12px">Renaud,<BR><BR>The FFTWConfig.cmake has only been tested to work automatically on unix based build systems. This is not necessarily a problem, it just means that you will have to use cmake to explicitly define where you versions of the libraries and includes are.<BR><BR>I have no experience with how fftw works under windows, so you will have to figure out those details on your own.<BR><BR>The first thing you should do is to Building/Install and test the windows FFTW installation with respect to your environment. This is outside of the scope of ITK and you will need to consult the fftw documentation. After you can demonstrate that fftw installed and working correctly, you will be able to provide information to this list that may help in resolving the issue. <BR><BR>At the moment, we would need
to know at least the following:<BR> What is the complete error message given?<BR> What do you mean by “project failed to build because of FFTWConfig.cmake”? (Is there a dependancy problem, is the compiler trying to compile this file, is the file corrupt, does cmake fail, does visual studio fail)<BR> What have YOU done to try to resolve this problem? What information have YOU collected in attempting to resolve the problem? What is YOUR hypothesis about what is wrong?<BR><BR>Regards,<BR>Hans<BR><BR><BR><BR>On 10/28/05 10:23 AM, "Renaud Isabelle" <renauisa@yahoo.fr> wrote:<BR><BR></SPAN></FONT>
<BLOCKQUOTE><FONT face="Verdana, Helvetica, Arial"><SPAN style="FONT-SIZE: 12px">Hi again,<BR> <BR>Now, I have fftw3.h, fftw3.lib and fftw3.dll. But, now, my own project failed to build because of FFTWConfig.cmake: how and where can I have this file. I saw nothing reporting to it.<BR> <BR>Please help me, it is quite urgent.<BR> <BR>Isabelle<BR><BR><B><I>Renaud Isabelle <renauisa@yahoo.fr></I></B> a écrit :<BR></SPAN></FONT>
<BLOCKQUOTE><FONT face="Verdana, Helvetica, Arial"><SPAN style="FONT-SIZE: 12px">Hi guys,<BR> <BR><B>I wanna use itkFFTWRealToComplexConjugate</B> to compute a FFTW. But it doesn't compile with MSVC 6: it says that <B>FFTWRealToComplexConjugate is not a member of ITK</B>.!!!!!<BR> <BR>I rebuild ITK with USE_<B>FFTW</B>. But, CMake doesn't find FFTW_DIR. It seems that I don't have FFTW installed on my windows PC: is it possible? <BR> <BR>So, I went to www.fftw.org <A href="http://www.fftw.org/"><http://www.fftw.org/></A> and downloaded binary files including <B>fftw3.h and libfftw.lib.</B> Is it the right way to do it? <BR> <BR>Now, I wanna rebuild my project but I got a message that <B>FFTWConfig.cmake</B> is missing. What do I have to do? <BR> <BR>Maybe it is simpler than that. What am I missing? Please really help me.<BR> <BR>Isabelle<BR>
<HR align=center width="100%" SIZE=1>
<FONT color=#ff0000><B>Appel audio GRATUIT</B></FONT><B> partout dans le monde</B> avec le nouveau Yahoo! Messenger<BR>Téléchargez le ici ! <A href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com"><http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com></A> _______________________________________________<BR>Insight-users mailing list<BR>Insight-users@itk.org<BR><A href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A><BR></SPAN></FONT></BLOCKQUOTE><FONT face="Verdana, Helvetica, Arial"><SPAN style="FONT-SIZE: 12px"><BR>
<HR align=center width="100%" SIZE=1>
<FONT color=#ff0000><B>Appel audio GRATUIT</B></FONT><B> partout dans le monde</B> avec le nouveau Yahoo! Messenger<BR> Téléchargez le ici ! <A href="http://us.rd.yahoo.com/messenger/mail_taglines/yahoofr/*http://fr.messenger.yahoo.com"><http://us.rd.yahoo.com/messenger/mail_taglines/yahoofr/*http://fr.messenger.yahoo.com></A> <BR>
<HR align=center width="95%" SIZE=3>
</SPAN></FONT><FONT size=2><FONT face="Monaco, Courier New"><SPAN style="FONT-SIZE: 10px">_______________________________________________<BR>Insight-users mailing list<BR>Insight-users@itk.org<BR><A href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A><BR></SPAN></FONT></FONT></BLOCKQUOTE><FONT size=2><FONT face="Monaco, Courier New"><SPAN style="FONT-SIZE: 10px"><BR></SPAN></FONT></FONT></BLOCKQUOTE></DIV><p>
                <hr size=1>
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br>
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>