[Insight-users] Re: fail to build image example in ITK software guide

Luis Ibanez luis.ibanez at kitware.com
Tue, 30 Dec 2003 18:10:01 -0500


Hi Steve,

I'm afraid that these are not at all the steps
recommended for building the examples.

You simply need to run CMake on the binary directory
where you built ITK and enable the variable

              BUILD_EXAMPLES

then click on the Configure button and then in
the OK button. At this point CMake will generate
an updated ITK.dsw workspace for VisualStudio.

The Examples in ITK are configured to be build as
part of the binary tree structure under the directory

        ITK_BINARY/Examples

where ITK_BINARY is the directory you chose for
building ITK.

Once  you generate the ITK.dsw file you can simply
build the ALL_BUILD project (and go for some coffee),
or select the project of the specific example that
you want to build, right click on it and build it
directly.


Please let us know if you still encounter
any difficulty.


Thanks


   Luis


-------------------------
Chen,Steven wrote:

> Hi, all
>  
> I follow the steps to load the image examples, but fail.  i really donot 
> know why.
>  
> (1) Copy all the files in examples -image , including CMakeLists, 
> image1.cxx, image5.cxx,... imageAdaptor4.cxx to a folder named TestImage.
> (2) use CMake to configure it.
> (3) Open ImageExamples.dsw, and build it.
>  
> and then there will an error message occurs:
> *cannot open include file : itkImage.h.No such file or directory*
> I tried many ways, but always fail
>  
> Can you tell me why?
>  
> Thanks alot
>  
> Steven chen
>