<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"&nbsp; folder. However this example works under&nbsp; "InsightApplications_SOURCE_DIR}/ GaussianFilter" folder.</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>The cmake routine that i used is below. </DIV>
<DIV>&nbsp;</DIV>
<DIV>PROJECT(GaussianFilter)</DIV>
<DIV>&nbsp;MACRO(ADD_GUI_EXECUTABLE name sources)<BR>&nbsp;&nbsp;&nbsp; ADD_EXECUTABLE(${name} ${sources})<BR>&nbsp; ENDMACRO(ADD_GUI_EXECUTABLE)</DIV>
<DIV>MACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS files)<BR>&nbsp; IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)<BR>&nbsp;&nbsp;&nbsp; IF(CMAKE_COMPILER_IS_GNUCXX)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FOREACH(f ${files})<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STRING(REGEX REPLACE "<A href="file://\\.fl$">\\.fl$</A>" ".cxx" SRC "${f}")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STRING(REGEX REPLACE ".*/([^/]*)$" "<A href="file://\\1">\\1</A>" SRC "${SRC}")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET_SOURCE_FILES_PROPERTIES(${SRC} PROPERTIES COMPILE_FLAGS -w)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENDFOREACH(f)<BR>&nbsp;&nbsp;&nbsp; ENDIF(CMAKE_COMPILER_IS_GNUCXX)<BR>&nbsp; ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)<BR>ENDMACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; FIND_PACKAGE(ITK)<BR>&nbsp; IF(ITK_FOUND)<BR>&nbsp;&nbsp;&nbsp; INCLUDE(${ITK_USE_FILE})<BR>&nbsp; ELSE(ITK_FOUND)<BR>&nbsp;&nbsp;&nbsp; MESSAGE(FATAL_ERROR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cannot build InsightApplications without ITK.&nbsp; Please set ITK_DIR.")<BR>&nbsp; ENDIF(ITK_FOUND)</DIV>
<DIV>&nbsp; FIND_PACKAGE(FLTK)<BR>&nbsp; IF(FLTK_FOUND)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>&nbsp; ENDIF(FLTK_FOUND)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>INCLUDE_DIRECTORIES(<BR>&nbsp; ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer<BR>&nbsp; ${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer<BR>&nbsp; ${GaussianFilter_SOURCE_DIR}<BR>&nbsp; ${GaussianFilter_BINARY_DIR}<BR>)</DIV>
<DIV>SET(GaussianFilter_SRCS <BR>&nbsp; liFilterConsole.cxx<BR>&nbsp; liFilterConsoleBase.cxx <BR>&nbsp; GaussianFilter.cxx<BR>&nbsp; )</DIV>
<DIV>SET(GaussianFilter2D_SRCS <BR>&nbsp; liFilterConsole2D.cxx<BR>&nbsp; liFilterConsole2DBase.cxx <BR>&nbsp; GaussianFilter2D.cxx<BR>&nbsp; )</DIV>
<DIV>ADD_GUI_EXECUTABLE(GaussianFilter&nbsp;&nbsp; "${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>&nbsp;</DIV>
<DIV>TARGET_LINK_LIBRARIES(GaussianFilter ITKFltkImageViewer ITKIO ITKBasicFilters)<BR>TARGET_LINK_LIBRARIES(GaussianFilter2D ITKFltkImageViewer ITKIO ITKBasicFilters)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I will be very glad if you help me to solve this problem. </DIV>
<DIV>Uzay</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR><BR><B><I>Luis Ibanez &lt;luis.ibanez@kitware.com&gt;</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>&gt; LINK_DIRECTORIES(<BR>&gt; $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>&gt; 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>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Configuration: myProject - Win32 Debug--------------------<BR>&gt; <BR>&gt; Compiling...<BR>&gt; <BR>&gt; myProjectGUI.cxx<BR>&gt; <BR>&gt; C:/Program Files/itk/uzay/out/myProjectGUI.h(9) : fatal error C1083: Cannot open include file: 'fltkProgressBar.h': No such file or directory<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; 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>&gt; <BR>&gt; PROJECT(myProject)<BR>&gt; FIND_PACKAGE<BR>&gt; (ITK)<BR>&gt; IF( ITK_FOUND)<BR>&gt; INCLUDE( ${USE_ITK_FILE} )<BR>&gt; ENDIF( ITK_FOUND)<BR>&gt;
 FIND_PACKAGE (FLTK)<BR>&gt; IF (FLTK_FOUND)<BR>&gt; INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>&gt; ENDIF( FLTK_FOUND)<BR>&gt; <BR>&gt; LINK_DIRECTORIES(<BR>&gt; $C:/Program Files/itk/InsightApplications/Auxiliary/FltkImageViewer<BR>&gt; ${InsightApplications_SOURCE_DIR}/Auxiliary/VtkFltk<BR>&gt; ${InsightApplications_SOURCE_DIR}/Auxiliary/vtk<BR>&gt; ${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer<BR>&gt; ${InsightApplications_BINARY_DIR}/Auxiliary/VtkFltk<BR>&gt; ${myProject_SOURCE_DIR}<BR>&gt; ${myProject_BINARY_DIR}<BR>&gt; )<BR>&gt; <BR>&gt; ADD_EXECUTABLE(myProject myProject.cxx)<BR>&gt; IF (FLTK_FOUND)<BR>&gt; FLTK_WRAP_UI( myProject myProjectGUI.fl)<BR>&gt; ENDIF(FLTK_FOUND)<BR>&gt; TARGET_LINK_LIBRARIES( myProject ITKIO ITKFltkImageViewer ITKBasicFilters ITKNumerics ITKCommon ${FLTK_LIBRARIES})<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Thank you <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Uzay Emir<BR>&gt; <BR>&gt;
 ------------------------------------------------------------------------<BR>&gt; Do you Yahoo!?<BR>&gt; Yahoo! Mail <BR>&gt; <HTTP: protection.html static new_mail promotions.yahoo.com *http: security taglines mail_us us.rd.yahoo.com><BR>&gt; - You care about security. So do we.<BR>&gt; <BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Insight-users mailing list<BR>&gt; Insight-users@itk.org<BR>&gt; 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>