Dear ITK-SNAP users,
I am trying to build Convert3D from source, and I am having build failures.
I am using gcc/9.2.0 and cmake/3.22.2 (which I built ITK5), I have the following error during build:
[ 53%] Building CXX object CMakeFiles/cnd_driver.dir/adapters/PrintImageInfo.cxx.o
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx: In member function ‘void PrintImageInfo<TPixel, VDim>::operator()(bool)’:
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:212:34: error: ‘ITK_COORDINATE_ORIENTATION_INVALID’ is not a member of ‘itk::SpatialOrientation’; did you mean ‘ITK_COORDINATE_ORIENTATION_IAL’?
212 | itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_INVALID;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ITK_COORDINATE_ORIENTATION_IAL
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx: In instantiation of ‘void PrintImageInfo<TPixel, VDim>::operator()(bool) [with TPixel = double; unsigned int VDim = 2]’:
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:258:16: required from here
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:195:5: warning: ‘vnl_matrix_fixed<T, num_rows, num_cols>::operator const vnl_matrix_ref<T>() const [with T = double; unsigned int num_rows = 2; unsigned int num_cols = 2]’ is deprecated: Implicit cast conversion is dangerous.\nUSE: .as_matrix() or .as_ref() member function for clarity. [-Wdeprecated-declarations]
195 | c->PrintMatrix(c->sout(), image->GetDirection().GetVnlMatrix());
| ^
In file included from /n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.hxx:9,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkMatrix.h:25,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImageBase.h:34,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImage.h:28,
from /home/cl266/workspace/c3d/itkextras/itkOrientedRASImage.h:4,
from /home/cl266/workspace/c3d/ConvertImageND.h:29,
from /home/cl266/workspace/c3d/adapters/ConvertAdapter.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:26:
/n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.h:704:3: note: declared here
704 | operator const vnl_matrix_ref<T>() const { return this->as_ref(); }
| ^~~~~~~~
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:199:5: warning: ‘vnl_matrix_fixed<T, num_rows, num_cols>::operator const vnl_matrix_ref<T>() const [with T = double; unsigned int num_rows = 3; unsigned int num_cols = 3]’ is deprecated: Implicit cast conversion is dangerous.\nUSE: .as_matrix() or .as_ref() member function for clarity. [-Wdeprecated-declarations]
199 | c->PrintMatrix(c->sout(),
| ^
In file included from /n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.hxx:9,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkMatrix.h:25,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImageBase.h:34,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImage.h:28,
from /home/cl266/workspace/c3d/itkextras/itkOrientedRASImage.h:4,
from /home/cl266/workspace/c3d/ConvertImageND.h:29,
from /home/cl266/workspace/c3d/adapters/ConvertAdapter.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:26:
/n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.h:704:3: note: declared here
704 | operator const vnl_matrix_ref<T>() const { return this->as_ref(); }
| ^~~~~~~~
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx: In instantiation of ‘void PrintImageInfo<TPixel, VDim>::operator()(bool) [with TPixel = double; unsigned int VDim = 3]’:
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:259:16: required from here
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:195:5: warning: ‘vnl_matrix_fixed<T, num_rows, num_cols>::operator const vnl_matrix_ref<T>() const [with T = double; unsigned int num_rows = 3; unsigned int num_cols = 3]’ is deprecated: Implicit cast conversion is dangerous.\nUSE: .as_matrix() or .as_ref() member function for clarity. [-Wdeprecated-declarations]
195 | c->PrintMatrix(c->sout(), image->GetDirection().GetVnlMatrix());
| ^
In file included from /n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.hxx:9,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkMatrix.h:25,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImageBase.h:34,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImage.h:28,
from /home/cl266/workspace/c3d/itkextras/itkOrientedRASImage.h:4,
from /home/cl266/workspace/c3d/ConvertImageND.h:29,
from /home/cl266/workspace/c3d/adapters/ConvertAdapter.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:26:
/n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.h:704:3: note: declared here
704 | operator const vnl_matrix_ref<T>() const { return this->as_ref(); }
| ^~~~~~~~
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:199:5: warning: ‘vnl_matrix_fixed<T, num_rows, num_cols>::operator const vnl_matrix_ref<T>() const [with T = double; unsigned int num_rows = 4; unsigned int num_cols = 4]’ is deprecated: Implicit cast conversion is dangerous.\nUSE: .as_matrix() or .as_ref() member function for clarity. [-Wdeprecated-declarations]
199 | c->PrintMatrix(c->sout(),
| ^
In file included from /n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.hxx:9,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkMatrix.h:25,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImageBase.h:34,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImage.h:28,
from /home/cl266/workspace/c3d/itkextras/itkOrientedRASImage.h:4,
from /home/cl266/workspace/c3d/ConvertImageND.h:29,
from /home/cl266/workspace/c3d/adapters/ConvertAdapter.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:26:
/n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.h:704:3: note: declared here
704 | operator const vnl_matrix_ref<T>() const { return this->as_ref(); }
| ^~~~~~~~
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx: In instantiation of ‘void PrintImageInfo<TPixel, VDim>::operator()(bool) [with TPixel = double; unsigned int VDim = 4]’:
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:260:16: required from here
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:195:5: warning: ‘vnl_matrix_fixed<T, num_rows, num_cols>::operator const vnl_matrix_ref<T>() const [with T = double; unsigned int num_rows = 4; unsigned int num_cols = 4]’ is deprecated: Implicit cast conversion is dangerous.\nUSE: .as_matrix() or .as_ref() member function for clarity. [-Wdeprecated-declarations]
195 | c->PrintMatrix(c->sout(), image->GetDirection().GetVnlMatrix());
| ^
In file included from /n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.hxx:9,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkMatrix.h:25,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImageBase.h:34,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImage.h:28,
from /home/cl266/workspace/c3d/itkextras/itkOrientedRASImage.h:4,
from /home/cl266/workspace/c3d/ConvertImageND.h:29,
from /home/cl266/workspace/c3d/adapters/ConvertAdapter.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:26:
/n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.h:704:3: note: declared here
704 | operator const vnl_matrix_ref<T>() const { return this->as_ref(); }
| ^~~~~~~~
/home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:199:5: warning: ‘vnl_matrix_fixed<T, num_rows, num_cols>::operator const vnl_matrix_ref<T>() const [with T = double; unsigned int num_rows = 5; unsigned int num_cols = 5]’ is deprecated: Implicit cast conversion is dangerous.\nUSE: .as_matrix() or .as_ref() member function for clarity. [-Wdeprecated-declarations]
199 | c->PrintMatrix(c->sout(),
| ^
In file included from /n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.hxx:9,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkMatrix.h:25,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImageBase.h:34,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /n/scratch/users/c/cl266/ITK/Modules/Core/Common/include/itkImage.h:28,
from /home/cl266/workspace/c3d/itkextras/itkOrientedRASImage.h:4,
from /home/cl266/workspace/c3d/ConvertImageND.h:29,
from /home/cl266/workspace/c3d/adapters/ConvertAdapter.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.h:29,
from /home/cl266/workspace/c3d/adapters/PrintImageInfo.cxx:26:
/n/scratch/users/c/cl266/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix_fixed.h:704:3: note: declared here
704 | operator const vnl_matrix_ref<T>() const { return this->as_ref(); }
| ^~~~~~~~
make[2]: *** [CMakeFiles/cnd_driver.dir/adapters/PrintImageInfo.cxx.o] Error 1
make[1]: *** [CMakeFiles/cnd_driver.dir/all] Error 2
make: *** [all] Error 2
How should I move forward for building from source? Any tips appreciated.