[Insight-users] problem with itkImageToVTKImageFilter.h

Ryma rima.sb4 at gmail.com
Tue Feb 14 10:02:57 EST 2012


Ok David, thanks for your help. But it's quite strange because when tried ITK
3.2 instead of ITK 4.0, i compiled InsightApplications with CMake i did not
even find Module_ITKVtkGlue=OFF  in order to turn it ON and i changed
nothing but the path of VTK_DIR. So i succeed to run this example.
Any way, it's a good idea putting (${ITK_LIBRARIES} ${VTK_LIBRARIES}), it's
really better.
Thank you.
Ryma

daviddoria wrote:
> 
> On Tue, Feb 14, 2012 at 9:44 AM, Ryma <rima.sb4 at gmail.com> wrote:
>>
>> Hi David,
>> I also thought that is not necessary to copy them, but i was obliged to
>> try
>> all the possibilities.
> 
> I can reproduce your error with Module_ITKVtkGlue=OFF in my ITK build,
> but when I turn it on, everything works as expected.
> 
> Also, it is much easier if you add the libraries like this:
> 
> TARGET_LINK_LIBRARIES ( myProject  ${ITK_LIBRARIES} ${VTK_LIBRARIES})
> 
> So you don't have to worry about which ones you need (though that was
> not the problem in this case).
> 
> 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.html
> 
> 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
> 
> 
-- 
View this message in context: http://old.nabble.com/problem-with-itkImageToVTKImageFilter.h-tp33309697p33322489.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list