<div dir="ltr"><div>hi all,</div>
<div>i'm trying to compile FltkImageViewer outside the insightapplication directory.so i copy it in my work directory and change it's CmakeLists.txt by adding this at the top of the file :</div>
<div><span lang="FR">
<p>IF(USE_FLTK)</p>
<p>FIND_PACKAGE(FLTK)</p>
<p>IF(FLTK_FOUND)</p>
<p>INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})</p>
<p>ENDIF(FLTK_FOUND)</p>
<p>ENDIF(USE_FLTK)</p>
<p>FIND_PACKAGE(ITK)</p>
<p>IF(ITK_FOUND)</p>
<p>INCLUDE(${ITK_USE_FILE})</p>
<p>ELSE(ITK_FOUND)</p>
<p>MESSAGE(FATAL_ERROR "Cannot build InsightApplications without ITK. Please set ITK_DIR.")</p>
<p>ENDIF(ITK_FOUND)</p>
<p>FIND_PACKAGE(VTK)</p>
<p>IF(VTK_FOUND)</p>
<p>INCLUDE(${VTK_USE_FILE})</p>
<p>ELSE(VTK_FOUND)</p>
<p>MESSAGE(FATAL_ERROR "Cannot build InsightApplications without VTK. Please set VTK_DIR.")</p>
<p>ENDIF(VTK_FOUND) </p></span></div>
<div>an i keep the rest of the file as it is.i'm using the latest vesions: </div>
<div>itk 3.20 / vtk 5.6.1 / fltk 1.1.10 / cmake2.8.3. when i compile with visual studio 2008 i have the follwing error :</div>
<div>
<div><font size="1">
<p>Compiling...</p>
<p>1>fltkRGBImage2DViewerGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkRGBImage2DViewerGUI.h(5) : fatal error C1083: Cannot open include file: 'FL/Fl.H': No such file or directory</p>
<p>1>fltkImage2DViewerGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkImage2DViewerGUI.h(5) : fatal error C1083: Cannot open include file: 'FL/Fl.H': No such file or directory</p>
<p>1>fltkImageViewerGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkImageViewerGUI.h(5) : fatal error C1083: Cannot open include file: 'FL/Fl.H': No such file or directory</p>
<p>1>fltkDisplayGlWindowFlatGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkDisplayGlWindowFlatGUI.h(5) : fatal error C1083: Cannot open include file: 'FL/Fl.H': No such file or directory</p>
<p>1>fltkDisplayGlWindowGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkDisplayGlWindowGUI.h(5) : fatal error C1083: Cannot open include file: 'FL/Fl.H': No such file or directory</p>
<p>1>Generating Code...</p>
<p>1>Build log was saved at "file://c:\Users\Desktop\amaster\ItkVtk\TIM3D\FltkImVbin\ITKFltkImageViewer.dir\Debug\BuildLog.htm"</p>
<p>1>ITKFltkImageViewer - 5 error(s), 0 warning(s)</p>
<p>******************************************************************************************</p></font></div></div>
<div>i add the following line in CmakeLists:</div>
<div><span lang="FR">
<p>INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})</p></span></div>
<div>out of the test: <span lang="FR">IF(USE_FLTK)......<span lang="FR">ENDIF(USE_FLTK) because i think he isn't entering here. and when i recompile the code, last errors was resolved but i have new errors :</span></span></div>
<div><span lang="FR"><span lang="FR"></span></span> </div>
<div><span lang="FR"><span lang="FR"><font size="1">
<p>>Compiling...</p>
<p>1>fltkRGBImage2DViewerGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkRGBImage2DViewerGUI.h(7) : fatal error C1083: Cannot open include file: 'fltkRGBImage2DViewerWindow.h': No such file or directory</p>
<p>1>fltkImage2DViewerGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkImage2DViewerGUI.h(7) : fatal error C1083: Cannot open include file: 'fltkImage2DViewerWindow.h': No such file or directory</p>
<p>1>fltkImageViewerGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkImageViewerGUI.h(9) : fatal error C1083: Cannot open include file: 'GLSliceView.h': No such file or directory</p>
<p>1>fltkDisplayGlWindowFlatGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkDisplayGlWindowFlatGUI.h(7) : fatal error C1083: Cannot open include file: 'fltkGlWindowInteractiveFlat.h': No such file or directory</p>
<p>1>fltkDisplayGlWindowGUI.cxx</p>
<p>1>C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkDisplayGlWindowGUI.h(7) : fatal error C1083: Cannot open include file: 'fltkGlWindowInteractive.h': No such file or directory</p>
<p>1>Generating Code...</p>
<p>1>Build log was saved at "file://c:\Users\Desktop\amaster\ItkVtk\TIM3D\FltkImVbin\ITKFltkImageViewer.dir\Debug\BuildLog.htm"</p>
<p>1>ITKFltkImageViewer - 5 error(s), 0 warning(s)</p></font></span></span></div>
<div><span lang="FR"><span lang="FR">**************************************************************************</span></span></div>
<div><span lang="FR"><span lang="FR">I 'me waiting for your help, to get out of this problem and start developping my code,because i'm blocked here more than a week and i didn't find an issue yet.</span></span></div>
<div><span lang="FR"><span lang="FR">thx to all. Regards</span></span></div>
<div><span lang="FR"><span lang="FR">Amir. </span></span></div>
<div><font size="1">
<p> </p></font></div></div>