<font><font face="verdana,sans-serif">How does CMakeLists.txt look like for this project </font></font>vtk_minimal?<br><br><div class="gmail_quote">On Tue, Jan 24, 2012 at 11:44, Gishara Indeewarie <span dir="ltr">&lt;<a href="mailto:gish.777@gmail.com">gish.777@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<div><br></div><div>I have downloaded the vtk source and built it using cmake according to the following tutorial. </div>

<div><br></div><div><a href="http://vtkblog.blogspot.com/2007/04/install-build-vtk-from-source-in-visual.html" target="_blank">http://vtkblog.blogspot.com/2007/04/install-build-vtk-from-source-in-visual.html</a> </div>
<div><br></div><div>And set the environment variables and project properties for additional dependencies as well.</div><div> But when I try to build a simple project (which you can get from the above link), I am getting the following errors.</div>


<div><br></div><div><div>1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: static class vtkInteractorStyleTrackballCamera * __cdecl vtkInteractorStyleTrackballCamera::New(void)&quot; (?New@vtkInteractorStyleTrackballCamera@@SAPAV1@XZ) referenced in function _main</div>


<div>1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)&quot; (?SetRenderWindow@vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z) referenced in function _main</div>


<div>1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: static class vtkRenderWindowInteractor * __cdecl vtkRenderWindowInteractor::New(void)&quot; (?New@vtkRenderWindowInteractor@@SAPAV1@XZ) referenced in function _main</div>


<div>1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)&quot; (?New@vtkRenderWindow@@SAPAV1@XZ) referenced in function _main</div>


<div>1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall vtkRenderer::AddActor(class vtkProp *)&quot; (?AddActor@vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in function _main</div>


<div>1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: static class vtkRenderer * __cdecl vtkRenderer::New(void)&quot; (?New@vtkRenderer@@SAPAV1@XZ) referenced in function _main</div><div>1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: static class vtkActor * __cdecl vtkActor::New(void)&quot; (?New@vtkActor@@SAPAV1@XZ) referenced in function _main</div>


<div>1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)&quot; (?New@vtkPolyDataMapper@@SAPAV1@XZ) referenced in function _main</div>


<div>1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: static class vtkConeSource * __cdecl vtkConeSource::New(void)&quot; (?New@vtkConeSource@@SAPAV1@XZ) referenced in function _main</div><div>


1&gt;vtk_minimal.obj : error LNK2019: unresolved external symbol &quot;public: class vtkAlgorithmOutput * __thiscall vtkAlgorithm::GetOutputPort(int)&quot; (?GetOutputPort@vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@H@Z) referenced in function &quot;public: class vtkAlgorithmOutput * __thiscall vtkAlgorithm::GetOutputPort(void)&quot; (?GetOutputPort@vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@XZ)</div>


<div>1&gt;Debug/../bin/vtk_minimal_d.exe : fatal error LNK1120: 10 unresolved externals</div><div><br></div><div>Please help me.</div><div><br></div><div>Thanks.</div><div><br></div><br>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>