Skip to content

ITK build fixes

Bernhard Froehler edited this page Nov 14, 2017 · 3 revisions

4.10

TBD

4.11

To make ITK 4.11 compile, you have to apply two small patches. This is addressed in the 4.12.x release series (see http://review.source.kitware.com/#/c/22089/), so it's recommended to just go with the latest version of ITK instead of following the guide here. In case you have to stick to 4.11, do the following:

In Modules\Core\GPUCommon\include\itkGPUImage.h, change line 179 from

virtual void Graft(const Self *data) ITK_OVERRIDE;

to

  virtual void Graft(const Self *data);

In Modules\Core\GPUCommon\include\itkGPUImageToImageFilter.h, change lines 76-77 from

  virtual void GraftOutput(typename itk::GPUTraits< TOutputImage >::Type *output) ITK_OVERRIDE;
  virtual void GraftOutput(const DataObjectIdentifierType & key, typename itk::GPUTraits< TOutputImage >::Type *output) ITK_OVERRIDE;

to

  virtual void GraftOutput(typename itk::GPUTraits< TOutputImage >::Type *output);
  virtual void GraftOutput(const DataObjectIdentifierType & key, typename itk::GPUTraits< TOutputImage >::Type *output);

Clone this wiki locally