<DIV>Hi again,</DIV>
<DIV> </DIV>
<DIV>I am still trying to use FFTW in my project. </DIV>
<DIV> </DIV>
<DIV>- First, I thought it was because I didn't update my ITK version. Now, I installed the new release ITK2_2. ITK2_2's configuration, enabling USE_FFTWD and USE_FFTWF, is fine and the building, under visual c++, works without any problem. </DIV>
<DIV> </DIV>
<DIV>- Then, I want to configure my own project using FFTW with CMake. CMake still gives this error: FFTW_DIR should contain the file FFTWConfig.cmake, which I don't have. </DIV>
<DIV> </DIV>
<DIV>- As adviced, I tried to install FFTW3 independantly of ITK. However, it seems that <STRONG>Microsoft Visual C++ version 6.0 is buggy</STRONG>: <STRONG>no one successed to build fftw librairies with MSVC 6.0</STRONG> and the compiler of MSVC 6.0 can't call fftw librairies. </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Isabelle<BR><BR><B><I>Karthik Krishnan <Karthik.Krishnan@kitware.com></I></B> a écrit :</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR><BR>Renaud Isabelle wrote:<BR><BR>> First of all, thank you bery much for replying.<BR>> - my 3 files *fftw3.h, fftw3.lib and fftw3.dll* are in the same <BR>> directory *C:\FFTW3_LIBRARIES*.<BR>> - once I got them, I modify my *FindFFTW3.cmake* as reported. Here is <BR>> my FindFFTW3.cmake:<BR>><BR>> IF (USE_FFTW)<BR>><BR>> SET(FFTW_INC_SEARCHPATH<BR>><BR>> /usr/include<BR>><BR>> /usr/include/fftw<BR>><BR>> /usr/local/include<BR>><BR>> /usr/local/include/fftw<BR>><BR>> )<BR>><BR>> SET(FFTW_LIB_SEARCHPATH<BR>><BR>> /usr/lib<BR>><BR>> /usr/lib/fftw<BR>><BR>> /usr/local/lib<BR>><BR>> /usr/local/lib/fftw<BR>><BR>> )<BR>><BR>> FIND_PATH(FFTW_INCLUDE_PATH fftw3.h ${FFTW_INC_SEARCHPATH})<BR>><BR>> IF(FFTW_INCLUDE_PATH)<BR>><BR>> SET(FFTW_INCLUDE
${FFTW_INCLUDE_PATH})<BR>><BR>> ENDIF (FFTW_INCLUDE_PATH)<BR>><BR>> FIND_LIBRARY(FFTW_LIB_PATH fftw3 ${FFTW_LIB_SEARCHPATH})<BR>><BR>> IF(FFTW_LIB_PATH)<BR>><BR>> SET(FFTW_LIB ${FFTW_LIB_PATH})<BR>><BR>> ENDIF (FFTW_LIB_PATH)<BR>><BR>> IF(FFTW_INCLUDE)<BR>><BR>> IF(FFTW_LIB)<BR>><BR>> SET(FFTW_FOUND 1)<BR>><BR>> ENDIF (FFTW_LIB)<BR>><BR>> ENDIF(FFTW_INCLUDE)<BR>><BR>> IF(FFTW_FOUND)<BR>><BR>> INCLUDE_DIRECTORIES( ${FFTW_INCLUDE})<BR>><BR>> *LINK_LIBRARIES( ${FFTW_LIB} )*//modification<BR>><BR>> ADD_DEFINITIONS(-DUSE_FFTW)<BR>><BR>> SET(FFTW_DIR .)<BR>><BR>> ENDIF (FFTW_FOUND)<BR>><BR>> MARK_AS_ADVANCED(FFTW_INCLUDE_PATH FFTW_LIB_PATH)<BR>><BR>> ENDIF (USE_FFTW)<BR>><BR>> -then, I use *CMake* to *enable FFTW in ITK*: with *USE_FFTW = ON*<BR>><BR>> - after that, I use *CMake to config my own project*. Here is my <BR>> CMakeLists.txt for this
project:<BR>><BR>> PROJECT(Project)<BR>><BR>> ADD_DEFINITIONS(-D_AFXDLL)<BR>><BR>> SET(CMAKE_MFC_FLAG 6)<BR>><BR>> SET(SOURCES ...)<BR>><BR>> IF(WIN32)<BR>> LINK_LIBRARIES(wsock32)<BR>> ENDIF(WIN32)<BR>><BR>> #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)<BR>><BR>> #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)<BR>><BR>> *#to use FFTW<BR>> SET(USE_FFTW 1)<BR>> FIND_PACKAGE( FFTW )<BR>> *<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)<BR>><BR>> ADD_EXECUTABLE(Project WIN32 ${SOURCES})<BR>><BR>> TARGET_LINK_LIBRARIES(Project ${ITK_LIBRARIES} ${VTK_LIBRARIES}<BR>> ${FFTW3_LIBRARIES})<BR>><BR>> With CMake, I got the following error, *CMake Error: FFTW_DIR is set <BR>> to C:\FFTW3 which is not a directory containing FFTWConfig.cmake. *<BR>><BR>Check all your ENV{PATH} for another FindFFT.cmake . The FindFFT.cmake <BR>that you posted above has no mention of FFTWConfig.cmake, so I can't see <BR>why CMake should search for it.<BR><BR>> And now, I am still locked there. Of course, I look for this <BR>> FFTWConfig.cmake but couldn't find it.<BR>><BR>> Do you see something wrong?<BR>><BR>> Isabelle<BR>><BR>><BR>><BR>><BR>> */Hans Johnson <HANS-JOHNSON@UIOWA.EDU>/* a écrit :<BR>><BR>> Renaud,<BR>><BR>> The FFTWConfig.cmake has only been tested to work automatically on<BR>> unix based build systems. This is not necessarily a
problem, it<BR>> just means that you will have to use cmake to explicitly define<BR>> where you versions of the libraries and includes are.<BR>><BR>> I have no experience with how fftw works under windows, so you<BR>> 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<BR>> windows FFTW installation with respect to your environment. This<BR>> is outside of the scope of ITK and you will need to consult the<BR>> fftw documentation. After you can demonstrate that fftw installed<BR>> and working correctly, you will be able to provide information to<BR>> this list that may help in resolving the issue.<BR>><BR>> At the moment, we wo! uld 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<BR>> FFTWConfig.cmake”? (Is there a dependancy problem, is the compiler<BR>> trying
to compile this file, is the file corrupt, does cmake fail,<BR>> does visual studio fail)<BR>> What have YOU done to try to resolve this problem? What<BR>> information have YOU collected in attempting to resolve the<BR>> 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>> Hi again,<BR>><BR>> Now, I have fftw3.h, fftw3.lib and fftw3.dll. But, now, my own<BR>> project failed to build because of FFTWConfig.cmake: how and<BR>> 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>> */Renaud Isabelle <RENAUISA@YAHOO.FR>/* a écrit :<BR>><BR>> Hi guys,<BR>><BR>> *I wanna use itkFFTWRealToComplexConjugate* to compute a<BR>> FFTW. But it doesn't compile with MSVC 6: it says that<BR>>
*FFTWRealToComplexConjugate is not a member of ITK*.!!!!!<BR>><BR>> I rebuild ITK with USE_*FFTW*. But, CMake doesn't find<BR>> FFTW_DIR. It seems that I don't have FFTW installed on my<BR>> windows PC: is it possible?<BR>><BR>> So, I went to www.fftw.org <HTTP: www.fftw.org />and<BR>> downloaded binary files including *fftw3.h and<BR>> libfftw.lib.* Is it the right way to do it?<BR>><BR>> Now, I wanna rebuild my project but I got a message that<BR>> *FFTWConfig.cmake* is missing. What do I have to do?<BR>><BR>> Maybe it is simpler than that. What am I missing? Please<BR>> really help me.<BR>><BR>> Isabelle<BR>> ------------------------------------------------------------------------<BR>> *Appel audio GRATUIT** partout dans le monde* avec le<BR>> nouveau Yahoo! Messenger<BR>> Téléchargez le ici !<BR>> <HTTP: fr.messenger.yahoo.com *http: default mail_taglines messenger us.rd.yahoo.com><BR>>
_______________________________________________<BR>> Insight-users mailing list<BR>> Insight-users@itk.org<BR>> http://www.itk.org/mailman/listinfo/insight-users<BR>><BR>><BR>> ------------------------------------------------------------------------<BR>> *Appel audio GRATUIT** partout dans le monde* avec le nouveau<BR>> Yahoo! Messenger<BR>> Téléchargez le ici !<BR>> <HTTP: fr.messenger.yahoo.com *http: mail_taglines messenger us.rd.yahoo.com yahoofr><BR>><BR>> ------------------------------------------------------------------------<BR>> _______________________________________________<BR>> Insight-users mailing list<BR>> Insight-users@itk.org<BR>> http://www.itk.org/mailman/listinfo/insight-users<BR>><BR>><BR>> ------------------------------------------------------------------------<BR>> *Appel audio GRATUIT partout dans le monde* avec le nouveau Yahoo! <BR>> Messenger<BR>> Téléchargez le ici ! <BR>> <HTTP:
fr.messenger.yahoo.com *http: default mail_taglines messenger us.rd.yahoo.com><BR>><BR>><BR>>------------------------------------------------------------------------<BR>><BR>>_______________________________________________<BR>>Insight-users mailing list<BR>>Insight-users@itk.org<BR>>http://www.itk.org/mailman/listinfo/insight-users<BR>> <BR>><BR></BLOCKQUOTE><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>