[Insight-users] problem building examples
Luis Ibanez
luis.ibanez at kitware.com
Wed, 28 Apr 2004 20:21:52 -0400
Hi Alexandra,
It looks like you ran CMake from the Examples subdirectory.
You should simply run CMake from the top directory and
enable the option BUILD_EXAMPLES. Once you reconfigure
ITK, you can then do "make".
The Examples are configured to be built as part of the
source tree in ITK. If you want to take some examples
out of the tree you will find instruction on how to
do this, in the Tutorial Sessions:
http://www.itk.org/HTML/Tutorials.htm
Just to keep you faith alive, note that ITK is build
nightly on the MAC :-)
krondor.kitware
G4Cube.Sintef
are two Mac submitting nightly to the Dashboard.
Please let us know if you still find any problems.
Regards,
Luis
-----------------
Alexandra Badea wrote:
> Greetings!
>
> I have recently installed ITK on MAC OSX 10.3.3. Or at least I thought so..
> Apparently itk was build without errors and I have also build the
> Applications.
> Then I wanted to look at the examples from
> InsightToolkit-1.6.0/Examples/IO and realized I have to build them.
> I used /CMAKE/ and then /make/. It seems that the program does not know
> where to look for the files to include and /make/ fails.
> I had to change the cmake_cxx_flags in cmake and add the paths to each
> of the *.h files it looks for but this process does not end.
> Can you please indicate me if/where am I doing something wrong?
>
> Many thanks!
>
> Alexandra Badea
>
>
> ------the cmake flags I changed---
> //Flags used by the compiler during all build types.
> CMAKE_CXX_FLAGS:STRING='
> -I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/IO
> -I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common
> -I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Utilities/vxl/core
> -I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Utilities/vxl/vcl
> -I/Users/alex/software/itk/itk_binary '
>
> ---a sample of the error messages I get-----
>
> [ithaka:InsightToolkit-1.6.0/Examples/IO] alex% make
> Building dependencies. cmake.depends...
> cmake.depends is up-to-date
> Building object file CovariantVectorImageExtractComponent.o...
> In file included from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkPoint.h:20,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImageBase.h:29,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImage.h:20,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImageSource.h:24,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/IO/itkImageFileReader.h:21,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Examples/IO/CovariantVectorImageExtractComponent.cxx:37:
>
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkVector.h:21:32:
> vnl/vnl_vector_ref.h: No such file or directory
> In file included from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkPoint.h:20,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImageBase.h:29,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImage.h:20,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImageSource.h:24,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/IO/itkImageFileReader.h:21,
>
> from
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Examples/IO/CovariantVectorImageExtractComponent.cxx:37:
>
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkVector.h:84:
> error: parse
> error before `&' token
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkVector.h:87:
> error: parse
> error before `)' token
> /Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkVector.h:90:
> error: parse
> error before `)' token
>
> --cut here---
> --------
>
>