[Insight-users] vtkITK Linux Compile Issues

kent williams nkwmailinglists at gmail.com
Thu Dec 20 16:41:30 EST 2007


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
>
>


More information about the Insight-users mailing list