<html><div style='background-color:'><DIV>Hi vtkusers,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm a beginner of vkt. </DIV>
<DIV>1, Based on the readme.txt, when I installed vtk42, I should execute CMakesetup.exe first.&nbsp; The problem is I can't pass through the configure step in CMake. whenever I press the configure button it always says, for example, "CMake Error: Error : source: C:/mytest/cmakelist.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Does not match source used to generate cache: C:/mytest/cmakelist.txt"</DIV>
<DIV>&nbsp;</DIV>
<DIV>I set the source directory and the build directory the same directory, for example C:\mytest, I also tried set the build dirtory C:\mytest\build, but the same problem arised.&nbsp; Oh, my god, I really don't what's wrong!</DIV>
<DIV>&nbsp;</DIV>
<DIV>2, If&nbsp; I couldn't pass the above step, then&nbsp; I can't&nbsp;run vkt examples in VC++? I tried, and there are always compiling problems:</DIV>
<DIV>-----------</DIV>
<DIV>T1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)" (<A href="mailto:__imp_?SetInput@vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z">__imp_?SetInput@vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z</A>)<BR>T1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkPolyData * __thiscall vtkPolyDataSource::GetOutput(void)" (<A href="mailto:__imp_?GetOutput@vtkPolyDataSource@@QAEPAVvtkPolyData@@XZ">__imp_?GetOutput@vtkPolyDataSource@@QAEPAVvtkPolyData@@XZ</A>)<BR>T1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)" (<A href="mailto:__imp_?New@vtkPolyDataMapper@@SAPAV1@XZ">__imp_?New@vtkPolyDataMapper@@SAPAV1@XZ</A>)<BR>T1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkCubeSource * __cdecl vtkCubeSource::New(void)" (<A href="mailto:__imp_?New@vtkCubeSource@@SAPAV1@XZ">__imp_?New@vtkCubeSource@@SAPAV1@XZ</A>)<BR>Debug/T1.exe : fatal error LNK1120: 4 unresolved externals<BR>Error executing link.exe.<BR></DIV>
<DIV>-------------</DIV>
<DIV>and my test code is very simple:</DIV>
<DIV>------------</DIV>
<DIV>#include "vtkPolyDataMapper.h"<BR>#include "vtkCubeSource.h"<BR><BR>int main()<BR>{<BR>&nbsp;vtkCubeSource *cubeData = vtkCubeSource::New();<BR>&nbsp;vtkPolyDataMapper *cubeMapper= vtkPolyDataMapper::New();&nbsp;</DIV>
<DIV>&nbsp;cubeMapper-&gt;SetInput(cubeData-&gt;GetOutput());</DIV>
<DIV>return 0;</DIV>
<DIV>}<BR>-------</DIV>
<DIV>I'm looking forward to your help!</DIV>
<DIV>Thank you!</DIV></div><br clear=all><hr>Protect your PC - <a href="http://g.msn.com/8HMHEN/2755">Click here</a> for McAfee.com VirusScan Online </html>