[Insight-users] Compiling with ITK 2.0.1
mhg at unizar.es
mhg at unizar.es
Mon Jun 6 06:29:19 EDT 2005
Hello:
We have a library that works perfectly on ITK 1.6. Now, we are trying to
switch to ITK 2.0.1 but we get some errors about casting. We try to solve this,
but no luck. Could somebody help us? Any suggestions?
Thank you very much in advance:
Mónica
PD: Here I attach the errors in Windows, Linux and Linux in an Altix 350 with
it's respective compilers (.NET 2003, gcc 3.2.2, icc 8.1).
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Windows Errors with MVS .NET 2003
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
------ Build started: Project: smlEvaluation, Configuration: Debug Win32 ------
Compiling...
smlTestBattery.cpp
c:\CILab\ITK\Code\Common\itkConstNeighborhoodIterator.txx(543) : error C2440:
'const_cast' : cannot convert from 'const
itk::WeakPointer<TObjectType>::ObjectType *' to
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::ImageType *'
with
[
TObjectType=const itk::Image<double,2>::Self
]
and
[
TImage=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ImageType,
TBoundaryCondition=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ConstantBoundaryConditionType
]
Conversion from pointer to base class to pointer to derived class
requires an explicit cast (other than const_cast)
C:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(267) : while compiling class-template member function
'void
itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::SetPixelPointers(const
itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::IndexType &)'
with
[
TImage=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ImageType,
TBoundaryCondition=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ConstantBoundaryConditionType
]
c:\CILab\code\BaseLib\image\imageUtilities\blNeighborhoodImageProduct.h(120) :
see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled
with
[
TImage=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ImageType,
TBoundaryCondition=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ConstantBoundaryConditionType
]
c:\CILab\code\SMoLib\libmodules\iamodel\ASMiamodel\smlOFASMFeatureVectorGenerator.h(469)
: see reference to class template instantiation
'blNeighborhoodImageProduct<TImage,TNeighborhoodMask>' being compiled
with
[
TImage=smlOFASMFeatureVectorGenerator::DoubleImageType,
TNeighborhoodMask=smlOFASMFeatureVectorGenerator::GaussianWindowType
]
Build log was saved at
"file://c:\CILab\code\SMoLib\bin\evaluation\Debug\BuildLog.htm"
smlEvaluation - 1 error(s), 0 warning(s)
------ Build started: Project: smlASMMatcher, Configuration: Debug Win32 ------
Compiling...
smlOGASMMatcher.cpp
c:\CILab\ITK\Code\Common\itkConstNeighborhoodIterator.txx(543) : error C2440:
'const_cast' : cannot convert from 'const
itk::WeakPointer<TObjectType>::ObjectType *' to
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::ImageType *'
with
[
TObjectType=const
itk::Image<smlOGASMFeatureVectorGenerator::TRealNumber,2>::Self
]
and
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType>::InputImageType>
]
Conversion from pointer to base class to pointer to derived class
requires an explicit cast (other than const_cast)
C:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(1063) : while compiling class-template member function
'void
itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::SetPixelPointers(const
itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::IndexType &)'
with
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType>::InputImageType>
]
c:\CILab\ITK\Code\Common\itkNeighborhoodIterator.h(213) : see reference
to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled
with
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,itk::DiscreteGaussianImageFilter<smlOGASMFeature
VectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType>::InputImageType>
]
c:\CILab\ITK\Code\Common\itkNeighborhoodAlgorithm.h(38) : see reference
to class template instantiation 'itk::NeighborhoodIterator<TImage>' being compiled
with
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType>::InputImageType
]
c:\CILab\ITK\Code\BasicFilters\itkNeighborhoodOperatorImageFilter.txx(90) : see
reference to class template instantiation
'itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TImage>' being compiled
with
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType>::InputImageType
]
C:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(267) : while compiling class-template member function
'void
itk::NeighborhoodOperatorImageFilter<TInputImage,TOutputImage>::ThreadedGenerateData(const
itk::NeighborhoodOperatorImageFilter<TInputImage,TOutputImage>::OutputImageRegionType
&,int)'
with
[
TInputImage=itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,
TOutputImage=itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType
]
c:\CILab\ITK\Code\BasicFilters\itkDiscreteGaussianImageFilter.txx(127) :
see reference to class template
instantiation 'itk::NeighborhoodOperatorImageFilter<TInputImage,TOutputImage>'
being compiled
with
[
TInputImage=itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::InputImageType,
TOutputImage=itk::DiscreteGaussianImageFilter<smlOGASMFeatureVectorGenerator::TRealImage,smlOGASMFeatureVectorGenerator::TRealImage>::OutputImageType
]
C:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\xmemory(156) : while compiling class-template member function
'void
itk::DiscreteGaussianImageFilter<TInputImage,TOutputImage>::GenerateData(void)'
with
[
TInputImage=smlOGASMFeatureVectorGenerator::TRealImage,
TOutputImage=smlOGASMFeatureVectorGenerator::TRealImage
]
c:\CILab\ITK\Code\Algorithms\itkMultiResolutionPyramidImageFilter.txx(274) : see
reference to class template instantiation
'itk::DiscreteGaussianImageFilter<TInputImage,TOutputImage>' being compiled
with
[
TInputImage=smlOGASMFeatureVectorGenerator::TRealImage,
TOutputImage=smlOGASMFeatureVectorGenerator::TRealImage
]
C:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(267) : while compiling class-template member function
'void
itk::MultiResolutionPyramidImageFilter<TInputImage,TOutputImage>::GenerateData(void)'
with
[
TInputImage=smlOGASMFeatureVectorGenerator::TUcharImage,
TOutputImage=smlOGASMFeatureVectorGenerator::TRealImage
]
c:\CILab\ITK\Code\Algorithms\itkRecursiveMultiResolutionPyramidImageFilter.h(59)
: see reference to class template instantiation
'itk::MultiResolutionPyramidImageFilter<TInputImage,TOutputImage>' being compiled
with
[
TInputImage=smlOGASMFeatureVectorGenerator::TUcharImage,
TOutputImage=smlOGASMFeatureVectorGenerator::TRealImage
]
c:\CILab\code\BaseLib\image\imageProperties\blIAMultiResolutionFilter.h(70) :
see reference to class template instantiation
'itk::RecursiveMultiResolutionPyramidImageFilter<TInputImage,TOutputImage>'
being compiled
with
[
TInputImage=smlOGASMFeatureVectorGenerator::TUcharImage,
TOutputImage=smlOGASMFeatureVectorGenerator::TRealImage
]
C:\CILab\code\SMoLib\libmodules\iamodel\ASMiamodel\smlOGASMFeatureVectorGenerator.h(632)
: see reference to class template instantiation
'blIAMultiResolutionFilter<InputImageType,OutputImageType>' being compiled
with
[
InputImageType=smlOGASMFeatureVectorGenerator::TUcharImage,
OutputImageType=smlOGASMFeatureVectorGenerator::TRealImage
]
smlOFASMMatcher.cpp
c:\CILab\ITK\Code\Common\itkConstNeighborhoodIterator.txx(543) : error C2440:
'const_cast' : cannot convert from 'const
itk::WeakPointer<TObjectType>::ObjectType *' to
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::ImageType *'
with
[
TObjectType=const itk::Image<double,2>::Self
]
and
[
TImage=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ImageType,
TBoundaryCondition=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ConstantBoundaryConditionType
]
Conversion from pointer to base class to pointer to derived class
requires an explicit cast (other than const_cast)
C:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(267) : while compiling class-template member function
'void
itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::SetPixelPointers(const
itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::IndexType &)'
with
[
TImage=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ImageType,
TBoundaryCondition=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ConstantBoundaryConditionType
]
c:\CILab\code\BaseLib\image\imageUtilities\blNeighborhoodImageProduct.h(120) :
see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled
with
[
TImage=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ImageType,
TBoundaryCondition=blNeighborhoodImageProduct<smlOFASMFeatureVectorGenerator::DoubleImageType,smlOFASMFeatureVectorGenerator::GaussianWindowType>::ConstantBoundaryConditionType
]
C:\CILab\code\SMoLib\libmodules\iamodel\ASMiamodel\smlOFASMFeatureVectorGenerator.h(469)
: see reference to class template instantiation
'blNeighborhoodImageProduct<TImage,TNeighborhoodMask>' being compiled
with
[
TImage=smlOFASMFeatureVectorGenerator::DoubleImageType,
TNeighborhoodMask=smlOFASMFeatureVectorGenerator::GaussianWindowType
]
smlASMMatcher.cpp
c:\CILab\ITK\Code\Common\itkConstNeighborhoodIterator.txx(543) : error C2440:
'const_cast' : cannot convert from 'const
itk::WeakPointer<TObjectType>::ObjectType *' to
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::ImageType *'
with
[
TObjectType=const itk::Image<double,2>::Self
]
and
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType>::InputImageType>
]
Conversion from pointer to base class to pointer to derived class
requires an explicit cast (other than const_cast)
c:\CILab\ITK\Code\Common\itkNeighborhoodAllocator.h(114) : while
compiling class-template member function 'void
itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::SetPixelPointers(const
itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::IndexType &)'
with
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType>::InputImageType>
]
c:\CILab\ITK\Code\Common\itkNeighborhoodIterator.h(213) : see reference
to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled
with
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType>::InputImageType>
]
c:\CILab\ITK\Code\Common\itkNeighborhoodAlgorithm.h(38) : see reference
to class template in
stantiation 'itk::NeighborhoodIterator<TImage>' being compiled
with
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType>::InputImageType
]
c:\CILab\ITK\Code\BasicFilters\itkNeighborhoodOperatorImageFilter.txx(90) : see
reference to class template instantiation
'itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TImage>' being compiled
with
[
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType>::InputImageType
]
c:\CILab\ITK\Code\Common\itkImportImageContainer.h(87) : while compiling
class-template member function 'void
itk::NeighborhoodOperatorImageFilter<TInputImage,TOutputImage>::ThreadedGenerateData(const
itk::NeighborhoodOperatorImageFilter<TInputImage,TOutputImage>::OutputImageRegionType
&,int)'
with
[
TInputImage=itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,
TOutputImage=itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType
]
c:\CILab\ITK\Code\BasicFilters\itkDiscreteGaussianImageFilter.txx(127) :
see reference to class template instantiation
'itk::NeighborhoodOperatorImageFilter<TInputImage,TOutputImage>' being compiled
with
[
TInputImage=itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::InputImageType,
TOutputImage=itk::DiscreteGaussianImageFilter<smlASMMatcher::DoubleImageType,smlASMMatcher::DoubleImageType>::OutputImageType
]
C:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\xmemory(156) : while compiling class-template member function
'void
itk::DiscreteGaussianImageFilter<TInputImage,TOutputImage>::GenerateData(void)'
with
[
TInputImage=smlASMMatcher::DoubleImageType,
TOutputImage=smlASMMatcher::DoubleImageType
]
c:\CILab\ITK\Code\Algorithms\itkMultiResolutionPyramidImageFilter.txx(274) : see
reference to class template instantiation
'itk::DiscreteGaussianImageFilter<TInputImage,TOutputImage>' being compiled
with
[
TInputImage=smlASMMatcher::DoubleImageType,
TOutputImage=smlASMMatcher::DoubleImageType
]
C:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(267) : while compiling class-template member function
'void itk::MultiResolutionPyramidImageFilter<TInputImage,TOut
putImage>::GenerateData(void)'
with
[
TInputImage=smlASMMatcher::ImageType,
TOutputImage=smlASMMatcher::DoubleImageType
]
c:\CILab\ITK\Code\Algorithms\itkRecursiveMultiResolutionPyramidImageFilter.h(59)
: see reference to class template instantiation
'itk::MultiResolutionPyramidImageFilter<TInputImage,TOutputImage>' being compiled
with
[
TInputImage=smlASMMatcher::ImageType,
TOutputImage=smlASMMatcher::DoubleImageType
]
c:\CILab\code\BaseLib\image\imageProperties\blIAMultiResolutionFilter.h(70) :
see reference to class template instantiation
'itk::RecursiveMultiResolutionPyramidImageFilter<TInputImage,TOutputImage>'
being compiled
with
[
TInputImage=smlASMMatcher::ImageType,
TOutputImage=smlASMMatcher::DoubleImageType
]
\CILab\code\SMoLib\libmodules\matcher\ASMmatcher\smlASMMatcher.cpp(422)
: see reference to class template instantiation
'blIAMultiResolutionFilter<InputImageType,OutputImageType>' being compiled
with
[
InputImageType=smlASMMatcher::ImageType,
OutputImageType=smlASMMatcher::DoubleImageType
]
Generating Code...
Build log was saved at
"file://c:\CILab\code\SMoLib\bin\libmodules\matcher\ASMmatcher\Debug\BuildLog.htm"
smlASMMatcher - 3 error(s), 0 warning(s)
... and more ...
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Linux Errors Red Hat 9
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Building dependencies. cmake.depends...
cmake.depends is up-to-date
/home/xmellado/code/SMoLib/bin/libmodules: building default_target
Building dependencies. cmake.depends...
cmake.depends is up-to-date
/home/xmellado/code/SMoLib/bin/libmodules/dataclassifier: building default_target
Building dependencies. cmake.depends...
Building object file smlDataClassifier.o...
Building object file smlMVNeuralNetwork.o...
Building object file smlKNN.o...
Building object file smlDistanceWeightedKNN.o...
Building object file smlFeaturesSelector.o...
Building object file smlSequentialFeaturesSearch.o...
Building object file smlEuclideanClassifier.o...
Building object file smlVectorAngleClassifier.o...
Building object file smlMahalanobisClassifier.o...
Building static library /home/xmellado/code/SMoLib/bin/lib/libsmlDataClassifier.a...
/home/xmellado/code/SMoLib/bin/libmodules/iamodel: building default_target
Building dependencies. cmake.depends...
cmake.depends is up-to-date
/home/xmellado/code/SMoLib/bin/libmodules/iamodel/ASMiamodel: building
default_target
Building dependencies. cmake.depends...
Building object file smlIAModel.o...
Building object file smlIAModelBuilder.o...
/extra/local/include/InsightToolkit/Common/itkConstNeighborhoodIterator.txx: In
member function `void itk::ConstNeighborhoodIterator<TImage,
TBoundaryCondition>::SetPixelPointers(const
itk::Index<itk::ConstNeighborhoodIterator<TImage,
TBoundaryCondition>::Dimension>&) [with TImage = blImage<double, 2>,
TBoundaryCondition = itk::ZeroFluxNeumannBoundaryCondition<blImage<double,
2> >]':
/extra/local/include/InsightToolkit/Common/itkConstNeighborhoodIterator.h:333:
instantiated from `void itk::ConstNeighborhoodIterator<TImage,
TBoundaryCondition>::SetLocation(const
itk::Index<itk::ConstNeighborhoodIterator<TImage,
TBoundaryCondition>::Dimension>&) [with TImage = blImage<double, 2>,
TBoundaryCondition = itk::ZeroFluxNeumannBoundaryCondition<blImage<double, 2> >]'
/extra/local/include/InsightToolkit/Common/itkConstNeighborhoodIterator.txx:312:
instantiated from `void itk::ConstNeighborhoodIterator<TImage,
TBoundaryCondition>::GoToBegin() [with TImage = blImage<double, 2>,
TBoundaryCondition = itk::ZeroFluxNeumannBoundaryCondition<blImage<double, 2> >]'
/extra/local/include/InsightToolkit/BasicFilters/itkNeighborhoodOperatorImageFilter.txx:129:
instantiated from `void itk::NeighborhoodOperatorImageFilter<TInputImage,
TOutputImage>::ThreadedGenerateData(itk::ImageToImageFilter<TInputImage,
TOutputImage>::OutputImageRegionType&, int) [with TInputImage = blImage<double,
2>, TOutputImage = blImage<double, 2>]'
/extra/local/include/InsightToolkit/BasicFilters/itkUnaryFunctorImageFilter.txx:99:
instantiated from here
/extra/local/include/InsightToolkit/Common/itkConstNeighborhoodIterator.txx:543:
invalid
const_cast from type `const itk::Image<double, 2>*' to type `blImage<double,
2>*'
make[7]: *** [smlIAModelBuilder.o] Error 1
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_ASMiamodel] Error 2
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_iamodel] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_libmodules] Error 2
make: *** [default_target] Error 2
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Linux Errors Red Hat 7.2 Altix 350
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
icc 8.1
Building dependencies. cmake.depends...
cmake.depends is up-to-date
/home/cilab/cilab/src/SMoLib/bin/libmodules: building default_target
Building dependencies. cmake.depends...
cmake.depends is up-to-date
/home/cilab/cilab/src/SMoLib/bin/libmodules/dataclassifier: building default_target
Building dependencies. cmake.depends...
Building object file smlDataClassifier.o...
Building object file smlMVNeuralNetwork.o...
/home/cilab/cilab/opt/include/c++/backward/depr_warning.h(13): warning #1224:
#warning directive: Your file includes old style header files. Please use <MMM>
header instead of <MMM.h> header for C++ includes and use the <cMMM> header
instead of <MMM.h> header for C includes.
#warning Your file includes old style header files. Please use <MMM> \
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlMVNeuralNetwork.cpp(299):
warning #1572: floating-point equality and inequality comparisons are unreliable
if ( !this->RANDOM_WEIGHTS_INIT )
^
Building object file smlKNN.o...
Building object file smlDistanceWeightedKNN.o...
Building object file smlFeaturesSelector.o...
Building object file smlSequentialFeaturesSearch.o...
/home/cilab/cilab/opt/include/c++/backward/depr_warning.h(13): warning #1224:
#warning directive: Your file includes old style header files. Please use <MMM>
header instead of <MMM.h> header for C++ includes and use the <cMMM> header
instead of <MMM.h> header for C includes.
#warning Your file includes old style header files. Please use <MMM> \
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlSequentialFeaturesSearch.h(262):
warning #1476: field uses tail padding of a base class
smlSFS_Algorithms searchAlgorithm;
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlSequentialFeaturesSearch.h(133):
warning #186: pointless comparison of unsigned integer with zero
if (maxSF < 0)
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlSequentialFeaturesSearch.cpp(299):
warning #1572: floating-point equality and inequality comparisons are unreliable
if (returnScore == 0)
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlSequentialFeaturesSearch.cpp(1130):
warning #1572: floating-point equality and inequality comparisons are unreliable
localBestScore == this->bestScore && cnf <=
^
Building object file smlEuclideanClassifier.o...
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlEuclideanClassifier.cpp(605):
warning #191: type qualifier is meaningless on cast type
eucClass->SetNumberOfFeatures((const unsigned long)numFeatures);
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlEuclideanClassifier.cpp(606):
warning #191: type qualifier is meaningless on cast type
eucClass->SetNumberOfLabels((const unsigned long)numLabels);
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlEuclideanClassifier.cpp(607):
warning #191: type qualifier is meaningless on cast type
eucClass->SetTrainingSet((const unsigned long)numTrainingSamples,
^
Building object file smlVectorAngleClassifier.o...
/home/cilab/cilab/opt/include/c++/backward/depr_warning.h(13): warning #1224:
#warning directive: Your file includes old style header files. Please use <MMM>
header instead of <MMM.h> header for C++ includes and use the <cMMM> header
instead of <MMM.h> header for C includes.
#warning Your file includes old style header files. Please use <MMM> \
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlVectorAngleClassifier.cpp(613):
warning #191: type qualifier is meaningless on cast type
vecClass->SetNumberOfFeatures((const unsigned long)numFeatures);
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlVectorAngleClassifier.cpp(614):
warning #191: type qualifier is meaningless on cast type
vecClass->SetNumberOfLabels((const unsigned long)numLabels);
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlVectorAngleClassifier.cpp(615):
warning #191: type qualifier is meaningless on cast type
vecClass->SetTrainingSet((const unsigned long)numTrainingSamples,
^
Building object file smlMahalanobisClassifier.o...
/home/cilab/cilab/opt/include/c++/backward/depr_warning.h(13): warning #1224:
#warning directive: Your file includes old style header files. Please use <MMM>
header instead of <MMM.h> header for C++ includes and use the <cMMM> header
instead of <MMM.h> header for C includes.
#warning Your file includes old style header files. Please use <MMM> \
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlMahalanobisClassifier.cpp(734):
warning #191: type qualifier is meaningless on cast type
mahClass->SetNumberOfFeatures((const unsigned long)numFeatures);
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlMahalanobisClassifier.cpp(735):
warning #191: type qualifier is meaningless on cast type
mahClass->SetNumberOfLabels((const unsigned long)numLabels);
^
/home/cilab/cilab/src/SMoLib/libmodules/dataclassifier/smlMahalanobisClassifier.cpp(736):
warning #191: type qualifier is meaningless on cast type
mahClass->SetTrainingSet((const unsigned long)numTrainingSamples,
^
Building static library
/home/cilab/cilab/src/SMoLib/bin/lib/libsmlDataClassifier.a...
/home/cilab/cilab/src/SMoLib/bin/libmodules/iamodel: building default_target
Building dependencies. cmake.depends...
cmake.depends is up-to-date
/home/cilab/cilab/src/SMoLib/bin/libmodules/iamodel/ASMiamodel: building
default_target
Building dependencies. cmake.depends...
Building object file smlIAModel.o...
/home/cilab/cilab/opt/include/c++/backward/depr_warning.h(13): warning #1224:
#warning directive: Your file includes old style header files. Please use <MMM>
header instead of <MMM.h> header for C++ includes and use the <cMMM> header
instead of <MMM.h> header for C includes.
#warning Your file includes old style header files. Please use <MMM> \
^
Building object file smlIAModelBuilder.o...
/home/cilab/cilab/opt/include/c++/backward/depr_warning.h(13): warning #1224:
#warning directive: Your file includes old style header files. Please use <MMM>
header instead of <MMM.h> header for C++ includes and use the <cMMM> header
instead of <MMM.h> header for C includes.
#warning Your file includes old style header files. Please use <MMM> \
^
/home/cilab/cilab/src/SMoLib/libmodules/iamodel/ASMiamodel/smlIAModelBuilder.h(228):
warning #1476: field uses tail padding of a base class
blIASamplerTypes::SamplerType samplerType;
^
/home/cilab/cilab/src/SMoLib/libmodules/iamodel/ASMiamodel/smlIAModelBuilder.cpp(821):
warning #1572: floating-point equality and inequality comparisons are unreliable
if (Magnitude != 0)
^
/extra/local/include/InsightToolkit/Common/itkConstNeighborhoodIterator.txx(543):
error: a const_cast can only adjust type qualifiers; it cannot change the
underlying type
ImageType *ptr = const_cast<ImageType *>(m_ConstImage.GetPointer());
^
detected during:
instantiation of "void itk::ConstNeighborhoodIterator<TImage,
TBoundaryCondition>::SetPixelPointers(const
itk::ConstNeighborhoodIterator<TImage, TBoundaryCondition>::IndexType &) [with
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::InputImageType,
itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::InputImageType,
itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::OutputImageType>::InputImageType>]" at line 510
instantiation of "void itk::ConstNeighborhoodIterator<TImage,
TBoundaryCondition>::PrintSelf(std::ostream &, itk::Indent) const [with
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::InputImageType,
itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::InputImageType,
itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::OutputImageType>::InputImageType>]" at line
95 of "/extra/local/include/InsightToolkit/Common/itkConstNeighborhoodIterator.h"
instantiation of "itk::ConstNeighborhoodIterator<TImage,
TBoundaryCondition>::~ConstNeighborhoodIterator() [with
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::InputImageType,
itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::InputImageType,
itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::OutputImageType>::InputImageType>]" at line 171
instantiation of "itk::ConstNeighborhoodIterator<TImage,
TBoundaryCondition>::ConstNeighborhoodIterator() [with
TImage=itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::InputImageType,
itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::OutputImageType>::InputImageType,
TBoundaryCondition=itk::ZeroFluxNeumannBoundaryCondition<itk::NeighborhoodOperatorImageFilter<itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::InputImageType,
itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::OutputImageType>::InputImageType>]" at line
122 of
"/extra/local/include/InsightToolkit/BasicFilters/itkNeighborhoodOperatorImageFilter.txx"
instantiation of "void
itk::NeighborhoodOperatorImageFilter<TInputImage,
TOutputImage>::ThreadedGenerateData(const
itk::NeighborhoodOperatorImageFilter<TInputImage,
TOutputImage>::OutputImageRegionType &, int) [with
TInputImage=itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::InputImageType,
TOutputImage=itk::DiscreteGaussianImageFilter<smlIAModelBuilder::DoubleImageType,
smlIAModelBuilder::DoubleImageType>::OutputImageType]"
at line 117 of
"/extra/local/include/InsightToolkit/BasicFilters/itkNeighborhoodOperatorImageFilter.h"
[ 14 instantiation contexts not shown ]
instantiation of "itk::LightObject::Pointer
itk::MultiResolutionPyramidImageFilter<TInputImage,
TOutputImage>::CreateAnother() const [with
TInputImage=smlIAModelBuilder::ImageType,
TOutputImage=smlIAModelBuilder::DoubleImageType]" at line 43 of
"/extra/local/include/InsightToolkit/Algorithms/itkMultiResolutionPyramidImageFilter.txx"
instantiation of
"itk::MultiResolutionPyramidImageFilter<TInputImage,
TOutputImage>::MultiResolutionPyramidImageFilter() [with
TInputImage=smlIAModelBuilder::ImageType,
TOutputImage=smlIAModelBuilder::DoubleImageType]" at line 39 of
"/extra/local/include/InsightToolkit/Algorithms/itkRecursiveMultiResolutionPyramidImageFilter.txx"
instantiation of
"itk::RecursiveMultiResolutionPyramidImageFilter<TInputImage,
TOutputImage>::RecursiveMultiResolutionPyramidImageFilter() [with
TInputImage=smlIAModelBuilder::ImageType,
TOutputImage=smlIAModelBuilder::DoubleImageType]" at line 43 of
"/home/cilab/cilab/src/BaseLib/image/imageProperties/blIAMultiResolutionFilter.txx"
instantiation of "blIAMultiResolutionFilter<InputImageType,
OutputImageType>::blIAMultiResolutionFilter() [with
InputImageType=smlIAModelBuilder::ImageType,
OutputImageType=smlIAModelBuilder::DoubleImageType]" at line 76 of
"/home/cilab/cilab/src/BaseLib/image/imageProperties/blIAMultiResolutionFilter.h"
instantiation of "blIAMultiResolutionFilter<InputImageType,
OutputImageType>::Pointer blIAMultiResolutionFilter<InputImageType,
OutputImageType>::New() [with InputImageType=smlIAModelBuilder::ImageType,
OutputImageType=smlIAModelBuilder::DoubleImageType]"
compilation aborted for
/home/cilab/cilab/src/SMoLib/libmodules/iamodel/ASMiamodel/smlIAModelBuilder.cpp
(code 2)
make[7]: *** [smlIAModelBuilder.o] Error 2
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_ASMiamodel] Error 2
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_iamodel] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_libmodules] Error 2
make: *** [default_target] Error 2
More information about the Insight-users
mailing list