[Insight-users] vtkITK Linux Compile Issues

Bill Lorensen bill.lorensen at gmail.com
Fri Dec 21 08:29:46 EST 2007


John,

This is really a Slicer3 specific problem. It is related to recent changes
to itkNumericTraits. John, update your slicer3 source tree. This problem was
fixed about 10 days ago.

Bill



On Dec 20, 2007 4:41 PM, kent williams <nkwmailinglists at gmail.com> wrote:

> I realize the error messages are pretty wooly, but hey, welcome to G++!
>
> The root problem is that there is no predefined itk::NumericTraits
> class for the type 'long long' .   You could define your own -- look
> at Insight/Code/Common/itkNumericTraits.h for examples of how it
> instantiates NumericTraits for other scalar types.
>
> Why are you using an image type of itk::Image<long long int,2>?  Is
> there a reason for trying to get 64 or 128-bit integer precision?
> There isn't any file format I know of that supports long long int as a
> pixel type.
>
>
> Not every compiler in the world supports 'long long', which explains why
>
> On Dec 20, 2007 3:02 PM, John Breen <johnbreen at gmail.com> wrote:
> > I am having some trouble building vtkITK.
> >
> > Latest CVS Builds of VTK and ITK (maybe this is my problem)
> >
> > Linux 2.6.23.8-34.fc7 #1 SMP Thu Nov 22 20:39:56 EST 2007 x86_64 x86_64
> > x86_64 GNU/Linux
> >
> > johnbreen at aml _d6_1 ~/johnbreen/SIGN/libs/vtkITK: > make
> > [  0%] Building CXX object
> > libs/vtkITK/CMakeFiles/vtkITK.dir/vtkITKLevelTracingImageFilter.o
> >
> /home/johnbreen/johnbreen/SIGN/libs/vtkITK/itkLevelTracingImageFilter.txx:
> > In constructor 'itk::LevelTracingImageFunction<TInputImage,
> > TCoordRep>::LevelTracingImageFunction() [with TInputImage =
> itk::Image<long
> > long int, 2u>, TCoordRep = double]':
> >
> /home/johnbreen/johnbreen/SIGN/libs/vtkITK/itkLevelTracingImageFilter.txx:30:
> > instantiated from 'static
> > itk::SmartPointer<itk::LevelTracingImageFunction<TInputImage, TCoordRep>
> >
> > itk::LevelTracingImageFunction<TInputImage, TCoordRep>::New() [with
> > TInputImage = itk::Image<long long int, 2u>, TCoordRep = double]'
> >
> /home/johnbreen/johnbreen/SIGN/libs/vtkITK/itkLevelTracingImageFilter.txx:466:
> > instantiated from 'void itk::LevelTracingImageFilter<TInputImage,
> > TOutputImage>::Trace(const itk::LevelTracingImageFilter<TInputImage,
> > TOutputImage>::DispatchBase&) [with TInputImage = itk::Image<long long
> int,
> > 2u>, TOutputImage = itk::Image<long long int, 2u>]'
> >
> /home/johnbreen/johnbreen/SIGN/libs/vtkITK/vtkITKLevelTracingImageFilter.cxx:356:
> > instantiated from here
> >
> /home/johnbreen/johnbreen/SIGN/libs/vtkITK/itkLevelTracingImageFilter.txx:148:
> > error: no matching function for call to 'itk::NumericTraits<long long
> > int>::min()'
> > /home/johnbreen/johnbreen/Insight/Code/Common/itkNumericTraits.h:109:
> note:
> > candidates are: static T itk::NumericTraits<T>::min(const T&) [with T =
> long
> > long int]
> >
> /home/johnbreen/johnbreen/SIGN/libs/vtkITK/itkLevelTracingImageFilter.txx:
> > In member function 'bool itk::LevelTracingImageFunction<TInputImage,
> > TCoordRep>::EvaluateAtIndex(const typename
> itk::ImageFunction<TInputImage,
> > bool, TCoordRep>::IndexType&) const [with TInputImage = itk::Image<long
> long
> > int, 2u>, TCoordRep = double]':
> >
> /home/johnbreen/johnbreen/SIGN/libs/vtkITK/vtkITKLevelTracingImageFilter.cxx:357:
> > instantiated from here
> >
> /home/johnbreen/johnbreen/SIGN/libs/vtkITK/itkLevelTracingImageFilter.txx:103:
> > error: no matching function for call to 'itk::NumericTraits<long long
> > int>::min()'
> > /home/johnbreen/johnbreen/Insight/Code/Common/itkNumericTraits.h:109:
> note:
> > candidates are: static T itk::NumericTraits<T>::min(const T&) [with T =
> long
> > long int]
> > make[2]: ***
> > [libs/vtkITK/CMakeFiles/vtkITK.dir/vtkITKLevelTracingImageFilter.o]
> Error 1
> > make[1]: *** [libs/vtkITK/CMakeFiles/vtkITK.dir/all] Error 2
> > make: *** [all] Error 2
> > johnbreen at aml_d6_1 ~/johnbreen/SIGN/libs/vtkITK: >
> >
> >
> > johnbreen at aml_d6_1 ~/johnbreen/SIGN/libs/vtkITK: > svn info
> > Path: .
> > URL: http://www.na-mic.org/svn/Slicer3/trunk/Libs/vtkITK
> > Repository Root: http://www.na-mic.org/svn/Slicer3
> > Repository UUID: 3bd1e089-480b-0410-8dfb-8563597acbee
> > Revision: 5303
> > Node Kind: directory
> > Schedule: normal
> > Last Changed Author: millerjv
> > Last Changed Rev: 5154
> > Last Changed Date: 2007-12-11 12:46:23 -0500 (Tue, 11 Dec 2007)
> >
> >
> > Any ideas would be helpful.
> > Thanks,
> > --John
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20071221/a56a977d/attachment.html


More information about the Insight-users mailing list