[Insight-users] watershed example does not compile

Paul Berube berube@ugrad.cs.ualberta.ca
Wed, 10 Apr 2002 08:55:33 -0600 (MDT)


>
>they should look something like:
>
>-I/compsci/robb/ugrad/berube/Insight/Code/Common
>-I/compsci/robb/ugrad/berube/Insight/Code/Algorithms
>-I/compsci/robb/ugrad/berube/Insight/Code/IO
>-I/compsci/robb/ugrad/berube/Insight/Code/BasicFilters
>

did this - now I get even more errors, I put them at the end of the
message.


>A quick question:
>Are you compiling this example by moving
>it outside the ITK building tree ?

no - this is done in-source

>
>Another question:
>When you ran CMake did you enabled the option:
>
>    BUILD_EXAMPLES="ON"

this was on, as was

>Then enabling BUILD_WATERSHED_SEGMENATION



>Normally you don't need to run cmake inside
>subdirs because the CMakeLists.txt files

i'm only doing this becuase i'm missing this example.

It build about 7 of the examples, but not this particular one.  ERRRR!


Thanks.


OK, so here is the new error output:

[berube@horse-rv WatershedSegmentation]$ make
c++ -g -O2
-I/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation
-I/compsci/robb/ugrad/berube/Insight/Code/Common
-I/compsci/robb/ugrad/berube/Insight/Code/IO
-I/compsci/robb/ugrad/berube/Insight/Code/BasicFilters
-I/compsci/robb/ugrad/berube/Insight/Code/Algorithms
-I/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentationExample
-c
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx
-o itkWatershedSegmentationExample.o
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkLightObject.h:20,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkObject.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkProcessObject.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImageSource.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImageToImageFilter.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:20,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMacro.h:34:26:
itkConfigure.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImageSource.h:232,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImageToImageFilter.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:20,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImageSource.txx:24:26:
vnl/vnl_math.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkPoint.h:20,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkVector.h:21:32:
vnl/vnl_vector_ref.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkVector.txx:21,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkVector.h:182,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkPoint.h:20,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkNumericTraits.h:28:36:
vnl/vnl_numeric_limits.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkVector.h:182,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkPoint.h:20,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkVector.txx:22:26:
vnl/vnl_math.h: No such file or directory
/compsci/robb/ugrad/berube/Insight/Code/Common/itkVector.txx:26:30:
vnl/vnl_vector.txx: No such file or directory
/compsci/robb/ugrad/berube/Insight/Code/Common/itkVector.txx:27:36:
vnl/vnl_vector_fixed.txx: No such file or directory
/compsci/robb/ugrad/berube/Insight/Code/Common/itkVector.txx:28:32:
vnl/vnl_c_vector.txx: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkPoint.h:21:32:
vnl/vnl_vector_ref.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkPoint.h:255,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkPoint.txx:20:26:
vnl/vnl_math.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkCovariantVector.h:22:32:
vnl/vnl_vector_ref.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkCovariantVector.h:167,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkCovariantVector.txx:21:26:
vnl/vnl_math.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.h:24:34:
vnl/vnl_matrix_fixed.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.h:134,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.txx:22:41:
vnl/algo/vnl_matrix_inverse.h: No such file or directory
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.txx:23:31:
vnl/vnl_transpose.h: No such file or directory
/compsci/robb/ugrad/berube/Insight/Code/Common/itkMatrix.txx:24:30:
vnl/vnl_matrix.txx: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:24,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkTransform.h:24:34:
vnl/vnl_vector_fixed.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.h:401,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkImage.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:21,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkAffineTransform.txx:22:41:
vnl/algo/vnl_matrix_inverse.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itk_hash_map.h:57,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedSegmenter.h:20,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:22,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itk_hashtable.h:80:26:
vcl_compiler.h: No such file or directory
In file included from
/compsci/robb/ugrad/berube/Insight/Code/Common/itkNeighborhoodAlgorithm.h:23,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedSegmenter.txx:20,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedSegmenter.h:369,
                 from
/compsci/robb/ugrad/berube/Insight/Code/Algorithms/itkWatershedImageFilter.h:22,
                 from
/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:
/compsci/robb/ugrad/berube/Insight/Code/Common/itkNeighborhood.h:25:28:
vnl/vnl_vector.h: No such file or directory
make[1]: *** [itkWatershedSegmentationExample.o] Error 1
make: *** [default_target] Error 2






>
>Please let us know if that helps.
>
>
>Luis
>
>
>====================
>
>Paul Berube wrote:
>
>>ok, here it is...
>>
>>this is after running ccmake in the source directory (the Waterhshed...)
>>directory does not exist in the out-of-source examples directory where itk
>>was built.  make was also run in this dir.
>>
>>[berube@horse-rv WatershedSegmentation]$ make
>>/compsci/robb/ugrad/berube/bin/cmake
>>-S/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation
>>-O/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation
>>-H/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation
>>-B/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation
>>cmake.depends is up-to-date
>>c++ -g -O2
>>-I/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation
>>-I/Code/Common -I/Code/IO -I/Code/BasicFilters -I/Code/Algorithms
>>-I/Examples/WatershedSegmentationExample   -c
>>/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx
>>-o itkWatershedSegmentationExample.o
>>/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:17:37:
>>itkWatershedImageFilter.h: No such file or directory
>>/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:18:57:
>>itkCurvatureAnisotropicDiffusionImageFilter.h: No such file or directory
>>/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:19:45:
>>itkGradientMagnitudeImageFilter.h: No such file or directory
>>/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:20:36:
>>itkImageRegionIterator.h: No such file or directory
>>/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:21:31:
>>itkRawImageWriter.h: No such file or directory
>>/compsci/robb/ugrad/berube/Insight/Examples/WatershedSegmentation/itkWatershedSegmentationExample.cxx:24:24:
>>itkCommand.h: No such file or directory
>>make[1]: *** [itkWatershedSegmentationExample.o] Error 1
>>make: *** [default_target] Error 2
>>
>>
>>Thanks!
>>
>>
>>
>
>



  "Oh, there it is...
      ...Then what the heck was that other piece of code we changed?"