[Insight-users] ITK examples compilation on win2k (vc++6.0)

Stephen R. Aylward aylward@unc.edu
Wed, 24 Apr 2002 09:05:41 -0400


Hi Maria,

The examples in ITK require the ITK library, so you have to build the full system. The errors you are showing are probably due to not pointing CMake to the Insight
directory as the location of the source files.   That is where ITK_SOURCE_DIR and other CMake variables are defined (implicitly via the specification of the ITK project in
the CMakelists.txt file at that top level).

By pointing CMake to that top level and then using the CMake GUI to "turn on" the building of examples, you should be able to create a ITK.dsw file that will contain a
project for EdgeDetection. Load that dsw, make the EdgeDetection project the active project in VC++, and then build.

I hope this helps.

Stephen

Maria Belen Esteban Sanchez wrote:

> Hi,
> I'm trying to compile the itk examples separately (EdgeDetection). I run
> cmake to create the workspace and open it with visual studio,  but when
> I build it, the compiler reports an error:
> "Cannot open include file: 'itkImageRegionIterator.h':".
>
> I think there is an eror with the include directories. The
> project-settings-c/c++-preprocesor tab indicates
> "${ITK_SOURCE_DIR}\Code\Common,${ITK_SOURCE_DIR}\Code\BasicFilters,${ITK_SOURCE_DIR}\Code\Algorithms,${ITK_SOURCE_DIR}\Code\IO,${ITK_SOURCE_DIR}\Examples\EdgeDetection"
>
> as additional include directory but, where is defined this environment
> variable? I´ve seen in the control panel and it´s not defined there.
>
> If I change ${ITK_SOURCE_DIR}with the complete path (C:\HOME\Insight),
> the project crash  with the same error and another include file
> (itkConfigure.h).
>
> How can I solve the problem?
> Belén
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users