<div dir="ltr"><div>hi all,</div>
<div>i&#39;m trying to compile FltkImageViewer outside the insightapplication directory.so i copy it in my work directory and change it&#39;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 &quot;Cannot build InsightApplications without ITK. Please set ITK_DIR.&quot;)</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 &quot;Cannot build InsightApplications without VTK. Please set VTK_DIR.&quot;)</p>
<p>ENDIF(VTK_FOUND) </p></span></div>
<div>an i keep the rest of the file as it is.i&#39;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&gt;fltkRGBImage2DViewerGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkRGBImage2DViewerGUI.h(5) : fatal error C1083: Cannot open include file: &#39;FL/Fl.H&#39;: No such file or directory</p>
<p>1&gt;fltkImage2DViewerGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkImage2DViewerGUI.h(5) : fatal error C1083: Cannot open include file: &#39;FL/Fl.H&#39;: No such file or directory</p>
<p>1&gt;fltkImageViewerGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkImageViewerGUI.h(5) : fatal error C1083: Cannot open include file: &#39;FL/Fl.H&#39;: No such file or directory</p>
<p>1&gt;fltkDisplayGlWindowFlatGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkDisplayGlWindowFlatGUI.h(5) : fatal error C1083: Cannot open include file: &#39;FL/Fl.H&#39;: No such file or directory</p>
<p>1&gt;fltkDisplayGlWindowGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkDisplayGlWindowGUI.h(5) : fatal error C1083: Cannot open include file: &#39;FL/Fl.H&#39;: No such file or directory</p>
<p>1&gt;Generating Code...</p>
<p>1&gt;Build log was saved at &quot;file://c:\Users\Desktop\amaster\ItkVtk\TIM3D\FltkImVbin\ITKFltkImageViewer.dir\Debug\BuildLog.htm&quot;</p>
<p>1&gt;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&#39;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>&gt;Compiling...</p>
<p>1&gt;fltkRGBImage2DViewerGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkRGBImage2DViewerGUI.h(7) : fatal error C1083: Cannot open include file: &#39;fltkRGBImage2DViewerWindow.h&#39;: No such file or directory</p>
<p>1&gt;fltkImage2DViewerGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkImage2DViewerGUI.h(7) : fatal error C1083: Cannot open include file: &#39;fltkImage2DViewerWindow.h&#39;: No such file or directory</p>
<p>1&gt;fltkImageViewerGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkImageViewerGUI.h(9) : fatal error C1083: Cannot open include file: &#39;GLSliceView.h&#39;: No such file or directory</p>
<p>1&gt;fltkDisplayGlWindowFlatGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkDisplayGlWindowFlatGUI.h(7) : fatal error C1083: Cannot open include file: &#39;fltkGlWindowInteractiveFlat.h&#39;: No such file or directory</p>
<p>1&gt;fltkDisplayGlWindowGUI.cxx</p>
<p>1&gt;C:/Users/Desktop/amaster/ItkVtk/TIM3D/FltkImVbin/fltkDisplayGlWindowGUI.h(7) : fatal error C1083: Cannot open include file: &#39;fltkGlWindowInteractive.h&#39;: No such file or directory</p>
<p>1&gt;Generating Code...</p>
<p>1&gt;Build log was saved at &quot;file://c:\Users\Desktop\amaster\ItkVtk\TIM3D\FltkImVbin\ITKFltkImageViewer.dir\Debug\BuildLog.htm&quot;</p>
<p>1&gt;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 &#39;me waiting for your help, to get out of this problem and start developping my code,because i&#39;m blocked here more than a week and i didn&#39;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>