[Insight-users] watershed example does not compile

Paul Berube berube@ugrad.cs.ualberta.ca
Wed, 10 Apr 2002 12:09:00 -0600 (MDT)


>You can make reference to this path inside the
>CMakeLists.txt files by using:  ${ITK_BINARY_DIR}

I added this, and it removed some errors, but many more remain (or are
new).

>Something should be confusing your configuration...
>
>Could you please describe in more detail how
>are you running cmake ?
>
>what version of ITK you are using ? is that from the
>CVS repository or form the Beta tarball.
>

I've got
~/Insight          (source, as extracted from the beta tar ball)
~/Insight-build    (where I wanted to build it)
~/lib              (library output path)

initially, I ran
~/Insight/ccmake
~/Insight/make
but this gave lots of errors, so, then I switched to doing

~/Insight-build/ccmake ../Insight
~/Insight-build/make

in ccamke, i selected to build everything except auxiliary, including the
watershed example. (I kept hitting "configure" until it stopped changing,
then hit "generate").  I found that if I did not scpecify a lirary output
directory, things would not compile.  So I set the library output path to
~/lib

this compiled a whole ton of stuff, no errors that I saw.
However, the watershed example is missing from
~/Insight-build/Examples
(there are other examples in this directroy, eg FEM)

For the errors generated in the last few messages, I have been trying to
build the watershed example in-source (ie ~/Insight/Examples...).

Perhaps I would have better luck with CVS?
CVS is available on the machine I'm using, but I'm not really sure how I'd
have to go using it to get itk...


Thanks for all the help.  This has been pretty frustrating (trying to
make it work myself), but now at least it looks like I might eventully get
this to work :)


>    Luis
>
>
>
>============================================
>
>Paul Berube wrote:
>> 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
>>
>>
>>
>>
>>
>>
>>
>
>



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