<DIV>Dear Luis </DIV>
<DIV>Thanks for your reply. I have tried what you had wrote. But the result is the same. Then I tired to compile GaussianFilter example outside the Insightapplication folder and again I coul not compile this example. The error is the same code could not see the "InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer" folder. However this example works under "InsightApplications_SOURCE_DIR}/ GaussianFilter" folder.</DIV>
<DIV> </DIV>
<DIV>errors:</DIV>
<DIV>:/Documents and Settings/uzay/Desktop/vtkitkfltk/GaussianFilter/out/liFilterConsole2DGUI.h(8) : fatal error C1083: Cannot open include file: 'fltkLightButton.h': No such file or directory<BR>liFilterConsole2D.cxx<BR>C:\Documents and Settings\uzay\Desktop\vtkitkfltk\GaussianFilter\liFilterConsole2D.h(20) : fatal error C1083: Cannot open include file: 'fltkImage2DViewer.h': No such file or directory<BR>GaussianFilter2D.cxx<BR>C:\Documents and Settings\uzay\Desktop\vtkitkfltk\GaussianFilter\liFilterConsole2D.h(20) : fatal error C1083: Cannot open include file: 'fltkImage2DViewer.h': No such file or directory<BR>Generating Code...<BR>Error executing cl.exe.</DIV>
<DIV>ALL_BUILD - 3 error(s), 3 warning(s)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>The cmake routine that i used is below. </DIV>
<DIV> </DIV>
<DIV>PROJECT(GaussianFilter)</DIV>
<DIV> MACRO(ADD_GUI_EXECUTABLE name sources)<BR> ADD_EXECUTABLE(${name} ${sources})<BR> ENDMACRO(ADD_GUI_EXECUTABLE)</DIV>
<DIV>MACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS files)<BR> IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)<BR> IF(CMAKE_COMPILER_IS_GNUCXX)<BR> FOREACH(f ${files})<BR> STRING(REGEX REPLACE "<A href="file://\\.fl$">\\.fl$</A>" ".cxx" SRC "${f}")<BR> STRING(REGEX REPLACE ".*/([^/]*)$" "<A href="file://\\1">\\1</A>" SRC "${SRC}")<BR> SET_SOURCE_FILES_PROPERTIES(${SRC} PROPERTIES COMPILE_FLAGS -w)<BR> ENDFOREACH(f)<BR> ENDIF(CMAKE_COMPILER_IS_GNUCXX)<BR> ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)<BR>ENDMACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS)</DIV>
<DIV> </DIV>
<DIV> FIND_PACKAGE(ITK)<BR> IF(ITK_FOUND)<BR> INCLUDE(${ITK_USE_FILE})<BR> ELSE(ITK_FOUND)<BR> MESSAGE(FATAL_ERROR<BR> "Cannot build InsightApplications without ITK. Please set ITK_DIR.")<BR> ENDIF(ITK_FOUND)</DIV>
<DIV> FIND_PACKAGE(FLTK)<BR> IF(FLTK_FOUND)<BR> INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR> ENDIF(FLTK_FOUND)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>INCLUDE_DIRECTORIES(<BR> ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer<BR> ${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer<BR> ${GaussianFilter_SOURCE_DIR}<BR> ${GaussianFilter_BINARY_DIR}<BR>)</DIV>
<DIV>SET(GaussianFilter_SRCS <BR> liFilterConsole.cxx<BR> liFilterConsoleBase.cxx <BR> GaussianFilter.cxx<BR> )</DIV>
<DIV>SET(GaussianFilter2D_SRCS <BR> liFilterConsole2D.cxx<BR> liFilterConsole2DBase.cxx <BR> GaussianFilter2D.cxx<BR> )</DIV>
<DIV>ADD_GUI_EXECUTABLE(GaussianFilter "${GaussianFilter_SRCS}")<BR>ADD_GUI_EXECUTABLE(GaussianFilter2D "${GaussianFilter2D_SRCS}")</DIV>
<DIV>FLTK_WRAP_UI(GaussianFilter liFilterConsoleGUI.fl)<BR>FLTK_WRAP_UI(GaussianFilter2D liFilterConsole2DGUI.fl)<BR>ITK_DISABLE_FLTK_GENERATED_WARNINGS(liFilterConsoleGUI.fl)<BR>ITK_DISABLE_FLTK_GENERATED_WARNINGS(liFilterConsole2DGUI.fl)</DIV>
<DIV> </DIV>
<DIV>TARGET_LINK_LIBRARIES(GaussianFilter ITKFltkImageViewer ITKIO ITKBasicFilters)<BR>TARGET_LINK_LIBRARIES(GaussianFilter2D ITKFltkImageViewer ITKIO ITKBasicFilters)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I will be very glad if you help me to solve this problem. </DIV>
<DIV>Uzay</DIV>
<DIV> </DIV>
<DIV><BR><BR><BR><B><I>Luis Ibanez <luis.ibanez@kitware.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Uzay,<BR><BR>You just need to add to your CMakeLists.txt file<BR>a line like:<BR><BR><BR>INCLUDE_DIRECTORIES(<BR>${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer<BR>)<BR><BR><BR>The will add that directory to the path where header files<BR>a searched for.<BR><BR><BR>NOTE that you shouldn't use an explicit path as you are doing<BR>for the link directories:<BR><BR>> LINK_DIRECTORIES(<BR>> $C:/Program Files/itk/InsightApplications/Auxiliary/FltkImageViewer<BR><BR><BR>Just take advantage of the variables<BR><BR>InsightApplications_SOURCE_DIR<BR>InsightApplications_BINARY_DIR<BR><BR><BR>If you are building your project outside of InsightApplications,<BR>then you will have to explicitly define these two variables in<BR>your CMakeLists.txt file.<BR><BR><BR><BR>Regards,<BR><BR><BR><BR>Luis<BR><BR><BR><BR><BR>------------------------<BR>uzay emir wrote:<BR><BR>> I am
trying to build the FLTK to ITK example in Getting Started IV. However I have some problems while I am compiling this code with Visual C++ 6.0. When I tried to build, I got such error. <BR>> <BR>> <BR>> <BR>> Configuration: myProject - Win32 Debug--------------------<BR>> <BR>> Compiling...<BR>> <BR>> myProjectGUI.cxx<BR>> <BR>> C:/Program Files/itk/uzay/out/myProjectGUI.h(9) : fatal error C1083: Cannot open include file: 'fltkProgressBar.h': No such file or directory<BR>> <BR>> <BR>> <BR>> Although This error I think is due to header files from the FltkImageViewer library that is located in Auxiliary,In my CMAKElist file I include the FltkImageViewer directory. I don’t where I am making mistake. The CMAKE I wrote is outlined below. I will be very glad if anyone helps me.<BR>> <BR>> PROJECT(myProject)<BR>> FIND_PACKAGE<BR>> (ITK)<BR>> IF( ITK_FOUND)<BR>> INCLUDE( ${USE_ITK_FILE} )<BR>> ENDIF( ITK_FOUND)<BR>>
FIND_PACKAGE (FLTK)<BR>> IF (FLTK_FOUND)<BR>> INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>> ENDIF( FLTK_FOUND)<BR>> <BR>> LINK_DIRECTORIES(<BR>> $C:/Program Files/itk/InsightApplications/Auxiliary/FltkImageViewer<BR>> ${InsightApplications_SOURCE_DIR}/Auxiliary/VtkFltk<BR>> ${InsightApplications_SOURCE_DIR}/Auxiliary/vtk<BR>> ${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer<BR>> ${InsightApplications_BINARY_DIR}/Auxiliary/VtkFltk<BR>> ${myProject_SOURCE_DIR}<BR>> ${myProject_BINARY_DIR}<BR>> )<BR>> <BR>> ADD_EXECUTABLE(myProject myProject.cxx)<BR>> IF (FLTK_FOUND)<BR>> FLTK_WRAP_UI( myProject myProjectGUI.fl)<BR>> ENDIF(FLTK_FOUND)<BR>> TARGET_LINK_LIBRARIES( myProject ITKIO ITKFltkImageViewer ITKBasicFilters ITKNumerics ITKCommon ${FLTK_LIBRARIES})<BR>> <BR>> <BR>> <BR>> <BR>> <BR>> Thank you <BR>> <BR>> <BR>> <BR>> Uzay Emir<BR>> <BR>>
------------------------------------------------------------------------<BR>> Do you Yahoo!?<BR>> Yahoo! Mail <BR>> <HTTP: protection.html static new_mail promotions.yahoo.com *http: security taglines mail_us us.rd.yahoo.com><BR>> - You care about security. So do we.<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><BR></BLOCKQUOTE><p>
                <hr size=1>Celebrate Yahoo!'s 10th Birthday! <br>
<a href="http://birthday.yahoo.com/netrospective/">Yahoo! Netrospective: 100 Moments of the Web</a>