[Insight-users] Image Registration example build error

David Doria daviddoria at gmail.com
Wed Dec 5 14:19:49 EST 2012


On Wed, Dec 5, 2012 at 2:15 PM, Ted Broom <tedbroom123 at gmail.com> wrote:

> Hi;
>
> Im just staring out with Image registration and trying to build the
> examples out of the source directory so I can modify them.  I however come
> up with this error.
>
> itkImageRegistrationMethod.hxx:223: error: ‘void
> itk::ImageRegistrationMethod<TFixedImage,
> TMovingImage>::StartRegistration() [with TFixedImage = itk::Image<float,
> 2u>, TMovingImage = itk::Image<float, 2u>]’ is protected
>
> I include ITKIO and ITKnumerics as target link libraries and
> have searched the forums but can't seem to find problems similar to mine.
>
> Advice is appreciated.
>
> Many thnaks
>


That sounds like an API change. Which version of ITK are you using? Are you
building the examples from that version against the same version of ITK.

In ITK4+, you should just use

target_link_libraries(yourTarget ${ITK_LIBRARIES})

rather than listing the libraries individually.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121205/31755f36/attachment.htm>


More information about the Insight-users mailing list