ANTsX / ANTs

Advanced Normalization Tools (ANTs)
Apache License 2.0
1.21k stars 381 forks source link

build fails on opensuse 13.1 #101

Closed weiliu620 closed 10 years ago

weiliu620 commented 10 years ago

Today I tried to compile the latest 'master' branch and found the compile error. I attached the output of the make below. I use gcc 4.8.1 on opensuse 13.1, 64 bit.

In file included from /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkMath.h:33:0, from /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkIndex.h:23, from /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkContinuousIndex.h:22, from /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkImageRegion.h:34, from /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkImageBase.h:33, from /scratch/packages/ANTs/Examples/../Utilities/antsAllocImage.h:3, from /scratch/packages/ANTs/Examples/antsUtilities.h:12, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:13, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h: In member function ‘void itk::Concept::HasNumericTraits::Constraints::constraints()’: /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:594:59: warning: typedef ‘ValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumericTraits< T >::ValueType ValueType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:595:59: warning: typedef ‘PrintType’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumericTraits< T >::PrintType PrintType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:596:59: warning: typedef ‘AbsType’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumericTraits< T >::AbsType AbsType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:597:59: warning: typedef ‘AccumulateType’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumericTraits< T >::AccumulateType AccumulateType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:598:59: warning: typedef ‘RealType’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumericTraits< T >::RealType RealType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:599:59: warning: typedef ‘ScalarRealType’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumericTraits< T >::ScalarRealType ScalarRealType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:600:59: warning: typedef ‘FloatType’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumericTraits< T >::FloatType FloatType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h: In member function ‘void itk::Concept::HasPixelTraits::Constraints::constraints()’: /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:628:52: warning: typedef ‘ValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename PixelTraits< T >::ValueType ValueType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h: In member function ‘void itk::Concept::HasValueType::Constraints::constraints()’: /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:643:37: warning: typedef ‘ValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename T::ValueType ValueType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h: In member function ‘void itk::Concept::HasJoinTraits<T1, T2>::Constraints::constraints()’: /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:672:56: warning: typedef ‘ValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename JoinTraits< T1, T2 >::ValueType ValueType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Filtering/MathematicalMorphology/include/itkMovingHistogramImageFilter.h:162:0, from /scratch/packages/antsbin/ITKv4/Modules/Filtering/MathematicalMorphology/include/itkMovingHistogramMorphologyImageFilter.h:22, from /scratch/packages/antsbin/ITKv4/Modules/Filtering/MathematicalMorphology/include/itkMovingHistogramDilateImageFilter.h:21, from /scratch/packages/antsbin/ITKv4/Modules/Filtering/MathematicalMorphology/include/itkGrayscaleDilateImageFilter.h:22, from /scratch/packages/ANTs/Examples/antsUtilities.h:27, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:13, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Filtering/MathematicalMorphology/include/itkMovingHistogramImageFilter.hxx: In member function ‘void itk::MovingHistogramImageFilter<TInputImage, TOutputImage, TKernel, THistogram>::ThreadedGenerateData(const OutputImageRegionType&, itk::ThreadIdType)’: /scratch/packages/antsbin/ITKv4/Modules/Filtering/MathematicalMorphology/include/itkMovingHistogramImageFilter.hxx:99:50: warning: typedef ‘OutputIteratorType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageRegionIterator< OutputImageType > OutputIteratorType; ^ In file included from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:13:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/ANTs/Examples/antsUtilities.h: In function ‘void ants::GetAffineTransformFromImage(const typename ImageType::Pointer&, typename AffineTransform::Pointer&)’: /scratch/packages/ANTs/Examples/antsUtilities.h:394:53: warning: typedef ‘SpacingType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ImageType::SpacingType SpacingType; ^ /scratch/packages/ANTs/Examples/antsUtilities.h: In function ‘void ants::GetLargestSizeAfterWarp(typename WarperType::Pointer&, typename ImageType::Pointer&, typename ImageType::SizeType&, typename ImageType::PointType&)’: /scratch/packages/ANTs/Examples/antsUtilities.h:421:41: warning: typedef ‘SizeType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ImageType::SizeType SizeType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkLinearInterpolateImageFunction.h:529:0, from /scratch/packages/antsbin/ITKv4/Modules/Filtering/ImageGrid/include/itkWarpImageFilter.h:22, from /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:14, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:21, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkLinearInterpolateImageFunction.hxx: In member function ‘virtual itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::OutputType itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::EvaluateUnoptimized(const ContinuousIndexType&) const’: /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkLinearInterpolateImageFunction.hxx:91:62: warning: typedef ‘RealTypeScalarRealType’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumericTraits< RealType >::ScalarRealType RealTypeScalarRealType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkLinearInterpolateImageFunction.hxx:99:68: warning: typedef ‘InputPixelScalarRealType’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumericTraits< InputPixelType >::ScalarRealType InputPixelScalarRealType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Core/Transform/include/itkMatrixOffsetTransformBase.h:533:0, from /scratch/packages/antsbin/ITKv4/Modules/Core/Transform/include/itkAffineTransform.h:21, from /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:16, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:21, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Core/Transform/include/itkMatrixOffsetTransformBase.hxx: In member function ‘virtual void itk::MatrixOffsetTransformBase<TScalar, NInputDimensions, NOutputDimensions>::SetFixedParameters(const ParametersType&)’: /scratch/packages/antsbin/ITKv4/Modules/Core/Transform/include/itkMatrixOffsetTransformBase.hxx:543:46: warning: typedef ‘ParameterValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ParametersType::ValueType ParameterValueType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkVersor.h:306:0, from /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:10, from /scratch/packages/ANTs/Examples/../Tensor/itkLogTensorImageFilter.h:24, from /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:23, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:21, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkVersor.hxx: In member function ‘void itk::Versor::Set(const VectorType&)’: /scratch/packages/antsbin/ITKv4/Modules/Core/Common/include/itkVersor.hxx:471:46: warning: typedef ‘VectorRealValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename VectorType::RealValueType VectorRealValueType; ^ In file included from /scratch/packages/ANTs/Examples/../Tensor/itkLogTensorImageFilter.h:24:0, from /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:23, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:21, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h: In function ‘TVectorType ChangeTensorByVector(TVectorType, TTensorType, float)’: /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:436:23: warning: typedef ‘VectorType’ locally defined but not used [-Wunused-local-typedefs] typedef TVectorType VectorType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h: In function ‘float GetTensorADC(TTensorType, unsigned int)’: /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:542:33: warning: typedef ‘TensorType’ locally defined but not used [-Wunused-local-typedefs] typedef itk::Vector<float, 6> TensorType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:548:53: warning: typedef ‘TensorImageType’ locally defined but not used [-Wunused-local-typedefs] typedef itk::Image<TensorTypeOut, ImageDimension> TensorImageType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:549:53: warning: typedef ‘TensorImagePointer’ locally defined but not used [-Wunused-local-typedefs] typedef InTensorImageType::Pointer TensorImagePointer; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:552:53: warning: typedef ‘FieldType’ locally defined but not used [-Wunused-local-typedefs] typedef itk::Image<VectorType1, ImageDimension> FieldType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:554:53: warning: typedef ‘readertype’ locally defined but not used [-Wunused-local-typedefs] typedef itk::ImageFileReader readertype; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:555:53: warning: typedef ‘writertype’ locally defined but not used [-Wunused-local-typedefs] typedef itk::ImageFileWriter writertype; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:556:53: warning: typedef ‘IndexType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageType::IndexType IndexType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:557:53: warning: typedef ‘SizeType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageType::SizeType SizeType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:558:53: warning: typedef ‘SpacingType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageType::SpacingType SpacingType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h: In function ‘itk::RGBPixel GetTensorPrincipalEigenvector(TTensorType)’: /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:687:33: warning: typedef ‘TensorType’ locally defined but not used [-Wunused-local-typedefs] typedef itk::Vector<float, 6> TensorType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:693:53: warning: typedef ‘TensorImageType’ locally defined but not used [-Wunused-local-typedefs] typedef itk::Image<TensorTypeOut, ImageDimension> TensorImageType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:694:53: warning: typedef ‘TensorImagePointer’ locally defined but not used [-Wunused-local-typedefs] typedef InTensorImageType::Pointer TensorImagePointer; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:697:53: warning: typedef ‘FieldType’ locally defined but not used [-Wunused-local-typedefs] typedef itk::Image<VectorType1, ImageDimension> FieldType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:699:53: warning: typedef ‘readertype’ locally defined but not used [-Wunused-local-typedefs] typedef itk::ImageFileReader readertype; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:700:53: warning: typedef ‘writertype’ locally defined but not used [-Wunused-local-typedefs] typedef itk::ImageFileWriter writertype; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:701:53: warning: typedef ‘IndexType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageType::IndexType IndexType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:702:53: warning: typedef ‘SizeType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageType::SizeType SizeType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:703:53: warning: typedef ‘SpacingType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageType::SpacingType SpacingType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h: In function ‘itk::Vector<float, 3u> GetTensorPrincipalEigenvector(TTensorType, unsigned int)’: /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:790:33: warning: typedef ‘TensorType’ locally defined but not used [-Wunused-local-typedefs] typedef itk::Vector<float, 6> TensorType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:796:53: warning: typedef ‘TensorImageType’ locally defined but not used [-Wunused-local-typedefs] typedef itk::Image<TensorTypeOut, ImageDimension> TensorImageType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:797:53: warning: typedef ‘TensorImagePointer’ locally defined but not used [-Wunused-local-typedefs] typedef InTensorImageType::Pointer TensorImagePointer; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:800:53: warning: typedef ‘FieldType’ locally defined but not used [-Wunused-local-typedefs] typedef itk::Image<VectorType1, ImageDimension> FieldType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:802:53: warning: typedef ‘readertype’ locally defined but not used [-Wunused-local-typedefs] typedef itk::ImageFileReader readertype; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:803:53: warning: typedef ‘writertype’ locally defined but not used [-Wunused-local-typedefs] typedef itk::ImageFileWriter writertype; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:804:53: warning: typedef ‘IndexType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageType::IndexType IndexType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:805:53: warning: typedef ‘SizeType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageType::SizeType SizeType; ^ /scratch/packages/ANTs/Examples/../Tensor/TensorFunctions.h:806:53: warning: typedef ‘SpacingType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageType::SpacingType SpacingType; ^ In file included from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:21:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h: In function ‘void ReadTensorImage(itk::SmartPointer&, const char, bool)’: /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:156:43: warning: typedef ‘PixType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ImageType::PixelType PixType; ^ /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h: In function ‘bool ReadImage(itk::SmartPointer&, const char)’: /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:214:42: warning: typedef ‘PixelType’ locally defined but not used [-Wunused-local-typedefs] typedef typename TImageType::PixelType PixelType; ^ /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:249:45: warning: typedef ‘PixType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ImageType::PixelType PixType; ^ /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h: In function ‘typename ImageType::Pointer ReadImage(char)’: /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:281:43: warning: typedef ‘PixType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ImageType::PixelType PixType; ^ /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h: In function ‘typename ImageType::Pointer ReadTensorImage(char, bool)’: /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:312:59: warning: typedef ‘PixType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ImageType::PixelType PixType; ^ /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h: In function ‘bool ReadPointSet(itk::SmartPointer&, const char, bool, float)’: /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:348:41: warning: typedef ‘PixelType’ locally defined but not used [-Wunused-local-typedefs] typedef typename TPointSet::PixelType PixelType; ^ /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h: In function ‘void WriteTensorImage(itk::SmartPointer, const char, bool)’: /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:476:61: warning: typedef ‘PixType’ locally defined but not used [-Wunused-local-typedefs] typedef typename TImageType::PixelType PixType; ^ /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h: In function ‘void WriteDisplacementField(TField, std::string)’: /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:600:41: warning: typedef ‘VectorType’ locally defined but not used [-Wunused-local-typedefs] typedef typename FieldType::PixelType VectorType; ^ /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h: In function ‘void WriteDisplacementField2(TField, std::string, std::string)’: /scratch/packages/ANTs/Examples/../Utilities/ReadWriteData.h:635:41: warning: typedef ‘VectorType’ locally defined but not used [-Wunused-local-typedefs] typedef typename FieldType::PixelType VectorType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.h:255:0, from /scratch/packages/antsbin/ITKv4/Modules/Registration/Metricsv4/include/itkDefaultImageToImageMetricTraitsv4.h:23, from /scratch/packages/antsbin/ITKv4/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h:33, from /scratch/packages/antsbin/ITKv4/Modules/Registration/Metricsv4/include/itkANTSNeighborhoodCorrelationImageToImageMetricv4.h:21, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:24, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.hxx: In member function ‘void itk::CentralDifferenceImageFunction<TInputImage, TCoordRep, TOutputType>::EvaluateSpecialized(const PointType&, itk::CentralDifferenceImageFunction<TInputImage, TCoordRep, TOutputType>::OutputType&, itk::CentralDifferenceImageFunction<TInputImage, TCoordRep, TOutputType>::OutputTypeSpecializationStructType<typename itk::ImageFunction<TInputImage, TOutputType, TCoordRep>::OutputType>) const’: /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.hxx:289:51: warning: typedef ‘ContinuousIndexValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ContinuousIndexType::ValueType ContinuousIndexValueType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.hxx: In member function ‘void itk::CentralDifferenceImageFunction<TInputImage, TCoordRep, TOutputType>::EvaluateSpecialized(const PointType&, itk::CentralDifferenceImageFunction<TInputImage, TCoordRep, TOutputType>::OutputType&, itk::CentralDifferenceImageFunction<TInputImage, TCoordRep, TOutputType>::OutputTypeSpecializationStructType) const’: /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.hxx:357:51: warning: typedef ‘DerivativeValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename OutputType::ValueType DerivativeValueType; ^ /scratch/packages/antsbin/ITKv4/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.hxx:358:51: warning: typedef ‘ContinuousIndexValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ContinuousIndexType::ValueType ContinuousIndexValueType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Filtering/DisplacementField/include/itkDisplacementFieldToBSplineImageFilter.h:232:0, from /scratch/packages/antsbin/ITKv4/Modules/Filtering/DisplacementField/include/itkBSplineExponentialDiffeomorphicTransform.h:22, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:26, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Filtering/DisplacementField/include/itkDisplacementFieldToBSplineImageFilter.hxx: In member function ‘void itk::DisplacementFieldToBSplineImageFilter<TInputImage, TOutputImage>::GenerateData()’: /scratch/packages/antsbin/ITKv4/Modules/Filtering/DisplacementField/include/itkDisplacementFieldToBSplineImageFilter.hxx:88:57: warning: typedef ‘ImporterRegionType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ImporterOutputImageType::RegionType ImporterRegionType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Core/Transform/include/itkTranslationTransform.h:274:0, from /scratch/packages/antsbin/ITKv4/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesEstimator.h:23, from /scratch/packages/antsbin/ITKv4/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesFromShiftBase.h:21, from /scratch/packages/antsbin/ITKv4/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesFromPhysicalShift.h:21, from /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.hxx:31, from /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.h:399, from /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkSyNImageRegistrationMethod.h:21, from /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkBSplineSyNImageRegistrationMethod.h:21, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:30, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Core/Transform/include/itkTranslationTransform.hxx: In member function ‘void itk::TranslationTransform<TScalar, NDimensions>::SetParameters(const ParametersType&)’: /scratch/packages/antsbin/ITKv4/Modules/Core/Transform/include/itkTranslationTransform.hxx:62:46: warning: typedef ‘ParameterValueType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ParametersType::ValueType ParameterValueType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkSyNImageRegistrationMethod.h:211:0, from /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkBSplineSyNImageRegistrationMethod.h:21, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:30, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkSyNImageRegistrationMethod.hxx: In member function ‘virtual void itk::SyNImageRegistrationMethod<TFixedImage, TMovingImage, TOutputTransform>::StartOptimization()’: /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkSyNImageRegistrationMethod.hxx:133:50: warning: typedef ‘DisplacementFieldDuplicatorType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageDuplicator DisplacementFieldDuplicatorType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkBSplineSyNImageRegistrationMethod.h:129:0, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:30, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkBSplineSyNImageRegistrationMethod.hxx: In member function ‘virtual void itk::BSplineSyNImageRegistrationMethod<TFixedImage, TMovingImage, TOutputTransform>::StartOptimization()’: /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkBSplineSyNImageRegistrationMethod.hxx:82:50: warning: typedef ‘DisplacementFieldDuplicatorType’ locally defined but not used [-Wunused-local-typedefs] typedef ImageDuplicator DisplacementFieldDuplicatorType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h:153:0, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:57, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Numerics/Statistics/include/itkImageToHistogramFilter.hxx: In member function ‘void itk::Statistics::ImageToHistogramFilter::AfterThreadedGenerateData()’: /scratch/packages/antsbin/ITKv4/Modules/Numerics/Statistics/include/itkImageToHistogramFilter.hxx:241:59: warning: typedef ‘AbsoluteFrequencyType’ locally defined but not used [-Wunused-local-typedefs] typedef typename HistogramType::AbsoluteFrequencyType AbsoluteFrequencyType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Filtering/DisplacementField/include/itkTimeVaryingVelocityFieldIntegrationImageFilter.h:184:0, from /scratch/packages/antsbin/ITKv4/Modules/Filtering/DisplacementField/include/itkTimeVaryingBSplineVelocityFieldTransform.hxx:27, from /scratch/packages/antsbin/ITKv4/Modules/Filtering/DisplacementField/include/itkTimeVaryingBSplineVelocityFieldTransform.h:191, from /scratch/packages/antsbin/ITKv4/Modules/Registration/RegistrationMethodsv4/include/itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod.h:25, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:77, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Filtering/DisplacementField/include/itkTimeVaryingVelocityFieldIntegrationImageFilter.hxx: In member function ‘virtual void itk::TimeVaryingVelocityFieldIntegrationImageFilter<TTimeVaryingVelocityField, TDisplacementField>::GenerateOutputInformation()’: /scratch/packages/antsbin/ITKv4/Modules/Filtering/DisplacementField/include/itkTimeVaryingVelocityFieldIntegrationImageFilter.hxx:96:57: warning: typedef ‘RegionType’ locally defined but not used [-Wunused-local-typedefs] typedef typename DisplacementFieldType::RegionType RegionType; ^ In file included from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h: At global scope: /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:139:79: error: wrong number of template arguments (3, should be 2) typedef itk::PointSetToPointSetMetricv4<PointSetType, PointSetType, RealType> PointSetMetricType; ^ In file included from /scratch/packages/antsbin/ITKv4/Modules/Registration/Metricsv4/include/itkEuclideanDistancePointSetToPointSetMetricv4.h:21:0, from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:42, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Registration/Metricsv4/include/itkPointSetToPointSetMetricv4.h:70:7: error: provided for ‘template<class TFixedPointSet, class TMovingPointSet> class itk::PointSetToPointSetMetricv4’ class PointSetToPointSetMetricv4 ^ In file included from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h: In member function ‘void ants::RegistrationHelper<TComputeType, VImageDimension>::AddMetric(ants::RegistrationHelper<TComputeType, VImageDimension>::MetricEnumeration, ants::RegistrationHelper<TComputeType, VImageDimension>::ImageType, ants::RegistrationHelper<TComputeType, VImageDimension>::ImageType, unsigned int, ants::RegistrationHelper<TComputeType, VImageDimension>::RealType, ants::RegistrationHelper<TComputeType, VImageDimension>::SamplingStrategy, int, unsigned int, ants::RegistrationHelper<TComputeType, VImageDimension>::RealType)’: /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:455:59: error: ‘ITK_NULLPTR’ was not declared in this scope this->AddMetric( metricType, fixedImage, movingImage, ITK_NULLPTR, ITK_NULLPTR, ^ In file included from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:983:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx: In member function ‘int ants::RegistrationHelper<TComputeType, VImageDimension>::DoRegistration()’: /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1006:55: error: ‘ITK_NULLPTR’ was not declared in this scope typename ImageMetricType::Pointer imageMetric = ITK_NULLPTR; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1007:16: error: ‘PointSetMetricType’ is not a class or namespace typename PointSetMetricType::Pointer pointSetMetric = ITK_NULLPTR; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1007:44: error: expected ‘(’ before ‘pointSetMetric’ typename PointSetMetricType::Pointer pointSetMetric = ITK_NULLPTR; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1007:44: error: expected ‘;’ before ‘pointSetMetric’ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1101:104: error: wrong number of template arguments (3, should be 2) typedef itk::EuclideanDistancePointSetToPointSetMetricv4<PointSetType, PointSetType, RealType> IcpPointSetMetricType; ^ In file included from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:42:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Registration/Metricsv4/include/itkEuclideanDistancePointSetToPointSetMetricv4.h:42:7: error: provided for ‘template<class TFixedPointSet, class TMovingPointSet> class itk::EuclideanDistancePointSetToPointSetMetricv4’ class EuclideanDistancePointSetToPointSetMetricv4: ^ In file included from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:983:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1101:127: error: invalid type in declaration before ‘;’ token typedef itk::EuclideanDistancePointSetToPointSetMetricv4<PointSetType, PointSetType, RealType> IcpPointSetMetricType; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1102:20: error: ‘IcpPointSetMetricType’ is not a class or namespace typename IcpPointSetMetricType::Pointer icpMetric = IcpPointSetMetricType::New(); ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1102:51: error: expected ‘(’ before ‘icpMetric’ typename IcpPointSetMetricType::Pointer icpMetric = IcpPointSetMetricType::New(); ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1102:51: error: expected ‘;’ before ‘icpMetric’ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1104:11: error: ‘pointSetMetric’ was not declared in this scope pointSetMetric = icpMetric; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1104:28: error: ‘icpMetric’ was not declared in this scope pointSetMetric = icpMetric; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1112:103: error: wrong number of template arguments (3, should be 2) typedef itk::ExpectationBasedPointSetToPointSetMetricv4<PointSetType, PointSetType, RealType> PsePointSetMetricType; ^ In file included from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:45:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Registration/Metricsv4/include/itkExpectationBasedPointSetToPointSetMetricv4.h:44:7: error: provided for ‘template<class TFixedPointSet, class TMovingPointSet> class itk::ExpectationBasedPointSetToPointSetMetricv4’ class ExpectationBasedPointSetToPointSetMetricv4: ^ In file included from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:983:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1112:126: error: invalid type in declaration before ‘;’ token typedef itk::ExpectationBasedPointSetToPointSetMetricv4<PointSetType, PointSetType, RealType> PsePointSetMetricType; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1113:20: error: ‘PsePointSetMetricType’ is not a class or namespace typename PsePointSetMetricType::Pointer pseMetric = PsePointSetMetricType::New(); ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1113:51: error: expected ‘(’ before ‘pseMetric’ typename PsePointSetMetricType::Pointer pseMetric = PsePointSetMetricType::New(); ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1113:51: error: expected ‘;’ before ‘pseMetric’ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1114:11: error: ‘pseMetric’ was not declared in this scope pseMetric->SetPointSetSigma( stageMetricList[currentMetricNumber].m_PointSetSigma ); ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1117:11: error: ‘pointSetMetric’ was not declared in this scope pointSetMetric = pseMetric; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1125:99: error: wrong number of template arguments (2, should be 1) typedef itk::JensenHavrdaCharvatTsallisPointSetToPointSetMetricv4<PointSetType, RealType> JhctPointSetMetricType; ^ In file included from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:60:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/antsbin/ITKv4/Modules/Registration/Metricsv4/include/itkJensenHavrdaCharvatTsallisPointSetToPointSetMetricv4.h:71:7: error: provided for ‘template class itk::JensenHavrdaCharvatTsallisPointSetToPointSetMetricv4’ class JensenHavrdaCharvatTsallisPointSetToPointSetMetricv4 : ^ In file included from /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.h:983:0, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:14, from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1: /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1125:123: error: invalid type in declaration before ‘;’ token typedef itk::JensenHavrdaCharvatTsallisPointSetToPointSetMetricv4<PointSetType, RealType> JhctPointSetMetricType; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1126:20: error: ‘JhctPointSetMetricType’ is not a class or namespace typename JhctPointSetMetricType::Pointer jhctMetric = JhctPointSetMetricType::New(); ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1126:52: error: expected ‘(’ before ‘jhctMetric’ typename JhctPointSetMetricType::Pointer jhctMetric = JhctPointSetMetricType::New(); ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1126:52: error: expected ‘;’ before ‘jhctMetric’ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1127:11: error: ‘jhctMetric’ was not declared in this scope jhctMetric->SetPointSetSigma( stageMetricList[currentMetricNumber].m_PointSetSigma ); ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1134:11: error: ‘pointSetMetric’ was not declared in this scope pointSetMetric = jhctMetric; ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1233:11: error: ‘pointSetMetric’ was not declared in this scope pointSetMetric->SetVirtualDomainFromImage( ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1234:35: error: ‘PointSetMetricType’ is not a class or namespace dynamiccast<typename PointSetMetricType::VirtualImageType *>( ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1234:72: error: expected ‘>’ before ‘’ token dynamiccast<typename PointSetMetricType::VirtualImageType *>( ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1234:72: error: expected ‘(’ before ‘’ token /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1234:73: error: expected primary-expression before ‘>’ token dynamic_cast<typename PointSetMetricType::VirtualImageType *>( ^ /scratch/packages/ANTs/Examples/itkantsRegistrationHelper.hxx:1239:35: error: ‘pointSetMetric’ was not declared in this scope multiMetric->AddMetric( pointSetMetric ); ^ In file included from /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1:0: /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h: In function ‘int ants::DoRegistration(itk::ants::CommandLineParser::Pointer&)’: /scratch/packages/ANTs/Examples/antsRegistrationTemplateHeader.h:780:46: error: ‘ITK_NULLPTR’ was not declared in this scope typename ImageType::Pointer fixedImage = ITK_NULLPTR; ^ make[5]: * [Examples/CMakeFiles/antsUtilities.dir/antsRegistrationTemplateHeader.cxx.o] Error 1 make[4]: * [Examples/CMakeFiles/antsUtilities.dir/all] Error 2 make[3]: * [all] Error 2 make[2]: * [ANTS-prefix/src/ANTS-stamp/ANTS-build] Error 2 make[1]: * [CMakeFiles/ANTS.dir/all] Error 2 make: * [all] Error 2

ntustison commented 10 years ago

Did you make sure that your ITK repo is updating as well? Those errors indicate that your ITK version is not up to date.

weiliu620 commented 10 years ago

Hi Nick,

I remember I did a super-build. Doesn't mean the ccmake and make will take care of the version of ITK?

Thanks, Wei

On Thu, Jul 17, 2014 at 3:51 PM, Nick Tustison notifications@github.com wrote:

Did you make sure that your ITK repo is updating as well? Those errors indicate that your ITK version is not up to date.

— Reply to this email directly or view it on GitHub https://github.com/stnava/ANTs/issues/101#issuecomment-49371676.

stnava commented 10 years ago

you should build cleanly from a fresh checkout, if super build On Jul 17, 2014 5:56 PM, "weiliu620" notifications@github.com wrote:

Hi Nick,

I remember I did a super-build. Doesn't mean the ccmake and make will take care of the version of ITK?

Thanks, Wei

On Thu, Jul 17, 2014 at 3:51 PM, Nick Tustison notifications@github.com wrote:

Did you make sure that your ITK repo is updating as well? Those errors indicate that your ITK version is not up to date.

— Reply to this email directly or view it on GitHub https://github.com/stnava/ANTs/issues/101#issuecomment-49371676.

— Reply to this email directly or view it on GitHub https://github.com/stnava/ANTs/issues/101#issuecomment-49372148.

ntustison commented 10 years ago

It should if you've set your cmake variables correctly. Regardless, though errors are due to an outdated ITK version.

weiliu620 commented 10 years ago

After rebuilding ITK with "review" module on, I can build ANTS no errors.

Thanks, Wei

On Thu, Jul 17, 2014 at 3:57 PM, Nick Tustison notifications@github.com wrote:

Closed #101 https://github.com/stnava/ANTs/issues/101.

— Reply to this email directly or view it on GitHub https://github.com/stnava/ANTs/issues/101#event-142879499.