[Insight-users] ITKBasicFilters.lib

Matt McCormick matt.mccormick at kitware.com
Mon Feb 6 14:30:05 EST 2012


Hi Massi,

It is similiar with VTK: ${VTK_LIBRARIES} can replace explicit vtkRendering, ...

Please reply-to-all so that messages hit the mailing list.

Thanks,
Matt

2012/2/6 Massinissa Bandou <Massinissa.Bandou at usherbrooke.ca>:
> Hi Matt
>
> I did it and it seems working for the libraries but it still failing to
> build.
> I copied the same C++ code example in getting started II: using ITK with
> VTK:
> http://www.itk.org/ITK/help/tutorials.html
>
> Now I got this error (5 errors) in the output window:
>
>  Creating library C:/Users/Massi/Desktop/bin_myProject/Debug/myProject.lib
> and object C:/Users/Massi/Desktop/bin_myProject/Debug/myProject.exp
>
> 2>myProject.cxx.obj : error LNK2019: unresolved external symbol "public:
> void __thiscall vtkImageViewer::SetupInteractor(class
> vtkRenderWindowInteractor *)"
> (?SetupInteractor at vtkImageViewer@@QAEXPAVvtkRenderWindowInteractor@@@Z)
> referenced in function _main
>
> 2>myProject.cxx.obj : error LNK2019: unresolved external symbol "public:
> static class vtkRenderWindowInteractor * __cdecl
> vtkRenderWindowInteractor::New(void)"
> (?New at vtkRenderWindowInteractor@@SAPAV1 at XZ) referenced in function _main
>
> 2>myProject.cxx.obj : error LNK2019: unresolved external symbol "public:
> static class vtkImageViewer * __cdecl vtkImageViewer::New(void)"
> (?New at vtkImageViewer@@SAPAV1 at XZ) referenced in function _main
>
> 2>myProject.cxx.obj : error LNK2019: unresolved external symbol "public:
> class vtkImageData * __thiscall vtkImageAlgorithm::GetOutput(void)"
> (?GetOutput at vtkImageAlgorithm@@QAEPAVvtkImageData@@XZ) referenced in
> function "public: class vtkImageData * __thiscall
> itk::ImageToVTKImageFilter<class itk::Image<unsigned short,2>
>>::GetOutput(void)const "
> (?GetOutput@?$ImageToVTKImageFilter at V?$Image at G$01 at itk@@@itk@@QBEPAVvtkImageData@@XZ)
>
> 2>myProject.cxx.obj : error LNK2019: unresolved external symbol "public:
> static class vtkImageImport * __cdecl vtkImageImport::New(void)"
> (?New at vtkImageImport@@SAPAV1 at XZ) referenced in function "protected:
> __thiscall itk::ImageToVTKImageFilter<class itk::Image<unsigned short,2>
>>::ImageToVTKImageFilter<class itk::Image<unsigned short,2> >(void)"
> (??0?$ImageToVTKImageFilter at V?$Image at G$01 at itk@@@itk@@IAE at XZ)
>
> 2>C:\Users\Massi\Desktop\bin_myProject\Debug\myProject.exe : fatal error
> LNK1120: 5 unresolved externals
> 2>
> 2>Build FAILED.
>
> Thank you for your help!
>
>
>
> Massi
>
>
> Matt McCormick <matt.mccormick at kitware.com> a écrit :
>
>
>> 2012/2/6 Massinissa Bandou <Massinissa.Bandou at usherbrooke.ca>:
>>>
>>> I did it for ITKbasicFilters but now I got the same trouble with
>>> ITKIO.lib
>>> Actually this is what I have at the end of my CMakeLists.txt:
>>> TARGET_LINK_LIBRARIES ( myProject ${ITK_LIBRARIES} ITKCommon ITKIO
>>> vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering
>>> vtkCommon)
>>>
>>> Can I delete all libraries and keep only ${ITK_LIBRARIES}?
>>
>>
>> Yes, this is what you want to do.
>>
>> Matt
>>
>>>
>>> Massi
>>>
>>>
>>>
>>> Matt McCormick <matt.mccormick at kitware.com> a écrit :
>>>
>>>
>>>> Hi Massi,
>>>>
>>>> Please use ${ITK_LIBRARIES} instead of ITKBasicFilters to reference
>>>> the created libraries in your CMakeLists.txt.
>>>>
>>>> Hope this helps,
>>>> Matt
>>>>
>>>> 2012/2/6 Massinissa Bandou <Massinissa.Bandou at usherbrooke.ca>:
>>>>>
>>>>>
>>>>> Hello!
>>>>>
>>>>> I'm using win7 professional 64bits and VS10. Actually I try to
>>>>> understand
>>>>> ITK & VTK by doing some example.
>>>>> According to this web site:
>>>>> http://www.itk.org/ITK/help/tutorials.html
>>>>>
>>>>> I built ITK & VTK correctly but in the build folder, the
>>>>> ITKBasicFilters.lib
>>>>> is missing. I got ITKCommon1TestDriver instead of ITKCommon and so on
>>>>> with
>>>>> other libraries.
>>>>>
>>>>> How can I get it and fix the problem?
>>>>>
>>>>> Thank you
>>>>>
>>>>> Massi
>>>>>
>>>>> _____________________________________
>>>>> 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
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
>


More information about the Insight-users mailing list