[Insight-users] Image Registration example build error

Bill Lorensen bill.lorensen at gmail.com
Fri Dec 7 13:28:15 EST 2012


Actually, you can use

target_link_libraries(yourTarget ${ITK_LIBRARIES})

in ITK3 also.

But you must use it in ITK4

On Wed, Dec 5, 2012 at 2:19 PM, David Doria <daviddoria at gmail.com> wrote:
> 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
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list