[Insight-users] Re: building examples

Luis Ibanez luis . ibanez at kitware . com
Mon, 10 Nov 2003 16:41:13 -0500


Hi Sharad,


The CMakeLists.txt file that you find in

Insight/Examples/DataRepresentation/Image

is configured to build the examples as part
of the source tree of ITK.

If you want to build these examples isolated you
need to write a different CMakeLists.txt file.

This is quite simple,  Please use as model the
file in

    Insight/Examples/Installation/CMakeLists.txt

or follow the instructions in the tutorial
documents:

   http://www . itk . org/HTML/Tutorials . htm

In particular:

http://www . itk . org/CourseWare/Training/GettingStarted-I . pdf


   Regards,


     Luis


-------------------------------------
sharad at lynx . eng . fsu . edu wrote:
> hi Luis
> 
> i have some problems building the example programs given.
> i am trying to build the ImageExamples from
> Examples/DataRepresentation/Image/Image1.cxx.
> 
> these are the steps i follow for building it
> 
> 1.i copy all the .cxx files into a new folder i.e all the
> image1.cxx,image2.cxx,....etc and the cmakelists.txt file .
> 2.Run CMake and configure it.
> 3.open the ImageExamples.dsw created in the bin directory and then select 
> AllBuild and try to build it.
> but it gives an error saying:
> 
> 
> 
> -------------------Configuration: Image1 - Win32
> RelWithDebInfo--------------------
> Compiling...
> Image1.cxx
> C:\InsightToolkit-1.4.0\InsightToolkit-1.4.0\Code\Common\itkWin32Header.h(
> 23) : fatal error C1083: Cannot open include file: 'itkConfigure.h': No
> such file or directory
> Error executing cl.exe.
> 
> ALL_BUILD - 1 error(s), 0 warning(s)
> 
> 
> 
> what exactly should i do. i tried setting the active configuaration with
> all the three i.e
> release, debug and RelWithDebInfo but its giving the same error. can you
> please help me to solve this
> 
> thank you 
> regards
> sharad
> 
> 
>