[vtkusers] Landmark Trasform Bug?

Wenlong Wang scc.wwl at gmail.com
Tue Oct 18 16:49:53 EDT 2011


David,

Thank you for your reply.

I follow the instructions from the textbook to use CMake to generate all
these .lib files and include them in my application. Then develop with them.
I've done other applications in this way before. So i think it should be
right. However, this is the only way I know to develop with VTK.

I know it is a silly question, but is there anyway else to develop VTK with
C++ and VS2008?

Thank you very much for your help.

Yours
Wenlong

2011/10/18 David Doria <daviddoria at gmail.com>

> 2011/10/18 Wenlong Wang <scc.wwl at gmail.com>:
> > Dear all,
> >
> > I'm trying to run the example on
> > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/LandmarkTransform . I'm
> > using VS2008 and C++ on Windows Vista. My VTK is installed at the root
> > directory of disk D.
> >
> > I've put the following items in include directory:
> >
> >
> >
> "D:\VTK 5.6\bin";"D:\VTK 5.6\bin\Common";"D:\VTK 5.6\bin\Utilities";"D:\VTK 5.6\bin\VolumeRendering";"D:\VTK 5.6\bin\Rendering";"D:\VTK 5.6\bin\Charts";"D:\VTK 5.6\bin\GUISupport\MFC";"D:\VTK 5.6\bin\Utilities\vtkalglib";"D:\VTK 5.6\vtk\Infovis";"D:\VTK 5.6\vtk\Geovis";"D:\VTK 5.6\vtk\Views";"D:\VTK 5.6\vtk\VolumeRendering";"D:\VTK 5.6\vtk\Hybrid";"D:\VTK 5.6\vtk\Widgets";"D:\VTK 5.6\vtk\Rendering";"D:\VTK 5.6\vtk\Charts";"D:\VTK 5.6\vtk\Rendering\Testing\Cxx";"D:\VTK 5.6\vtk\IO";"D:\VTK 5.6\vtk\Imaging";"D:\VTK 5.6\vtk\Graphics";"D:\VTK 5.6\vtk\GenericFiltering";"D:\VTK 5.6\vtk\Filtering";"D:\VTK 5.6\vtk\Common";"D:\VTK 5.6\vtk\Utilities";"D:\VTK 5.6\vtk\Common\Testing\Cxx";"D:\VTK 5.6\bin\Utilities\vtklibproj4";"D:\VTK 5.6\vtk\Utilities\vtklibproj4";"D:\VTK 5.6\bin\Utilities\DICOMParser";"D:\VTK 5.6\vtk\Utilities\DICOMParser";"D:\VTK 5.6\bin\Utilities\vtkfreetype\include";"D:\VTK 5.6\vtk\Utilities\vtkfreetype\include";"D:\VTK 5.6\bin\Utilities\vtknetcdf";"D:\VTK 5.6\vtk\Utilities\vtknetcdf";"D:\VTK 5.6\bin\Utilities\vtkexodus2\include";"D:\VTK 5.6\vtk\Utilities\vtkexodus2\include";"D:\VTK 5.6\bin\Utilities\MaterialLibrary";"D:\VTK 5.6\vtk\Utilities\MaterialLibrary";"D:\VTK 5.6\bin\Utilities\verdict";"D:\VTK 5.6\vtk\Utilities\verdict";"D:\VTK 5.6\vtk\Utilities\utf8\source";"D:\VTK 5.6\vtk\GUISupport\MFC";"D:\VTK 5.6\vtk\Utilities\vtkalglib";"D:\VTK 5.6\vtk\Utilities\ftgl\src";"D:\VTK 5.6\bin\Utilities\ftgl";
> >
> >
> >
> > And put following items in additional dependencies:
> >
> >
> >
> >
> kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "D:\VTK 5.6\bin\bin\Debug\vtkRendering.lib" "D:\VTK 5.6\bin\bin\Debug\vtkGraphics.lib" "D:\VTK 5.6\bin\bin\Debug\vtkverdict.lib" "D:\VTK 5.6\bin\bin\Debug\vtkImaging.lib" "D:\VTK 5.6\bin\bin\Debug\vtkIO.lib" "D:\VTK 5.6\bin\bin\Debug\vtkFiltering.lib" "D:\VTK 5.6\bin\bin\Debug\vtkCommon.lib" "D:\VTK 5.6\bin\bin\Debug\vtkDICOMParser.lib" "D:\VTK 5.6\bin\bin\Debug\vtkNetCDF.lib" "D:\VTK 5.6\bin\bin\Debug\vtkmetaio.lib" comctl32.lib wsock32.lib "D:\VTK 5.6\bin\bin\Debug\vtksqlite.lib" "D:\VTK 5.6\bin\bin\Debug\vtkpng.lib" "D:\VTK 5.6\bin\bin\Debug\vtktiff.lib" "D:\VTK 5.6\bin\bin\Debug\vtkzlib.lib" "D:\VTK 5.6\bin\bin\Debug\vtkjpeg.lib" "D:\VTK 5.6\bin\bin\Debug\vtkexpat.lib" "D:\VTK 5.6\bin\bin\Debug\vtksys.lib" ws2_32.lib vfw32.lib "D:\VTK 5.6\bin\bin\Debug\vtkftgl.lib" "D:\VTK 5.6\bin\bin\Debug\vtkfreetype.lib" opengl32.lib $(NOINHERIT)
> >
> >
> >
> > The application generated a error of "error lnk2019 unresolved external
> > symbol" which points to the vtkLandmarkTransform::SetSourceLandmarks()
> and
> > vtkLandmarkTransform::SetTargetLandmarks().
> >
> > Can anyone kindly help me?
> >
> > Many thanks in advance.
> >
> > Yours
> > Long
>
> This is certainly not a bug. Why are you not using CMake to create your
> project?
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111018/cc4f1b99/attachment.htm>


More information about the vtkusers mailing list