[vtkusers] Building Activiz.net with Visual Studio 2008

Benjamin Jähn jaminus_jahnatos at freenet.de
Mon Jul 9 03:00:36 EDT 2012


Hey all,


first of all i want to explain why i'd like to build Activiz on my own 
instead using the prebuild binaries offerd by kitware.

I have written some special vtkAlgorithms(VTK C++) which i want now to 
use in Activiz.net. As far as i know it's not possible to do that 
directly in Activiz. In the book "The VTK User's Guide 
(DefaultRenderEventPropagation at vtkParallelRenderManager@@SAX_N at Z) 
vtkParallelRenderManagerEL.obj    Kitware.VTK.Unmanaged

Error    3579    error LNK2019: unresolved external symbol "protected: 
static float * vtkUnstructuredGridPartialPreIntegration::PsiTable" 
(?PsiTable at vtkUnstructuredGridPartialPreIntegration@@1PAMA) referenced 
in function "public: static float __cdecl 
vtkUnstructuredGridPartialPreIntegration::Psi(float,float)" 
(?Psi at vtkUnstructuredGridPartialPreIntegration@@SAMMM at Z) 
vtkUnstructuredGridPartialPreIntegrationEL.obj Kitware.VTK.Unmanaged

Error    3580    fatal error LNK1120: 5 unresolved externals 
C:UsersPublicVTKActiVizactiviz-buildbinReleaseKitware.VTK.Unmanaged.dll 
1    Kitware.VTK.Unmanaged
Error    3588    error PRJ0019: A tool returned an error code from 
"Building C# library 'Kitware.VTK'..."    Kitware.VTK Kitware.VTK
Error    3589    error PRJ0019: A tool returned an error code from 
"Building C# executable 'Kitware.VTK.CSharpTests'..." 
Kitware.VTK.CSharpTests    Kitware.VTK.CSharpTests
Error    3590    error PRJ0019: A tool returned an error code from 
"Building C# executable 'Kitware.VTK.ConvertedByHandTclTests'..." 
Kitware.VTK.ConvertedByHandTclTests Kitware.VTK.ConvertedByHandTclTests
Error    3591    error PRJ0019: A tool returned an error code from 
"Building C# executable 'Kitware.VTK.ConvertedTclTests'..." 
Kitware.VTK.ConvertedTclTests    Kitware.VTK.ConvertedTclTests




I tried to overcome this problem by excluding the affected classes from 
the wrapping process using CMAKE according the following hint.
http://public.kitware.com/pipermail/vtkusers/2011-March/115270.html
AVDN_EXTRA_EXCLUDE_CLASSES_XML: 
vtkGeoGraticule;vtkParallelRenderManager;vtkUnstructuredGridPartialPreIntegration;vtkTimerLog

But the same errors has occured. So i tried to exclude them completely with:

AVDN_EXTRA_EXCLUDE_CLASSES: 
vtkGeoGraticule;vtkParallelRenderManager;vtkUnstructuredGridPartialPreIntegration;vtkTimerLog

This seems to work so far.

I get just some errors from building the Activiz examples.
Error 4597 error PRJ0019: A tool returned an error code from "Generating 
bin/Release/EventMonitor.exe" Build.Examples.EventMonitor 
Build.Examples.EventMonitor
Error 4605 error PRJ0019: A tool returned an error code from "Generating 
bin/Release/FileTree.exe" Build.Examples.FileTree Build.Examples.FileTree

The resulting dlls lokes like that...

             19,968 Kitware.mummy.Runtime.dll

             71,680 Kitware.mummy.Runtime.Unmanaged.dll

          7,139,328 Kitware.VTK.dll

          3,530,752 Kitware.VTK.Unmanaged.dll

         15,365,414 Kitware.VTK.xml

                524 Microsoft.VC90.CRT.manifest

            224,768 msvcm90.dll

            568,832 msvcp90.dll

            655,872 msvcr90.dll


In the precompiled packets there are much more dlls.
And i tried them out with one of the small HelloWorld examples.
The compiler does not complain about anything but is doesn't work.
Which means i see nothing.

I think this is because of the classes i excluded from the wrapping process.

Does someone have an idea to fix it???

Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120709/1e3c72f0/attachment.htm>


More information about the vtkusers mailing list