Closed AndysonYs closed 4 years ago
Hi
You need to use -std=c++11 flag to the compiler to enable C++11.
Best regards Paul
On Fri, Jul 26, 2019 at 7:22 PM Andyson notifications@github.com wrote:
Hello.
I met a problem when building this project. could you pls help me?
My system is Macos.
My clang version is below. Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
I have installed ITK5.0 successfully and pass the ITK installation test.
Here is the log. [ 10%] Built target text_to_hex [ 15%] Building CXX object CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27: In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31: In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21: In file included from /usr/local/include/ITK-5.0/itkMacro.h:42: /usr/local/include/ITK-5.0/itkConfigure.h:59:6: warning: "WARNING: The current project is configured to use a C++ standard version older than the C++ standard used for this build of ITK" [-W#warnings]
warning "WARNING: The current project is configured to use a C++ standard
version olde... ^ In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27: In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31: In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21: /usr/local/include/ITK-5.0/itkMacro.h:166:6: error: "Apple LLVM < 5.0 (clang < 3.3) is not supported under ITKv5"
error "Apple LLVM < 5.0 (clang < 3.3) is not supported under ITKv5"
^ In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27: In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31: In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21: In file included from /usr/local/include/ITK-5.0/itkMacro.h:1333: In file included from /usr/local/include/ITK-5.0/itkExceptionObject.h:28: /usr/local/include/ITK-5.0/itkSmartPointer.h:54:22: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using ObjectType = TObjectType; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:57:5: warning: alias declarations are a C++11 extension [-Wc++11-extensions] typename std::enable_if<std::is_convertible<T, TObjectType>::value>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:60:3: error: unknown type name 'constexpr' constexpr SmartPointer () noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:60:13: error: constructor cannot have a return type constexpr SmartPointer () noexcept: ^
~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:60:28: error: expected ';' at end of declaration list constexpr SmartPointer () noexcept: ^ ; /usr/local/include/ITK-5.0/itkSmartPointer.h:192:18: error: expected ';' at end of declaration list void Register() noexcept ^ ; /usr/local/include/ITK-5.0/itkSmartPointer.h:206:71: error: expected ';' at end of declaration bool operator==( const SmartPointer& l, const SmartPointer& r ) noexcept ^ ; /usr/local/include/ITK-5.0/itkSmartPointer.h:206:73: error: C++ requires a type specifier for all declarations bool operator==( const SmartPointer& l, const SmartPointer& r ) noexcept ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:206:81: error: expected ';' after top level declarator bool operator==( const SmartPointer& l, const SmartPointer& r ) noexcept ^ ; In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27: In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31: In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21: In file included from /usr/local/include/ITK-5.0/itkMacro.h:1333: /usr/local/include/ITK-5.0/itkExceptionObject.h:54:22: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using Superclass = std::exception; ^ /usr/local/include/ITK-5.0/itkExceptionObject.h:58:20: error: expected ';' at end of declaration list ExceptionObject() noexcept; ^ ; /usr/local/include/ITK-5.0/itkExceptionObject.h:64:48: error: expected ';' at end of declaration list ExceptionObject(const ExceptionObject & orig) noexcept; ^ ; /usr/local/include/ITK-5.0/itkExceptionObject.h:67:3: error: exception specification of overriding function is more lax than base version ~ExceptionObject() noexcept override; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/exception:101:13: note: overridden virtual function is here virtual ~exception() _NOEXCEPT; ^ In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27: In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31: In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21: In file included from /usr/local/include/ITK-5.0/itkMacro.h:1333: /usr/local/include/ITK-5.0/itkExceptionObject.h:67:21: error: expected ';' at end of declaration list ~ExceptionObject() noexcept override; ^ ; /usr/local/include/ITK-5.0/itkExceptionObject.h:70:60: error: expected ';' at end of declaration list ExceptionObject & operator=(const ExceptionObject & orig) noexcept; ^ ; /usr/local/include/ITK-5.0/itkExceptionObject.h:106:16: error: exception specification of overriding function is more lax than base version const char what() const noexcept override; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/exception:102:25: note: overridden virtual function is here virtual const char what() const _NOEXCEPT; ^ In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27: In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31: In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21: In file included from /usr/local/include/ITK-5.0/itkMacro.h:1333: /usr/local/include/ITK-5.0/itkExceptionObject.h:106:28: error: expected ';' at end of declaration list const char what() const noexcept override; ^ ; /usr/local/include/ITK-5.0/itkExceptionObject.h:171:26: error: expected ';' at end of declaration list MemoryAllocationError() noexcept:ExceptionObject() {} ^ ; /usr/local/include/ITK-5.0/itkExceptionObject.h:188:39: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] const char GetNameOfClass() const override ^ /usr/local/include/ITK-5.0/itkExceptionObject.h:202:15: error: expected ';' at end of declaration list RangeError() noexcept:ExceptionObject() {} ^ ; /usr/local/include/ITK-5.0/itkExceptionObject.h:213:39: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] const char GetNameOfClass() const override ^ /usr/local/include/ITK-5.0/itkExceptionObject.h:230:25: error: expected ';' at end of declaration list InvalidArgumentError() noexcept:ExceptionObject() {} ^ ; /usr/local/include/ITK-5.0/itkExceptionObject.h:245:39: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] const char GetNameOfClass() const override ^ /usr/local/include/ITK-5.0/itkExceptionObject.h:259:30: error: expected ';' at end of declaration list IncompatibleOperandsError() noexcept:ExceptionObject() {} ^ ; /usr/local/include/ITK-5.0/itkExceptionObject.h:270:39: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] const char * GetNameOfClass() const override ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 8 warnings and 20 errors generated. make[2]: [CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o] Error 1 make[1]: [CMakeFiles/greedyapi.dir/all] Error 2 make: *** [all] Error 2— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pyushkevich/greedy/issues/10?email_source=notifications&email_token=AAJPEW6P7HOOAIH43B7UVLLQBOBLTA5CNFSM4IHHZDRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HB2CRHQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJPEWYAWVAHSJ2EHSIK4HTQBOBLTANCNFSM4IHHZDRA .
-- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania
Thank you so much, Paul!
I have added set (CMAKE_CXX_STANDARD 11)
to greedy/CMakeLists.txt, and many problems are solved.
But now it is stuck at 73%. Is there something wrong with the ITK version? My ITK is 5.0.
Best Regards Andyson
Here is the log. Scanning dependencies of target text_to_hex Scanning dependencies of target test_accum Scanning dependencies of target greedyapi [ 5%] Building C object CMakeFiles/text_to_hex.dir/utilities/hexdump.c.o /Users/shuai/Greedy/greedy/utilities/hexdump.c:732:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER'
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:745:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER'
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:935:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER'
^
[ 10%] Building CXX object CMakeFiles/test_accum.dir/testing/src/TestOneDimensionalInPlaceAccumulateFilter.cxx.o
[ 21%] Building CXX object CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o
[ 21%] Building CXX object CMakeFiles/greedyapi.dir/src/GreedyAPI.cxx.o
[ 31%] Building CXX object CMakeFiles/greedyapi.dir/src/GreedyParameters.cxx.o
[ 31%] Building CXX object CMakeFiles/greedyapi.dir/src/AffineCostFunctions.cxx.o
[ 36%] Building CXX object CMakeFiles/greedyapi.dir/src/MultiImageRegistrationHelper.cxx.o
3 warnings generated.
[ 42%] Linking C executable text_to_hex
[ 42%] Built target text_to_hex
Scanning dependencies of target docs_to_hex
[ 52%] Generating stackg_usage_main.h
[ 52%] Generating stackg_usage_init.h
[ 63%] Generating stackg_usage_recon.h
[ 63%] Generating stackg_usage_volmatch.h
[ 68%] Generating stackg_usage_voliter.h
[ 73%] Generating stackg_usage_splat.h
[ 73%] Built target docs_to_hex
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:280:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.txx:61:12: error:
conversion from 'long' to 'typename itk::DataObject::Pointer' (aka
'SmartPointer
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:201:13: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? if ( itk::MultiThreader::GetGlobalMaximumNumberOfThreads() != 0 )
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:203:66: error:
no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'?
nbOfThreads = vnl_math_min( this->GetNumberOfThreads(), itk::MultiThreader::GetGloba...
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:466:13: error:
no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'?
if ( itk::MultiThreader::GetGlobalMaximumNumberOfThreads() != 0 )
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:468:66: error:
no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'?
nbOfThreads = vnl_math_min( this->GetNumberOfThreads(), itk::MultiThreader::GetGloba...
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:48:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:280:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.txx:61:12: error:
conversion from 'long' to 'typename itk::DataObject::Pointer' (aka
'SmartPointer<itk::DataObject>') is ambiguous
return NULL;
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 2>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 2> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 2> >') is ambiguous
m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
2>::BuildCompositeImages' requested here
template class MultiImageOpticalFlowHelper<float, 2>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 2>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 2> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 2> >') is ambiguous
m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:377:53: error: conversion
from 'long' to 'const
std::__1::__vector_base<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>,
2> >, std::__1::allocator<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>,
2> > > >::value_type' (aka 'const
itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> >') is ambiguous
m_JitterComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:61:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMultiComponentImageMetricTraits<float, 2> >'
requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:451:12: note: in
instantiation of template class
'MultiImageOpticalFlowImageFilter<DefaultMultiComponentImageMetricTraits<float, 2> >'
requested here
typename FilterType::Pointer filter = FilterType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
2>::ComputeOpticalFlowField' requested here
template class MultiImageOpticalFlowHelper<float, 2>;
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:707:16: error: no template named
'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'?
typedef itk::BinaryFunctorImageFilter<
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
UnaryFunctorImageFilter
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note:
'UnaryFunctorImageFilter' declared here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:707:16: error: too many template arguments for
class template 'UnaryFunctorImageFilter'
typedef itk::BinaryFunctorImageFilter<
^
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared
here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:12: error: 'Filter' virtual void VerifyInputInformation() ITK_OVERRIDE {}(aka 'int')
is ^
not a
class, namespace, or/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h :enumeration87:
12: note:
in instantiation of template typename Filter::Pointer flt = Filter::New();class
^
'MultiComponentImageMetricBase<DefaultMultiComponentMutualInfoImageMetricTraits<float,
unsigned char, 2> >' requested/Users/shuai/Greedy/greedy/src/lddmm_data.cxx :here709:
20: error: expected a qualified name after
'typename'
public MultiComponentImageMetricBase<TMetricTraits>
^
typename Filter::Pointer flt = Filter::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:522:12: note: in
instantiation of template class
'MultiComponentMutualInfoImageMetric<DefaultMultiComponentMutualInfoImageMetricTraits<float,
unsigned char, 2> >' requested here
typename MetricType::Pointer metric = MetricType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
2>::ComputeMIFlowField' requested here
template class MultiImageOpticalFlowHelper<float, 2>;
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MahalanobisDistanceToTargetWarpMetric.h:65:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMahalanobisDistanceToTargetMetricTraits<float,
2> >' requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:632:12: note: in
instantiation of template class
'MahalanobisDistanceToTargetWarpMetric<DefaultMahalanobisDistanceToTargetMetricTraits<float,
2> >' requested here
typename FilterType::Pointer filter = FilterType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
2>::ComputeMahalanobisMetricImage' requested here
template class MultiImageOpticalFlowHelper<float, 2>;
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:20: error: unknown type name 'Pointer'
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:34: error: 'Filter' (aka 'int') is not a
class, namespace, or enumeration
typename Filter::Pointer flt = Filter::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:748:16: error: no template named
'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'?
typedef itk::BinaryFunctorImageFilter<
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
UnaryFunctorImageFilter
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note:
'UnaryFunctorImageFilter' declared here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:748:16: error: too many template arguments for
class template 'UnaryFunctorImageFilter'
typedef itk::BinaryFunctorImageFilter<
^
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared
here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:12: error: 'Filter' (aka 'int') is not a
class, namespace, or enumeration
typename Filter::Pointer flt = Filter::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:20: error: expected a qualified name after
'typename'
typename Filter::Pointer flt = Filter::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:20: error: unknown type name 'Pointer'
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:34: error: 'Filter' (aka 'int') is not a
class, namespace, or enumeration
typename Filter::Pointer flt = Filter::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 3>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 3> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 3> >') is ambiguous
m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
3>::BuildCompositeImages' requested here
template class MultiImageOpticalFlowHelper<float, 3>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 3>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 3> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 3> >') is ambiguous
m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:377:53: error: conversion
from 'long' to 'const
std::__1::__vector_base<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>,
3> >, std::__1::allocator<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>,
3> > > >::value_type' (aka 'const
itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> >') is ambiguous
m_JitterComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:61:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMultiComponentImageMetricTraits<float, 3> >'
requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:451:12: note: in
instantiation of template class
'MultiImageOpticalFlowImageFilter<DefaultMultiComponentImageMetricTraits<float, 3> >'
requested here
typename FilterType::Pointer filter = FilterType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
3>::ComputeOpticalFlowField' requested here
template class MultiImageOpticalFlowHelper<float, 3>;
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:866:18: error: no template named
'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'?
typedef itk::BinaryFunctorImageFilter<
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
UnaryFunctorImageFilter
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note:
'UnaryFunctorImageFilter' declared here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:866:18: error: too many template arguments for
class template 'UnaryFunctorImageFilter'
typedef itk::BinaryFunctorImageFilter<
^
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared
here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:14: error: 'RowFilterType' (aka 'int') is
not a class, namespace, or enumeration
typename RowFilterType::Pointer rof = RowFilterType::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:29: error: expected a qualified name after
'typename'
typename RowFilterType::Pointer rof = RowFilterType::New();
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:87:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMultiComponentMutualInfoImageMetricTraits<float,
unsigned char, 3> >' requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:522:12: note: in
instantiation of template class
'MultiComponentMutualInfoImageMetric<DefaultMultiComponentMutualInfoImageMetricTraits<float,
unsigned char, 3> >' requested here
typename MetricType::Pointer metric = MetricType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
3>::ComputeMIFlowField' requested here
template class MultiImageOpticalFlowHelper<float, 3>;
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MahalanobisDistanceToTargetWarpMetric.h:65:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMahalanobisDistanceToTargetMetricTraits<float,
3> >' requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:632:12: note: in
instantiation of template class
'MahalanobisDistanceToTargetWarpMetric<DefaultMahalanobisDistanceToTargetMetricTraits<float,
3> >' requested here
typename FilterType::Pointer filter = FilterType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
3>::ComputeMahalanobisMetricImage' requested here
template class MultiImageOpticalFlowHelper<float, 3>;
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:29: error: unknown type name 'Pointer'
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:43: error: 'RowFilterType' (aka 'int') is
not a class, namespace, or enumeration
typename RowFilterType::Pointer rof = RowFilterType::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:904:16: error: no template named
'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'?
typedef itk::BinaryFunctorImageFilter<MatrixImageType,MatrixImageType,MatrixImageT...
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
UnaryFunctorImageFilter
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note:
'UnaryFunctorImageFilter' declared here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 4>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 4> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 4> >') is ambiguous
m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1312:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
4>::BuildCompositeImages' requested here
template class MultiImageOpticalFlowHelper<float, 4>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 4>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 4> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 4> >') is ambiguous
m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/greedyapi.dir/src/MultiImageRegistrationHelper.cxx.o] Error 1
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2426:10: error: no member named 'MultiThreader'
in namespace 'itk'; did you mean 'MultiThreaderBase'?
itk::MultiThreader::SetGlobalMaximumNumberOfThreads(param.threads);
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2430:75: error: no member named 'MultiThreader'
in namespace 'itk'; did you mean 'MultiThreaderBase'?
..."Executing with the default number of threads: " << itk::MultiThreader::GetGlobalDef...
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<2, float>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2467:16: note: in instantiation of member
function 'GreedyApproach<2, float>::RunDeformable' requested here
template class GreedyApproach<2, float>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<float, 2>, itk::Image<float, 2>,
itk::Image<itk::CovariantVector<float, 2>, 2> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2467:16: note: in instantiation of member
function 'GreedyApproach<2, float>::RunReslice' requested here
template class GreedyApproach<2, float>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<3, float>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2468:16: note: in instantiation of member
function 'GreedyApproach<3, float>::RunDeformable' requested here
template class GreedyApproach<3, float>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<float, 3>, itk::Image<float, 3>,
itk::Image<itk::CovariantVector<float, 3>, 3> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2468:16: note: in instantiation of member
function 'GreedyApproach<3, float>::RunReslice' requested here
template class GreedyApproach<3, float>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<4, float>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<float, 4>, 4> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2469:16: note: in instantiation of member
function 'GreedyApproach<4, float>::RunDeformable' requested here
template class GreedyApproach<4, float>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<float, 4>, itk::Image<float, 4>,
itk::Image<itk::CovariantVector<float, 4>, 4> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2469:16: note: in instantiation of member
function 'GreedyApproach<4, float>::RunReslice' requested here
template class GreedyApproach<4, float>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<2, double>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<double, 2>, 2> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2470:16: note: in instantiation of member
function 'GreedyApproach<2, double>::RunDeformable' requested here
template class GreedyApproach<2, double>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<double, 2>, itk::Image<double, 2>,
itk::Image<itk::CovariantVector<double, 2>, 2> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2470:16: note: in instantiation of member
function 'GreedyApproach<2, double>::RunReslice' requested here
template class GreedyApproach<2, double>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<3, double>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<double, 3>, 3> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2471:16: note: in instantiation of member
function 'GreedyApproach<3, double>::RunDeformable' requested here
template class GreedyApproach<3, double>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<double, 3>, itk::Image<double, 3>,
itk::Image<itk::CovariantVector<double, 3>, 3> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2471:16: note: in instantiation of member
function 'GreedyApproach<3, double>::RunReslice' requested here
template class GreedyApproach<3, double>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<4, double>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<double, 4>, 4> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2472:16: note: in instantiation of member
function 'GreedyApproach<4, double>::RunDeformable' requested here
template class GreedyApproach<4, double>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<double, 4>, itk::Image<double, 4>,
itk::Image<itk::CovariantVector<double, 4>, 4> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2472:16: note: in instantiation of member
function 'GreedyApproach<4, double>::RunReslice' requested here
template class GreedyApproach<4, double>;
^
[ 78%] Linking CXX executable test_accum
[ 78%] Built target test_accum
15 errors generated.
make[2]: *** [CMakeFiles/greedyapi.dir/src/GreedyAPI.cxx.o] Error 1
make[1]: *** [CMakeFiles/greedyapi.dir/all] Error 2
make: *** [all] Error 2
(base) ShuaideMacBook-Pro:build shuai$
(base) ShuaideMacBook-Pro:build shuai$
(base) ShuaideMacBook-Pro:build shuai$ vim
CMakeCache.txt Makefile stackg_usage_splat.h
CMakeFiles/ Testing/ stackg_usage_voliter.h
CTestTestfile.cmake cmake_install.cmake stackg_usage_volmatch.h
DartConfiguration.tcl stackg_usage_init.h test_accum
GreedyVersion.cxx stackg_usage_main.h text_to_hex
ITKFactoryRegistration/ stackg_usage_recon.h
(base) ShuaideMacBook-Pro:build shuai$ vim ../greedy/CMakeLists.txt
(base) ShuaideMacBook-Pro:build shuai$ ccmake ../greedy/
(base) ShuaideMacBook-Pro:build shuai$ rm -rf *
(base) ShuaideMacBook-Pro:build shuai$ ccmake ../greedy/
(base) ShuaideMacBook-Pro:build shuai$ make -j 8
Scanning dependencies of target text_to_hex
Scanning dependencies of target greedyapi
Scanning dependencies of target test_accum
[ 5%] Building C object CMakeFiles/text_to_hex.dir/utilities/hexdump.c.o
/Users/shuai/Greedy/greedy/utilities/hexdump.c:732:5: warning: macro expansion producing
'defined' has undefined behavior [-Wexpansion-to-defined]
#if VM_FASTER
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER'
#define VM_FASTER defined(__GNUC__)
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:745:5: warning: macro expansion producing
'defined' has undefined behavior [-Wexpansion-to-defined]
#if VM_FASTER
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER'
#define VM_FASTER defined(__GNUC__)
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:935:5: warning: macro expansion producing
'defined' has undefined behavior [-Wexpansion-to-defined]
#if VM_FASTER
^
/Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER'
#define VM_FASTER defined(__GNUC__)
^
[ 10%] Building CXX object CMakeFiles/test_accum.dir/testing/src/TestOneDimensionalInPlaceAccumulateFilter.cxx.o
[ 21%] Building CXX object CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o
[ 21%] Building CXX object CMakeFiles/greedyapi.dir/src/GreedyParameters.cxx.o
[ 31%] Building CXX object CMakeFiles/greedyapi.dir/src/MultiImageRegistrationHelper.cxx.o
[ 31%] Building CXX object CMakeFiles/greedyapi.dir/src/GreedyAPI.cxx.o
[ 36%] Building CXX object CMakeFiles/greedyapi.dir/src/AffineCostFunctions.cxx.o
3 warnings generated.
[ 42%] Linking C executable text_to_hex
[ 42%] Built target text_to_hex
Scanning dependencies of target docs_to_hex
[ 47%] Generating stackg_usage_main.h
[ 52%] Generating stackg_usage_init.h
[ 57%] Generating stackg_usage_recon.h
[ 63%] Generating stackg_usage_volmatch.h
[ 68%] Generating stackg_usage_voliter.h
[ 73%] Generating stackg_usage_splat.h
[ 73%] Built target docs_to_hex
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:280:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.txx:61:12: error:
conversion from 'long' to 'typename itk::DataObject::Pointer' (aka
'SmartPointer<itk::DataObject>') is ambiguous
return NULL;
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:201:13: error:
no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'?
if ( itk::MultiThreader::GetGlobalMaximumNumberOfThreads() != 0 )
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:203:66: error:
no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'?
nbOfThreads = vnl_math_min( this->GetNumberOfThreads(), itk::MultiThreader::GetGloba...
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:466:13: error:
no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'?
if ( itk::MultiThreader::GetGlobalMaximumNumberOfThreads() != 0 )
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:468:66: error:
no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'?
nbOfThreads = vnl_math_min( this->GetNumberOfThreads(), itk::MultiThreader::GetGloba...
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:48:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:280:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.txx:61:12: error:
conversion from 'long' to 'typename itk::DataObject::Pointer' (aka
'SmartPointer<itk::DataObject>') is ambiguous
return NULL;
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 2>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 2> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 2> >') is ambiguous
m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
2>::BuildCompositeImages' requested here
template class MultiImageOpticalFlowHelper<float, 2>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 2>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 2> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 2> >') is ambiguous
m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:377:53: error: conversion
from 'long' to 'const
std::__1::__vector_base<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>,
2> >, std::__1::allocator<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>,
2> > > >::value_type' (aka 'const
itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> >') is ambiguous
m_JitterComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:61:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMultiComponentImageMetricTraits<float, 2> >'
requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:451:12: note: in
instantiation of template class
'MultiImageOpticalFlowImageFilter<DefaultMultiComponentImageMetricTraits<float, 2> >'
requested here
typename FilterType::Pointer filter = FilterType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
2>::ComputeOpticalFlowField' requested here
template class MultiImageOpticalFlowHelper<float, 2>;
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:87:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMultiComponentMutualInfoImageMetricTraits<float,
unsigned char, 2> >' requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:522:12: note: in
instantiation of template class
'MultiComponentMutualInfoImageMetric<DefaultMultiComponentMutualInfoImageMetricTraits<float,
unsigned char, 2> >' requested here
typename MetricType::Pointer metric = MetricType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
2>::ComputeMIFlowField' requested here
template class MultiImageOpticalFlowHelper<float, 2>;
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:707:16: error: no template named
'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'?
typedef itk::BinaryFunctorImageFilter<
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
UnaryFunctorImageFilter
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note:
'UnaryFunctorImageFilter' declared here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:707:16: error: too many template arguments for
class template 'UnaryFunctorImageFilter'
typedef itk::BinaryFunctorImageFilter<
^
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared
here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:12: error: 'Filter' (aka 'int') is not a
class, namespace, or enumeration
typename Filter::Pointer flt = Filter::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:20: error: expected a qualified name after
'typename'
typename Filter::Pointer flt = Filter::New();
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MahalanobisDistanceToTargetWarpMetric.h:65:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMahalanobisDistanceToTargetMetricTraits<float,
2> >' requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:632:12: note: in
instantiation of template class
'MahalanobisDistanceToTargetWarpMetric<DefaultMahalanobisDistanceToTargetMetricTraits<float,
2> >' requested here
typename FilterType::Pointer filter = FilterType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
2>::ComputeMahalanobisMetricImage' requested here
template class MultiImageOpticalFlowHelper<float, 2>;
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:20: error: unknown type name 'Pointer'
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:34: error: 'Filter' (aka 'int') is not a
class, namespace, or enumeration
typename Filter::Pointer flt = Filter::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:748:16: error: no template named
'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'?
typedef itk::BinaryFunctorImageFilter<
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
UnaryFunctorImageFilter
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note:
'UnaryFunctorImageFilter' declared here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:748:16: error: too many template arguments for
class template 'UnaryFunctorImageFilter'
typedef itk::BinaryFunctorImageFilter<
^
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared
here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:12: error: 'Filter' (aka 'int') is not a
class, namespace, or enumeration
typename Filter::Pointer flt = Filter::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:20: error: expected a qualified name after
'typename'
typename Filter::Pointer flt = Filter::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 3>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 3> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 3> >') is ambiguous
m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
3>::BuildCompositeImages' requested here
template class MultiImageOpticalFlowHelper<float, 3>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 3>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 3> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 3> >') is ambiguous
m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:377:53: error: conversion
from 'long' to 'const
std::__1::__vector_base<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>,
3> >, std::__1::allocator<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>,
3> > > >::value_type' (aka 'const
itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> >') is ambiguous
m_JitterComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:61:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMultiComponentImageMetricTraits<float, 3> >'
requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:451:12: note: in
instantiation of template class
'MultiImageOpticalFlowImageFilter<DefaultMultiComponentImageMetricTraits<float, 3> >'
requested here
typename FilterType::Pointer filter = FilterType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
3>::ComputeOpticalFlowField' requested here
template class MultiImageOpticalFlowHelper<float, 3>;
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:87:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMultiComponentMutualInfoImageMetricTraits<float,
unsigned char, 3> >' requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:522:12: note: in
instantiation of template class
'MultiComponentMutualInfoImageMetric<DefaultMultiComponentMutualInfoImageMetricTraits<float,
unsigned char, 3> >' requested here
typename MetricType::Pointer metric = MetricType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
3>::ComputeMIFlowField' requested here
template class MultiImageOpticalFlowHelper<float, 3>;
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:20: error: unknown type name 'Pointer'
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:34: error: 'Filter' (aka 'int') is not a
class, namespace, or enumeration
typename Filter::Pointer flt = Filter::New();
^
In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35:
In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/ITKFilters/include/MahalanobisDistanceToTargetWarpMetric.h:65:12: note:
in instantiation of template class
'MultiComponentImageMetricBase<DefaultMahalanobisDistanceToTargetMetricTraits<float,
3> >' requested here
public MultiComponentImageMetricBase<TMetricTraits>
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:632:12: note: in
instantiation of template class
'MahalanobisDistanceToTargetWarpMetric<DefaultMahalanobisDistanceToTargetMetricTraits<float,
3> >' requested here
typename FilterType::Pointer filter = FilterType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
3>::ComputeMahalanobisMetricImage' requested here
template class MultiImageOpticalFlowHelper<float, 3>;
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:866:18: error: no template named
'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'?
typedef itk::BinaryFunctorImageFilter<
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
UnaryFunctorImageFilter
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note:
'UnaryFunctorImageFilter' declared here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:866:18: error: too many template arguments for
class template 'UnaryFunctorImageFilter'
typedef itk::BinaryFunctorImageFilter<
^
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared
here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:14: error: 'RowFilterType' (aka 'int') is
not a class, namespace, or enumeration
typename RowFilterType::Pointer rof = RowFilterType::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:29: error: expected a qualified name after
'typename'
typename RowFilterType::Pointer rof = RowFilterType::New();
^
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:29: error: unknown type name 'Pointer'
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:43: error: 'RowFilterType' (aka 'int') is
not a class, namespace, or enumeration
typename RowFilterType::Pointer rof = RowFilterType::New();
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 4>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 4> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 4> >') is ambiguous
m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1312:16: note: in
instantiation of member function 'MultiImageOpticalFlowHelper<float,
4>::BuildCompositeImages' requested here
template class MultiImageOpticalFlowHelper<float, 4>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
/Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion
from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 4>
>, std::__1::allocator<itk::SmartPointer<itk::Image<float, 4> > > >::value_type' (aka
'const itk::SmartPointer<itk::Image<float, 4> >') is ambiguous
m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/Users/shuai/Greedy/greedy/src/lddmm_data.cxx:904:16: error: no template named
'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'?
typedef itk::BinaryFunctorImageFilter<MatrixImageType,MatrixImageType,MatrixImageT...
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
UnaryFunctorImageFilter
/usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note:
'UnaryFunctorImageFilter' declared here
class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI...
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
make[2]: *** [CMakeFiles/greedyapi.dir/src/MultiImageRegistrationHelper.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
20 errors generated.
make[2]: *** [CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o] Error 1
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2426:10: error: no member named 'MultiThreader'
in namespace 'itk'; did you mean 'MultiThreaderBase'?
itk::MultiThreader::SetGlobalMaximumNumberOfThreads(param.threads);
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2430:75: error: no member named 'MultiThreader'
in namespace 'itk'; did you mean 'MultiThreaderBase'?
..."Executing with the default number of threads: " << itk::MultiThreader::GetGlobalDef...
~~~~~^~~~~~~~~~~~~
MultiThreaderBase
/usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared
here
class ITKCommon_EXPORT MultiThreaderBase : public Object
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<2, float>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2467:16: note: in instantiation of member
function 'GreedyApproach<2, float>::RunDeformable' requested here
template class GreedyApproach<2, float>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<float, 2>, itk::Image<float, 2>,
itk::Image<itk::CovariantVector<float, 2>, 2> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2467:16: note: in instantiation of member
function 'GreedyApproach<2, float>::RunReslice' requested here
template class GreedyApproach<2, float>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<3, float>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2468:16: note: in instantiation of member
function 'GreedyApproach<3, float>::RunDeformable' requested here
template class GreedyApproach<3, float>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<float, 3>, itk::Image<float, 3>,
itk::Image<itk::CovariantVector<float, 3>, 3> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2468:16: note: in instantiation of member
function 'GreedyApproach<3, float>::RunReslice' requested here
template class GreedyApproach<3, float>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<4, float>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<float, 4>, 4> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2469:16: note: in instantiation of member
function 'GreedyApproach<4, float>::RunDeformable' requested here
template class GreedyApproach<4, float>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<float, 4>, itk::Image<float, 4>,
itk::Image<itk::CovariantVector<float, 4>, 4> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2469:16: note: in instantiation of member
function 'GreedyApproach<4, float>::RunReslice' requested here
template class GreedyApproach<4, float>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<2, double>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<double, 2>, 2> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2470:16: note: in instantiation of member
function 'GreedyApproach<2, double>::RunDeformable' requested here
template class GreedyApproach<2, double>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<double, 2>, itk::Image<double, 2>,
itk::Image<itk::CovariantVector<double, 2>, 2> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2470:16: note: in instantiation of member
function 'GreedyApproach<2, double>::RunReslice' requested here
template class GreedyApproach<2, double>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<3, double>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<double, 3>, 3> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2471:16: note: in instantiation of member
function 'GreedyApproach<3, double>::RunDeformable' requested here
template class GreedyApproach<3, double>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<double, 3>, itk::Image<double, 3>,
itk::Image<itk::CovariantVector<double, 3>, 3> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2471:16: note: in instantiation of member
function 'GreedyApproach<3, double>::RunReslice' requested here
template class GreedyApproach<3, double>;
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to
'GreedyApproach<4, double>::VectorImagePointer' (aka
'SmartPointer<itk::Image<itk::CovariantVector<double, 4>, 4> >') is ambiguous
VectorImagePointer uLevel = NULL;
^ ~~~~
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2472:16: note: in instantiation of member
function 'GreedyApproach<4, double>::RunDeformable' requested here
template class GreedyApproach<4, double>;
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor
constexpr SmartPointer (std::nullptr_t p) noexcept:
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor
SmartPointer (ObjectType *p) noexcept:
^
In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47:
/Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error:
'VerifyInputInformation' marked 'override' but does not override any member functions
virtual void VerifyInputInformation() ITK_OVERRIDE {}
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template
class 'FastWarpCompositeImageFilter<itk::Image<double, 4>, itk::Image<double, 4>,
itk::Image<itk::CovariantVector<double, 4>, 4> >' requested here
typename InterpFilter::Pointer fltInterp = InterpFilter::New();
^
/Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2472:16: note: in instantiation of member
function 'GreedyApproach<4, double>::RunReslice' requested here
template class GreedyApproach<4, double>;
^
[ 78%] Linking CXX executable test_accum
[ 78%] Built target test_accum
15 errors generated.
make[2]: *** [CMakeFiles/greedyapi.dir/src/GreedyAPI.cxx.o] Error 1
make[1]: *** [CMakeFiles/greedyapi.dir/all] Error 2
make: *** [all] Error 2
Yeah, it might be ITK 5 related. I use 4.12, please try that as well
Thanks, Paul
On Mon, Jul 29, 2019 at 1:27 PM Andyson notifications@github.com wrote:
Thank you so much, Paul!
I have added set (CMAKE_CXX_STANDARD 11)to greedy/CMakeLists.txt, and many problems are solved.
But now it is stuck at 73%. Is there something wrong with the ITK version? My ITK is 5.0.
Best Regards Andyson
Here is the log. Scanning dependencies of target text_to_hex Scanning dependencies of target test_accum Scanning dependencies of target greedyapi [ 5%] Building C object CMakeFiles/text_to_hex.dir/utilities/hexdump.c.o /Users/shuai/Greedy/greedy/utilities/hexdump.c:732:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
if VM_FASTER
^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER'
define VM_FASTER defined(GNUC)
^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:745:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
if VM_FASTER
^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER'
define VM_FASTER defined(GNUC)
^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:935:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
if VM_FASTER
^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER'
define VM_FASTER defined(GNUC)
^ [ 10%] Building CXX object CMakeFiles/test_accum.dir/testing/src/TestOneDimensionalInPlaceAccumulateFilter.cxx.o [ 21%] Building CXX object CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o [ 21%] Building CXX object CMakeFiles/greedyapi.dir/src/GreedyAPI.cxx.o [ 31%] Building CXX object CMakeFiles/greedyapi.dir/src/GreedyParameters.cxx.o [ 31%] Building CXX object CMakeFiles/greedyapi.dir/src/AffineCostFunctions.cxx.o [ 36%] Building CXX object CMakeFiles/greedyapi.dir/src/MultiImageRegistrationHelper.cxx.o 3 warnings generated. [ 42%] Linking C executable text_to_hex [ 42%] Built target text_to_hex Scanning dependencies of target docs_to_hex [ 52%] Generating stackg_usage_main.h [ 52%] Generating stackg_usage_init.h [ 63%] Generating stackg_usage_recon.h [ 63%] Generating stackg_usage_volmatch.h [ 68%] Generating stackg_usage_voliter.h [ 73%] Generating stackg_usage_splat.h [ 73%] Built target docs_to_hex In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:280: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.txx:61:12: error: conversion from 'long' to 'typename itk::DataObject::Pointer' (aka 'SmartPointeritk::DataObject') is ambiguous return NULL; ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null
^~~~~~
/usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:201:13: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? if ( itk::MultiThreader::GetGlobalMaximumNumberOfThreads() != 0 )
MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:203:66: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? nbOfThreads = vnl_math_min( this->GetNumberOfThreads(), itk::MultiThreader::GetGloba... ~~~~~^~~~~~~~~~~~~ MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:466:13: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? if ( itk::MultiThreader::GetGlobalMaximumNumberOfThreads() != 0 ) ~~~~~^~~~~~~~~~~~~ MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:468:66: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? nbOfThreads = vnl_math_min( this->GetNumberOfThreads(), itk::MultiThreader::GetGloba... ~~~~~^~~~~~~~~~~~~ MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:48: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:280: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.txx:61:12: error: conversion from 'long' to 'typename itk::DataObject::Pointer' (aka 'SmartPointeritk::DataObject') is ambiguous return NULL; ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 2> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 2> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 2> >') is ambiguous m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 2>::BuildCompositeImages' requested here template class MultiImageOpticalFlowHelper<float, 2>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 2> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 2> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 2> >') is ambiguous m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:377:53: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> >, std::__1::allocator<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> >') is ambiguous m_JitterComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:61:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMultiComponentImageMetricTraits<float, 2> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:451:12: note: in instantiation of template class 'MultiImageOpticalFlowImageFilter<DefaultMultiComponentImageMetricTraits<float, 2> >' requested here typename FilterType::Pointer filter = FilterType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 2>::ComputeOpticalFlowField' requested here template class MultiImageOpticalFlowHelper<float, 2>; ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:707:16: error: no template named 'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'? typedef itk::BinaryFunctorImageFilter< ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ UnaryFunctorImageFilter /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: 'UnaryFunctorImageFilter' declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:707:16: error: too many template arguments for class template 'UnaryFunctorImageFilter' typedef itk::BinaryFunctorImageFilter< ^ /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:12: error: 'Filter' virtual void VerifyInputInformation() ITK_OVERRIDE {}(aka 'int') is ^ not a class, namespace, or/Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h :enumeration87: 12: note: in instantiation of template typename Filter::Pointer flt = Filter::New();class ^ 'MultiComponentImageMetricBase<DefaultMultiComponentMutualInfoImageMetricTraits<float, unsigned char, 2> >' requested/Users/shuai/Greedy/greedy/src/lddmm_data.cxx :here709: 20: error: expected a qualified name after 'typename' public MultiComponentImageMetricBase ^ typename Filter::Pointer flt = Filter::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:522:12: note: in instantiation of template class 'MultiComponentMutualInfoImageMetric<DefaultMultiComponentMutualInfoImageMetricTraits<float, unsigned char, 2> >' requested here typename MetricType::Pointer metric = MetricType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 2>::ComputeMIFlowField' requested here template class MultiImageOpticalFlowHelper<float, 2>; ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MahalanobisDistanceToTargetWarpMetric.h:65:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMahalanobisDistanceToTargetMetricTraits<float, 2> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:632:12: note: in instantiation of template class 'MahalanobisDistanceToTargetWarpMetric<DefaultMahalanobisDistanceToTargetMetricTraits<float, 2> >' requested here typename FilterType::Pointer filter = FilterType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 2>::ComputeMahalanobisMetricImage' requested here template class MultiImageOpticalFlowHelper<float, 2>; ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:20: error: unknown type name 'Pointer' /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:34: error: 'Filter' (aka 'int') is not a class, namespace, or enumeration typename Filter::Pointer flt = Filter::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:748:16: error: no template named 'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'? typedef itk::BinaryFunctorImageFilter< ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ UnaryFunctorImageFilter /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: 'UnaryFunctorImageFilter' declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:748:16: error: too many template arguments for class template 'UnaryFunctorImageFilter' typedef itk::BinaryFunctorImageFilter< ^ /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:12: error: 'Filter' (aka 'int') is not a class, namespace, or enumeration typename Filter::Pointer flt = Filter::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:20: error: expected a qualified name after 'typename' typename Filter::Pointer flt = Filter::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:20: error: unknown type name 'Pointer' /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:34: error: 'Filter' (aka 'int') is not a class, namespace, or enumeration typename Filter::Pointer flt = Filter::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 3> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 3> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 3> >') is ambiguous m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 3>::BuildCompositeImages' requested here template class MultiImageOpticalFlowHelper<float, 3>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 3> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 3> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 3> >') is ambiguous m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:377:53: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> >, std::__1::allocator<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> >') is ambiguous m_JitterComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:61:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMultiComponentImageMetricTraits<float, 3> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:451:12: note: in instantiation of template class 'MultiImageOpticalFlowImageFilter<DefaultMultiComponentImageMetricTraits<float, 3> >' requested here typename FilterType::Pointer filter = FilterType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 3>::ComputeOpticalFlowField' requested here template class MultiImageOpticalFlowHelper<float, 3>; ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:866:18: error: no template named 'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'? typedef itk::BinaryFunctorImageFilter< ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ UnaryFunctorImageFilter /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: 'UnaryFunctorImageFilter' declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:866:18: error: too many template arguments for class template 'UnaryFunctorImageFilter' typedef itk::BinaryFunctorImageFilter< ^ /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:14: error: 'RowFilterType' (aka 'int') is not a class, namespace, or enumeration typename RowFilterType::Pointer rof = RowFilterType::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:29: error: expected a qualified name after 'typename' typename RowFilterType::Pointer rof = RowFilterType::New(); ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:87:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMultiComponentMutualInfoImageMetricTraits<float, unsigned char, 3> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:522:12: note: in instantiation of template class 'MultiComponentMutualInfoImageMetric<DefaultMultiComponentMutualInfoImageMetricTraits<float, unsigned char, 3> >' requested here typename MetricType::Pointer metric = MetricType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 3>::ComputeMIFlowField' requested here template class MultiImageOpticalFlowHelper<float, 3>; ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MahalanobisDistanceToTargetWarpMetric.h:65:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMahalanobisDistanceToTargetMetricTraits<float, 3> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:632:12: note: in instantiation of template class 'MahalanobisDistanceToTargetWarpMetric<DefaultMahalanobisDistanceToTargetMetricTraits<float, 3> >' requested here typename FilterType::Pointer filter = FilterType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 3>::ComputeMahalanobisMetricImage' requested here template class MultiImageOpticalFlowHelper<float, 3>; ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:29: error: unknown type name 'Pointer' /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:43: error: 'RowFilterType' (aka 'int') is not a class, namespace, or enumeration typename RowFilterType::Pointer rof = RowFilterType::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:904:16: error: no template named 'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'? typedef itk::BinaryFunctorImageFilter<MatrixImageType,MatrixImageType,MatrixImageT... ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ UnaryFunctorImageFilter /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: 'UnaryFunctorImageFilter' declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 4> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 4> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 4> >') is ambiguous m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1312:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 4>::BuildCompositeImages' requested here template class MultiImageOpticalFlowHelper<float, 4>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 4> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 4> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 4> >') is ambiguous m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/greedyapi.dir/src/MultiImageRegistrationHelper.cxx.o] Error 1 /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2426:10: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? itk::MultiThreader::SetGlobalMaximumNumberOfThreads(param.threads); ~~~~~^~~~~~~~~~~~~ MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2430:75: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? ..."Executing with the default number of threads: " << itk::MultiThreader::GetGlobalDef... ~~~~~^~~~~~~~~~~~~ MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to 'GreedyApproach<2, float>::VectorImagePointer' (aka 'SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> >') is ambiguous VectorImagePointer uLevel = NULL; ^ ~~~~ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2467:16: note: in instantiation of member function 'GreedyApproach<2, float>::RunDeformable' requested here template class GreedyApproach<2, float>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47: /Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template class 'FastWarpCompositeImageFilter<itk::Image<float, 2>, itk::Image<float, 2>, itk::Image<itk::CovariantVector<float, 2>, 2> >' requested here typename InterpFilter::Pointer fltInterp = InterpFilter::New(); ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2467:16: note: in instantiation of member function 'GreedyApproach<2, float>::RunReslice' requested here template class GreedyApproach<2, float>; ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to 'GreedyApproach<3, float>::VectorImagePointer' (aka 'SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> >') is ambiguous VectorImagePointer uLevel = NULL; ^ ~~~~ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2468:16: note: in instantiation of member function 'GreedyApproach<3, float>::RunDeformable' requested here template class GreedyApproach<3, float>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47: /Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template class 'FastWarpCompositeImageFilter<itk::Image<float, 3>, itk::Image<float, 3>, itk::Image<itk::CovariantVector<float, 3>, 3> >' requested here typename InterpFilter::Pointer fltInterp = InterpFilter::New(); ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2468:16: note: in instantiation of member function 'GreedyApproach<3, float>::RunReslice' requested here template class GreedyApproach<3, float>; ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to 'GreedyApproach<4, float>::VectorImagePointer' (aka 'SmartPointer<itk::Image<itk::CovariantVector<float, 4>, 4> >') is ambiguous VectorImagePointer uLevel = NULL; ^ ~~~~ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2469:16: note: in instantiation of member function 'GreedyApproach<4, float>::RunDeformable' requested here template class GreedyApproach<4, float>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47: /Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template class 'FastWarpCompositeImageFilter<itk::Image<float, 4>, itk::Image<float, 4>, itk::Image<itk::CovariantVector<float, 4>, 4> >' requested here typename InterpFilter::Pointer fltInterp = InterpFilter::New(); ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2469:16: note: in instantiation of member function 'GreedyApproach<4, float>::RunReslice' requested here template class GreedyApproach<4, float>; ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to 'GreedyApproach<2, double>::VectorImagePointer' (aka 'SmartPointer<itk::Image<itk::CovariantVector<double, 2>, 2> >') is ambiguous VectorImagePointer uLevel = NULL; ^ ~~~~ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2470:16: note: in instantiation of member function 'GreedyApproach<2, double>::RunDeformable' requested here template class GreedyApproach<2, double>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47: /Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template class 'FastWarpCompositeImageFilter<itk::Image<double, 2>, itk::Image<double, 2>, itk::Image<itk::CovariantVector<double, 2>, 2> >' requested here typename InterpFilter::Pointer fltInterp = InterpFilter::New(); ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2470:16: note: in instantiation of member function 'GreedyApproach<2, double>::RunReslice' requested here template class GreedyApproach<2, double>; ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to 'GreedyApproach<3, double>::VectorImagePointer' (aka 'SmartPointer<itk::Image<itk::CovariantVector<double, 3>, 3> >') is ambiguous VectorImagePointer uLevel = NULL; ^ ~~~~ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2471:16: note: in instantiation of member function 'GreedyApproach<3, double>::RunDeformable' requested here template class GreedyApproach<3, double>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47: /Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template class 'FastWarpCompositeImageFilter<itk::Image<double, 3>, itk::Image<double, 3>, itk::Image<itk::CovariantVector<double, 3>, 3> >' requested here typename InterpFilter::Pointer fltInterp = InterpFilter::New(); ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2471:16: note: in instantiation of member function 'GreedyApproach<3, double>::RunReslice' requested here template class GreedyApproach<3, double>; ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:1139:22: error: conversion from 'long' to 'GreedyApproach<4, double>::VectorImagePointer' (aka 'SmartPointer<itk::Image<itk::CovariantVector<double, 4>, 4> >') is ambiguous VectorImagePointer uLevel = NULL; ^ ~~~~ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2472:16: note: in instantiation of member function 'GreedyApproach<4, double>::RunDeformable' requested here template class GreedyApproach<4, double>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:47: /Users/shuai/Greedy/greedy/src/ITKFilters/include/FastWarpCompositeImageFilter.h:130:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2062:18: note: in instantiation of template class 'FastWarpCompositeImageFilter<itk::Image<double, 4>, itk::Image<double, 4>, itk::Image<itk::CovariantVector<double, 4>, 4> >' requested here typename InterpFilter::Pointer fltInterp = InterpFilter::New(); ^ /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:2472:16: note: in instantiation of member function 'GreedyApproach<4, double>::RunReslice' requested here template class GreedyApproach<4, double>; ^ [ 78%] Linking CXX executable test_accum [ 78%] Built target test_accum 15 errors generated. make[2]: *** [CMakeFiles/greedyapi.dir/src/GreedyAPI.cxx.o] Error 1 make[1]: *** [CMakeFiles/greedyapi.dir/all] Error 2 make: *** [all] Error 2 (base) ShuaideMacBook-Pro:build shuai$ (base) ShuaideMacBook-Pro:build shuai$ (base) ShuaideMacBook-Pro:build shuai$ vim CMakeCache.txt Makefile stackg_usage_splat.h CMakeFiles/ Testing/ stackg_usage_voliter.h CTestTestfile.cmake cmake_install.cmake stackg_usage_volmatch.h DartConfiguration.tcl stackg_usage_init.h test_accum GreedyVersion.cxx stackg_usage_main.h text_to_hex ITKFactoryRegistration/ stackg_usage_recon.h (base) ShuaideMacBook-Pro:build shuai$ vim ../greedy/CMakeLists.txt (base) ShuaideMacBook-Pro:build shuai$ ccmake ../greedy/ (base) ShuaideMacBook-Pro:build shuai$ rm -rf * (base) ShuaideMacBook-Pro:build shuai$ ccmake ../greedy/ (base) ShuaideMacBook-Pro:build shuai$ make -j 8 Scanning dependencies of target text_to_hex Scanning dependencies of target greedyapi Scanning dependencies of target test_accum [ 5%] Building C object CMakeFiles/text_to_hex.dir/utilities/hexdump.c.o /Users/shuai/Greedy/greedy/utilities/hexdump.c:732:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if VM_FASTER ^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER' #define VM_FASTER defined(*GNUC*) ^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:745:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if VM_FASTER ^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER' #define VM_FASTER defined(*GNUC*) ^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:935:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if VM_FASTER ^ /Users/shuai/Greedy/greedy/utilities/hexdump.c:730:19: note: expanded from macro 'VM_FASTER' #define VM_FASTER defined(*GNUC*) ^ [ 10%] Building CXX object CMakeFiles/test_accum.dir/testing/src/TestOneDimensionalInPlaceAccumulateFilter.cxx.o [ 21%] Building CXX object CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o [ 21%] Building CXX object CMakeFiles/greedyapi.dir/src/GreedyParameters.cxx.o [ 31%] Building CXX object CMakeFiles/greedyapi.dir/src/MultiImageRegistrationHelper.cxx.o [ 31%] Building CXX object CMakeFiles/greedyapi.dir/src/GreedyAPI.cxx.o [ 36%] Building CXX object CMakeFiles/greedyapi.dir/src/AffineCostFunctions.cxx.o 3 warnings generated. [ 42%] Linking C executable text_to_hex [ 42%] Built target text_to_hex Scanning dependencies of target docs_to_hex [ 47%] Generating stackg_usage_main.h [ 52%] Generating stackg_usage_init.h [ 57%] Generating stackg_usage_recon.h [ 63%] Generating stackg_usage_volmatch.h [ 68%] Generating stackg_usage_voliter.h [ 73%] Generating stackg_usage_splat.h [ 73%] Built target docs_to_hex In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:280: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.txx:61:12: error: conversion from 'long' to 'typename itk::DataObject::Pointer' (aka 'SmartPointeritk::DataObject') is ambiguous return NULL; ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:201:13: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? if ( itk::MultiThreader::GetGlobalMaximumNumberOfThreads() != 0 ) ~~~~~^~~~~~~~~~~~~ MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:203:66: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? nbOfThreads = vnl_math_min( this->GetNumberOfThreads(), itk::MultiThreader::GetGloba... ~~~~~^~~~~~~~~~~~~ MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:466:13: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? if ( itk::MultiThreader::GetGlobalMaximumNumberOfThreads() != 0 ) ~~~~~^~~~~~~~~~~~~ MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:38: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:363: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.txx:468:66: error: no member named 'MultiThreader' in namespace 'itk'; did you mean 'MultiThreaderBase'? nbOfThreads = vnl_math_min( this->GetNumberOfThreads(), itk::MultiThreader::GetGloba... ~~~~~^~~~~~~~~~~~~ MultiThreaderBase /usr/local/include/ITK-5.0/itkMultiThreaderBase.h:61:24: note: 'MultiThreaderBase' declared here class ITKCommon_EXPORT MultiThreaderBase : public Object ^ In file included from /Users/shuai/Greedy/greedy/src/GreedyAPI.cxx:48: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:280: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.txx:61:12: error: conversion from 'long' to 'typename itk::DataObject::Pointer' (aka 'SmartPointeritk::DataObject') is ambiguous return NULL; ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 2> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 2> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 2> >') is ambiguous m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 2>::BuildCompositeImages' requested here template class MultiImageOpticalFlowHelper<float, 2>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 2> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 2> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 2> >') is ambiguous m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:377:53: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> >, std::__1::allocator<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<itk::CovariantVector<float, 2>, 2> >') is ambiguous m_JitterComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:61:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMultiComponentImageMetricTraits<float, 2> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:451:12: note: in instantiation of template class 'MultiImageOpticalFlowImageFilter<DefaultMultiComponentImageMetricTraits<float, 2> >' requested here typename FilterType::Pointer filter = FilterType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 2>::ComputeOpticalFlowField' requested here template class MultiImageOpticalFlowHelper<float, 2>; ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:87:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMultiComponentMutualInfoImageMetricTraits<float, unsigned char, 2> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:522:12: note: in instantiation of template class 'MultiComponentMutualInfoImageMetric<DefaultMultiComponentMutualInfoImageMetricTraits<float, unsigned char, 2> >' requested here typename MetricType::Pointer metric = MetricType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 2>::ComputeMIFlowField' requested here template class MultiImageOpticalFlowHelper<float, 2>; ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:707:16: error: no template named 'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'? typedef itk::BinaryFunctorImageFilter< ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ UnaryFunctorImageFilter /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: 'UnaryFunctorImageFilter' declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:707:16: error: too many template arguments for class template 'UnaryFunctorImageFilter' typedef itk::BinaryFunctorImageFilter< ^ /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:12: error: 'Filter' (aka 'int') is not a class, namespace, or enumeration typename Filter::Pointer flt = Filter::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:20: error: expected a qualified name after 'typename' typename Filter::Pointer flt = Filter::New(); ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MahalanobisDistanceToTargetWarpMetric.h:65:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMahalanobisDistanceToTargetMetricTraits<float, 2> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:632:12: note: in instantiation of template class 'MahalanobisDistanceToTargetWarpMetric<DefaultMahalanobisDistanceToTargetMetricTraits<float, 2> >' requested here typename FilterType::Pointer filter = FilterType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1310:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 2>::ComputeMahalanobisMetricImage' requested here template class MultiImageOpticalFlowHelper<float, 2>; ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:20: error: unknown type name 'Pointer' /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:709:34: error: 'Filter' (aka 'int') is not a class, namespace, or enumeration typename Filter::Pointer flt = Filter::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:748:16: error: no template named 'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'? typedef itk::BinaryFunctorImageFilter< ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ UnaryFunctorImageFilter /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: 'UnaryFunctorImageFilter' declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:748:16: error: too many template arguments for class template 'UnaryFunctorImageFilter' typedef itk::BinaryFunctorImageFilter< ^ /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:12: error: 'Filter' (aka 'int') is not a class, namespace, or enumeration typename Filter::Pointer flt = Filter::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:20: error: expected a qualified name after 'typename' typename Filter::Pointer flt = Filter::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 3> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 3> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 3> >') is ambiguous m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 3>::BuildCompositeImages' requested here template class MultiImageOpticalFlowHelper<float, 3>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:353:57: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 3> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 3> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 3> >') is ambiguous m_MovingMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:377:53: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> >, std::__1::allocator<itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<itk::CovariantVector<float, 3>, 3> >') is ambiguous m_JitterComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:69:13: note: candidate constructor constexpr SmartPointer (std::nullptr_t p) noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:95:3: note: candidate constructor SmartPointer (ObjectType *p) noexcept: ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:61:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMultiComponentImageMetricTraits<float, 3> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:451:12: note: in instantiation of template class 'MultiImageOpticalFlowImageFilter<DefaultMultiComponentImageMetricTraits<float, 3> >' requested here typename FilterType::Pointer filter = FilterType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 3>::ComputeOpticalFlowField' requested here template class MultiImageOpticalFlowHelper<float, 3>; ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentMutualInfoImageMetric.h:87:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMultiComponentMutualInfoImageMetricTraits<float, unsigned char, 3> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:522:12: note: in instantiation of template class 'MultiComponentMutualInfoImageMetric<DefaultMultiComponentMutualInfoImageMetricTraits<float, unsigned char, 3> >' requested here typename MetricType::Pointer metric = MetricType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 3>::ComputeMIFlowField' requested here template class MultiImageOpticalFlowHelper<float, 3>; ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:20: error: unknown type name 'Pointer' /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:750:34: error: 'Filter' (aka 'int') is not a class, namespace, or enumeration typename Filter::Pointer flt = Filter::New(); ^ In file included from /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:35: In file included from /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiImageOpticalFlowImageFilter.h:30: /Users/shuai/Greedy/greedy/src/ITKFilters/include/MultiComponentImageMetricBase.h:220:16: error: 'VerifyInputInformation' marked 'override' but does not override any member functions virtual void VerifyInputInformation() ITK_OVERRIDE {} ^ /Users/shuai/Greedy/greedy/src/ITKFilters/include/MahalanobisDistanceToTargetWarpMetric.h:65:12: note: in instantiation of template class 'MultiComponentImageMetricBase<DefaultMahalanobisDistanceToTargetMetricTraits<float, 3> >' requested here public MultiComponentImageMetricBase ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:632:12: note: in instantiation of template class 'MahalanobisDistanceToTargetWarpMetric<DefaultMahalanobisDistanceToTargetMetricTraits<float, 3> >' requested here typename FilterType::Pointer filter = FilterType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1311:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 3>::ComputeMahalanobisMetricImage' requested here template class MultiImageOpticalFlowHelper<float, 3>; ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:866:18: error: no template named 'BinaryFunctorImageFilter' in namespace 'itk'; did you mean 'UnaryFunctorImageFilter'? typedef itk::BinaryFunctorImageFilter< ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ UnaryFunctorImageFilter /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: 'UnaryFunctorImageFilter' declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:866:18: error: too many template arguments for class template 'UnaryFunctorImageFilter' typedef itk::BinaryFunctorImageFilter< ^ /usr/local/include/ITK-5.0/itkUnaryFunctorImageFilter.h:50:27: note: template is declared here class ITK_TEMPLATE_EXPORT UnaryFunctorImageFilter:public InPlaceImageFilter< TInputI... ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:14: error: 'RowFilterType' (aka 'int') is not a class, namespace, or enumeration typename RowFilterType::Pointer rof = RowFilterType::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:29: error: expected a qualified name after 'typename' typename RowFilterType::Pointer rof = RowFilterType::New(); ^ /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:29: error: unknown type name 'Pointer' /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:868:43: error: 'RowFilterType' (aka 'int') is not a class, namespace, or enumeration typename RowFilterType::Pointer rof = RowFilterType::New(); ^ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:301:59: error: conversion from 'long' to 'const std::__1::__vector_base<itk::SmartPointer<itk::Image<float, 4> >, std::__1::allocator<itk::SmartPointer<itk::Image<float, 4> > > >::value_type' (aka 'const itk::SmartPointer<itk::Image<float, 4> >') is ambiguous m_GradientMaskComposite.resize(m_PyramidFactors.size(), NULL); ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stddef.h 💯18: note: expanded from macro 'NULL' define NULL __null ^~~~~~ /Users/shuai/Greedy/greedy/src/MultiImageRegistrationHelper.cxx:1312:16: note: in instantiation of member function 'MultiImageOpticalFlowHelper<float, 4>::BuildCompositeImages' requested here template class MultiImageOpticalFlowHelper<float, 4>; ^ /usr/local/include/ITK-5.0/
Oh, finally I make it. Thank you, Paul. I'll try to use greedy now.
Hello.
I met a problem when building this project. could you pls help me?
My system is Macos.
My clang version is below. Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
I have installed ITK5.0 successfully and pass the ITK installation test.
Here is the log. [ 10%] Built target text_to_hex [ 15%] Building CXX object CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27: In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31: In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21: In file included from /usr/local/include/ITK-5.0/itkMacro.h:42: /usr/local/include/ITK-5.0/itkConfigure.h:59:6: warning: "WARNING: The current project is configured to use a C++ standard version older than the C++ standard used for this build of ITK" [-W#warnings]
warning "WARNING: The current project is configured to use a C++ standard version olde...
In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27: In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31: In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21: /usr/local/include/ITK-5.0/itkMacro.h:166:6: error: "Apple LLVM < 5.0 (clang < 3.3) is not supported under ITKv5"
error "Apple LLVM < 5.0 (clang < 3.3) is not supported under ITKv5"
In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27: In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31: In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21: In file included from /usr/local/include/ITK-5.0/itkMacro.h:1333: In file included from /usr/local/include/ITK-5.0/itkExceptionObject.h:28: /usr/local/include/ITK-5.0/itkSmartPointer.h:54:22: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using ObjectType = TObjectType; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:57:5: warning: alias declarations are a C++11 extension [-Wc++11-extensions] typename std::enable_if<std::is_convertible<T, TObjectType>::value>; ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:60:3: error: unknown type name 'constexpr' constexpr SmartPointer () noexcept: ^ /usr/local/include/ITK-5.0/itkSmartPointer.h:60:13: error: constructor cannot have a return type constexpr SmartPointer () noexcept: ^& l, const SmartPointer& r ) noexcept
^
;
/usr/local/include/ITK-5.0/itkSmartPointer.h:206:73: error: C++ requires a type specifier for all
declarations
bool operator==( const SmartPointer& l, const SmartPointer& r ) noexcept
^
/usr/local/include/ITK-5.0/itkSmartPointer.h:206:81: error: expected ';' after top level declarator
bool operator==( const SmartPointer& l, const SmartPointer& r ) noexcept
^
;
In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27:
In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31:
In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21:
In file included from /usr/local/include/ITK-5.0/itkMacro.h:1333:
/usr/local/include/ITK-5.0/itkExceptionObject.h:54:22: warning: alias declarations are a C++11
extension [-Wc++11-extensions]
using Superclass = std::exception;
^
/usr/local/include/ITK-5.0/itkExceptionObject.h:58:20: error: expected ';' at end of declaration
list
ExceptionObject() noexcept;
^
;
/usr/local/include/ITK-5.0/itkExceptionObject.h:64:48: error: expected ';' at end of declaration
list
ExceptionObject(const ExceptionObject & orig) noexcept;
^
;
/usr/local/include/ITK-5.0/itkExceptionObject.h:67:3: error: exception specification of overriding
function is more lax than base version
~ExceptionObject() noexcept override;
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/exception:101:13: note: overridden virtual
function is here
virtual ~exception() _NOEXCEPT;
^
In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27:
In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31:
In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21:
In file included from /usr/local/include/ITK-5.0/itkMacro.h:1333:
/usr/local/include/ITK-5.0/itkExceptionObject.h:67:21: error: expected ';' at end of declaration
list
~ExceptionObject() noexcept override;
^
;
/usr/local/include/ITK-5.0/itkExceptionObject.h:70:60: error: expected ';' at end of declaration
list
ExceptionObject & operator=(const ExceptionObject & orig) noexcept;
^
;
/usr/local/include/ITK-5.0/itkExceptionObject.h:106:16: error: exception specification of overriding
function is more lax than base version
const char what() const noexcept override;
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/exception:102:25: note: overridden virtual
function is here
virtual const char what() const _NOEXCEPT;
^
In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.cxx:27:
In file included from /Users/shuai/Greedy/greedy/src/lddmm_data.h:31:
In file included from /usr/local/include/ITK-5.0/itkNumericTraits.h:21:
In file included from /usr/local/include/ITK-5.0/itkMacro.h:1333:
/usr/local/include/ITK-5.0/itkExceptionObject.h:106:28: error: expected ';' at end of declaration
list
const char what() const noexcept override;
^
;
/usr/local/include/ITK-5.0/itkExceptionObject.h:171:26: error: expected ';' at end of declaration
list
MemoryAllocationError() noexcept:ExceptionObject() {}
^
;
/usr/local/include/ITK-5.0/itkExceptionObject.h:188:39: warning: 'override' keyword is a C++11
extension [-Wc++11-extensions]
const char GetNameOfClass() const override
^
/usr/local/include/ITK-5.0/itkExceptionObject.h:202:15: error: expected ';' at end of declaration
list
RangeError() noexcept:ExceptionObject() {}
^
;
/usr/local/include/ITK-5.0/itkExceptionObject.h:213:39: warning: 'override' keyword is a C++11
extension [-Wc++11-extensions]
const char GetNameOfClass() const override
^
/usr/local/include/ITK-5.0/itkExceptionObject.h:230:25: error: expected ';' at end of declaration
list
InvalidArgumentError() noexcept:ExceptionObject() {}
^
;
/usr/local/include/ITK-5.0/itkExceptionObject.h:245:39: warning: 'override' keyword is a C++11
extension [-Wc++11-extensions]
const char GetNameOfClass() const override
^
/usr/local/include/ITK-5.0/itkExceptionObject.h:259:30: error: expected ';' at end of declaration
list
IncompatibleOperandsError() noexcept:ExceptionObject() {}
^
;
/usr/local/include/ITK-5.0/itkExceptionObject.h:270:39: warning: 'override' keyword is a C++11
extension [-Wc++11-extensions]
const char * GetNameOfClass() const override
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
8 warnings and 20 errors generated.
make[2]: [CMakeFiles/greedyapi.dir/src/lddmm_data.cxx.o] Error 1
make[1]: [CMakeFiles/greedyapi.dir/all] Error 2
make: *** [all] Error 2
~~~ /usr/local/include/ITK-5.0/itkSmartPointer.h:60:28: error: expected ';' at end of declaration list constexpr SmartPointer () noexcept: ^ ; /usr/local/include/ITK-5.0/itkSmartPointer.h:192:18: error: expected ';' at end of declaration list void Register() noexcept ^ ; /usr/local/include/ITK-5.0/itkSmartPointer.h:206:71: error: expected ';' at end of declaration bool operator==( const SmartPointer