[Insight-users] fatal error C1083: Cannot open include file: 'FL/Fl.H': No such file or directory

ch mr chmail2011 at gmail.com
Sat Jan 1 07:46:20 EST 2011


hi all,
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 :

IF(USE_FLTK)

FIND_PACKAGE(FLTK)

IF(FLTK_FOUND)

INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})

ENDIF(FLTK_FOUND)

ENDIF(USE_FLTK)

FIND_PACKAGE(ITK)

IF(ITK_FOUND)

INCLUDE(${ITK_USE_FILE})

ELSE(ITK_FOUND)

MESSAGE(FATAL_ERROR "Cannot build InsightApplications without ITK. Please
set ITK_DIR.")

ENDIF(ITK_FOUND)

FIND_PACKAGE(VTK)

IF(VTK_FOUND)

INCLUDE(${VTK_USE_FILE})

ELSE(VTK_FOUND)

MESSAGE(FATAL_ERROR "Cannot build InsightApplications without VTK. Please
set VTK_DIR.")

ENDIF(VTK_FOUND)
an i keep the rest of the file as it is.i'm using the latest vesions:
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 :

Compiling...

1>fltkRGBImage2DViewerGUI.cxx

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

1>fltkImage2DViewerGUI.cxx

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

1>fltkImageViewerGUI.cxx

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

1>fltkDisplayGlWindowFlatGUI.cxx

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

1>fltkDisplayGlWindowGUI.cxx

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

1>Generating Code...

1>Build log was saved at
"file://c:\Users\Desktop\amaster\ItkVtk\TIM3D\FltkImVbin\ITKFltkImageViewer.dir\Debug\BuildLog.htm"

1>ITKFltkImageViewer - 5 error(s), 0 warning(s)

******************************************************************************************
i add the following line in CmakeLists:

INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
out of the test: IF(USE_FLTK)......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 :


>Compiling...

1>fltkRGBImage2DViewerGUI.cxx

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

1>fltkImage2DViewerGUI.cxx

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

1>fltkImageViewerGUI.cxx

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

1>fltkDisplayGlWindowFlatGUI.cxx

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

1>fltkDisplayGlWindowGUI.cxx

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

1>Generating Code...

1>Build log was saved at
"file://c:\Users\Desktop\amaster\ItkVtk\TIM3D\FltkImVbin\ITKFltkImageViewer.dir\Debug\BuildLog.htm"

1>ITKFltkImageViewer - 5 error(s), 0 warning(s)
**************************************************************************
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.
thx to all. Regards
Amir.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110101/27695fe4/attachment.htm>


More information about the Insight-users mailing list