[Insight-users] problem building insight application
Luis Ibanez
luis . ibanez at kitware . com
Fri, 18 Jul 2003 15:21:20 -0400
Hi Tejas,
The file
'fltkVTKImageViewerGUI.h'
is generated by FLTK-fluid under CMake control. It will
be located in the Binary directory where you built
InsightApplications/Auxiliary/FltkImageViewer.
The fact is that the GeodesicActiveContours (and many other
FLTK applications in InsightApplications) is depending on
this FltkImageViewer library. You will have to decide if
you build this library on your own, and indicate to your
project where the headers and the library are located,
or you could simply copy all those files into your project
and get a monolitic application.
It all depends on who far do you plan to go with it.
For example,
A) If you just want to play with this application, you better
use it inside the source tree of InsightApplication, and
compile the whole set of applications. This is already
configured to be easy to build.
B) If you want to experiment with it as a prototype of an
ITK + FLTK application, you better extract the FltkImageViewer
project too and use it for generating a library. Then
link your app to this library.
C) If you want to go really far with this code, you are
better of using VTK for visualizing the images. In that
case you may want to use the vtkFlRenderWindowInterator
class available in
InsightApplications/Auxiliary/VtkFltk.
I would suggest you to start with (A), that is, do not
move the project out of the InsightApplications tree, just
build all the applications from the top.
Regards,
Luis
---------------------
tejas mehta wrote:
> Thanks Luis. I included all the directories in CMakeLists.txt file. When
> building in VC++ I get the following error:
>
> \itk\InsightApplications-1.2.0\Auxiliary\VtkFltk\fltkVTKImageViewer.h(20)
> : fatal error C1083: Cannot open include file:
> 'fltkVTKImageViewerGUI.h': No such file or directory
>
> I could not find the file : 'fltkVTKImageViewerGUI.h' anywhere ????
>
> Tejas
>
>
> */Luis Ibanez <luis . ibanez at kitware . com>/* wrote:
>
>
> Hi Tejas,
>
> Please add the following lines to your CMakeLists.txt
> file
>
> INCLUDE_DIRECTORIES(
> ${myApplicationName_SOURCE_DIR}
> )
>
> Where "myApplicationName" is the name you gave to
> your project at the beginning of the CMakeLists.txt
> file with the command PROJECT()
>
> These lines add the source directory of your project
> to the list of directories to search for header files.
>
>
> Please take a look at the previous posting
> http://www . itk . org/pipermail/insight-users/2003-July/004278 . html
> regarding the CMake configuration of projects using
> ITK, VTK and FLTK.
>
>
> Regards,
>
>
> Luis
>
>
>
> ------------------
> tejas mehta wrote:
> > Hi,
> >
> > I am trying to build the Geodisic Active Contour Application. I use
> > CMake to configure the itk applications:
> >
> > Source: C:\itk\InsightApplications-1.2.0
> > Bin: C:\temp_app
> >
> > After this I use VC++ to build all the classes
> >
> > Next, I copy the files from the GeodisisActiveContour directory into
> > another directory and try to configure using CMake. I add the
> following
> > lines to the CMakeLists.txt :
> >
> > /FIND_PACKAGE(FLTK)
> > // IF(FLTK_FOUND)
> > //INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
> > //ENDIF(FLTK_FOUND)/
> > //
> > Next, I build the Project.dsw file in VC++. This is where I get the
> > following errors:
> >
> > C:/itk_bin/GeodesicActiveContourGUI.h(7) : fatal error C1083: Cannot
> > open include file: 'GeodesicActiveContourBase.h': No such file or
> directory
> > GeodesicActiveContour.cxx
> > C:\itk_source\GeodesicActiveContour.cxx(18) : fatal error C1083:
> Cannot
> > open include file: 'GeodesicActiveContour.h': No such file or
> directory
> > GeodesicActiveContourBase.cx! x
> > C:\itk_source\GeodesicActiveContourBase.h(20) : fatal error C1083:
> > Cannot open include file: 'itkImageFileReader.h': No such file or
> directory
> > I would really appreciate if somenody would help me out.
> >
> >
> > Tejas
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > Do you Yahoo!?
> > SBC Yahoo! DSL
> >
> > - Now only $29.95 per month!
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL
> <http://pa . yahoo . com/*http://rd . yahoo . com/evt=1207/*http://promo . yahoo . com/sbc/>
> - Now only $29.95 per month!