[vtkusers] Trying to compile cone2.cxx

Jing Li jli023 at cs.auckland.ac.nz
Thu Feb 12 16:25:41 EST 2004


There are 6 examples (cone1 to cone6) coming with VTK source. I had the same problem with cone2 and cone6 when I updated my IDE from VS .Net 1.0 to VS .Net 1.1(2003). My initial guess was that vtkCommand class ( it is used for callback ) caused the problem. Because the four unresolved external symbol functions are virtual functions in vtkObjectBase class, but vtkCommand as its subclass does not implement those functions. And .Net 1.0 and .Net 1.1 use different compilation policies. As a result, these codes do not cause problem in .Net 1.0, but do have problem in .Net 1.1.   Another guess was because that .Net 1.1 does not support old I/O functions.

After trying, I solved the problem with cone2, but met an new problem with cone6. The cone6 problem happens in runtime, the error message is "The procedure entry point collectRevision at vtkImport.... could not be located in the dynamic link library vtkRendering.dll". 

What I did is downloading VTK 4.2.2 source code, using cmake to build its .Net 2003 solution, compiling the soluction, and generating 4.2.2 vtk*.dll, vtk*.lib files. Then copy the files to the corresponding folder (vtk*.dll goes to c:\windows\system32, vtk*.lib goes to c:\program files\vtk42\lib ). After doing this, cone2 works very well.

Can anyone tell me how to run cone6 in .Net 1.1? 

Any suggestion appreciated. 

Thanks, 

Jing Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040213/512507d3/attachment.htm>


More information about the vtkusers mailing list