<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<span class="Apple-style-span" style="color: rgb(42, 42, 42); font-family: Tahoma, Verdana, Arial, sans-serif; "><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">Hello,</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; "><br style="line-height: 17px; "></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">I am working on a project which requires the Delaunay triangulation operation. I decided to use vtk Delaunay2D class to do this task.</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">I garbed the vtk 5.6 source and built it by using MSVC 10 in windows 7.</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; "><br style="line-height: 17px; "></font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">In the project properties->VC++ Directories->Include Directories, I added the vtk h files location.</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">In the project properties->VC++ Directories->Library Directories, I added the lib file location.</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">I also put put vtkCommon.lib;vtkFiltering.lib;vtkGraphics.lib;vtkGenericFiltering.lib;vtkDICOMParser.lib to project properties->Linker->Input->Additional Dependencies.</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; "><br style="line-height: 17px; "></font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">When I compile my project, I got following compiling errors, it seems that I have told the compiler where is the function body of the vtk functions, but I think to set the additional dependencies should solve the problem. I also tried to added the vtk lib folder to the windows environment variable->path, have gotten luck :(</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; "><br style="line-height: 17px; "></font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">Anyone has any idea how can I solve the problem ?</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; "><br style="line-height: 17px; "></font></div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1> Generating Code...</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1> Compiling...</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1> Color.cpp</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1> Generating Code...</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsMeshGenerator.obj : error LNK2019: unresolved external symbol "public: class vtkCellArray * __thiscall vtkPolyData::GetPolys(void)" (?GetPolys@vtkPolyData@@QAEPAVvtkCellArray@@XZ) referenced in function "public: class lsMesh * __thiscall MeshGenerator::ConvertVTKPolyDataToLSMesh(class lsMesh *,class vtkDelaunay2D *)" (?ConvertVTKPolyDataToLSMesh@MeshGenerator@@QAEPAVlsMesh@@PAV2@PAVvtkDelaunay2D@@@Z)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsMeshGenerator.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkPolyData::BuildLinks(int)" (?BuildLinks@vtkPolyData@@QAEXH@Z) referenced in function "public: class lsMesh * __thiscall MeshGenerator::ConvertVTKPolyDataToLSMesh(class lsMesh *,class vtkDelaunay2D *)" (?ConvertVTKPolyDataToLSMesh@MeshGenerator@@QAEPAVlsMesh@@PAV2@PAVvtkDelaunay2D@@@Z)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsMeshGenerator.obj : error LNK2019: unresolved external symbol "public: class vtkPolyData * __thiscall vtkPolyDataAlgorithm::GetOutput(void)" (?GetOutput@vtkPolyDataAlgorithm@@QAEPAVvtkPolyData@@XZ) referenced in function "public: class lsMesh * __thiscall MeshGenerator::ConvertVTKPolyDataToLSMesh(class lsMesh *,class vtkDelaunay2D *)" (?ConvertVTKPolyDataToLSMesh@MeshGenerator@@QAEPAVlsMesh@@PAV2@PAVvtkDelaunay2D@@@Z)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkDelaunay2D::SetSource(class vtkPolyData *)" (?SetSource@vtkDelaunay2D@@QAEXPAVvtkPolyData@@@Z) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke@lsStrokeModel@@QAEXXZ)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkPolyDataAlgorithm::SetInput(class vtkDataObject *)" (?SetInput@vtkPolyDataAlgorithm@@QAEXPAVvtkDataObject@@@Z) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke@lsStrokeModel@@QAEXXZ)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: static class vtkDelaunay2D * __cdecl vtkDelaunay2D::New(void)" (?New@vtkDelaunay2D@@SAPAV1@XZ) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke@lsStrokeModel@@QAEXXZ)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkPolyData::SetPolys(class vtkCellArray *)" (?SetPolys@vtkPolyData@@QAEXPAVvtkCellArray@@@Z) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke@lsStrokeModel@@QAEXXZ)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: static class vtkPolyData * __cdecl vtkPolyData::New(void)" (?New@vtkPolyData@@SAPAV1@XZ) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke@lsStrokeModel@@QAEXXZ)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: static class vtkCellArray * __cdecl vtkCellArray::New(void)" (?New@vtkCellArray@@SAPAV1@XZ) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke@lsStrokeModel@@QAEXXZ)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: static class vtkPoints * __cdecl vtkPoints::New(void)" (?New@vtkPoints@@SAPAV1@XZ) referenced in function "public: void __thiscall lsStrokeModel::ProcessStroke(void)" (?ProcessStroke@lsStrokeModel@@QAEXXZ)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: __int64 __thiscall vtkDataArrayTemplate<__int64>::InsertNextValue(__int64)" (?InsertNextValue@?$vtkDataArrayTemplate@_J@@QAE_J_J@Z) referenced in function "public: __int64 __thiscall vtkIdTypeArray::InsertNextValue(__int64)" (?InsertNextValue@vtkIdTypeArray@@QAE_J_J@Z)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">1>lsStrokeModel.obj : error LNK2019: unresolved external symbol "public: void __thiscall vtkDataArrayTemplate<__int64>::InsertValue(__int64,__int64)" (?InsertValue@?$vtkDataArrayTemplate@_J@@QAEX_J0@Z) referenced in function "public: void __thiscall vtkIdTypeArray::InsertValue(__int64,__int64)" (?InsertValue@vtkIdTypeArray@@QAEX_J0@Z)</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; "><br style="line-height: 17px; "></div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; "><br style="line-height: 17px; "></div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; "><br style="line-height: 17px; "></div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">Cheers!</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; "><br style="line-height: 17px; "></div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; "><br style="line-height: 17px; "></div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">Rong</div><div><br></div></span> </body>
</html>