[vtkusers] Iterative Closest Point Transform Problem

David Doria daviddoria at gmail.com
Tue Dec 6 07:31:55 EST 2011


On Tue, Dec 6, 2011 at 7:05 AM, Wenlong Wang <scc.wwl at gmail.com> wrote:
> Dear all,
>
> I'm trying to use vtkIterativeClosestPointTransform in my app with C++ in
> VS2008.
>
> I included the vtkIterativeClosestPointTransform.h in my source code.
>
> However, when I compile it, the compiler returns three errors says the
> SetSource, SetTarget and New function are Unresolved external symbols.
>
> I think that could because I didn;t add the correct .lib file in my project.
> Can anyone tell me which .lib file should I use? And where can I find it?
>
> Thank you very much.
>
> Best regards
> Long

You should set_target_libraries(yourProject ${VTK_LIBRARIES}) in your
CMakeLists.txt. There is an example CMakeLists.txt with every wiki
example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/IterativeClosestPointsTransform

David



More information about the vtkusers mailing list