[vtkusers] Problem building Activiz.NET wrappers

Eric E. Monson emonson at cs.duke.edu
Fri Feb 25 08:57:40 EST 2011


Hey all,

Yesterday I tried for the first time to build the Activiz.NET wrappers from VTK git master. I got pretty far, but hit a problem at some point in building Kitware.VTK: when compiling vtkComputingResources.cs, "The type or namespace name 'vtkProcessingUnitResource' could not be found".

I'm using VS2008 on Win7 64-bit, but building everything as 32-bit Release mode. Build for VTK went fine. I think the only non-default settings I used were turning ON BUILD_SHARED_LIBS and VTK_USE_PARALLEL (the latter I only figured out when activizdotnet needed VPIC.dll and couldn't find it -- someone should make a note on the instructions page that that VTK_USE_PARALLEL should be ON) and turned OFF BUILD_TESTING and BUILD_EXAMPLES. Builds of gccxml and mummy went fine.

Anyone have any ideas about what could be getting in the way of C# knowing about vtkProcessingUnitResource? Unfortunately, I don't understand enough about the wrapping process or C# compilation to debug it.

Thanks,
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


18>Building C# library 'Kitware.VTK'...
18>Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.4926
18>for Microsoft (R) .NET Framework version 3.5
18>Copyright (C) Microsoft Corporation. All rights reserved.
18>warning CS1668: Invalid search path 'c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\lib\i386' specified in 'LIB environment variable' -- 'The system cannot find the path specified. '
18>warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. '
18>csharp\vtkComputingResources.cs(157,11): error CS0246: The type or namespace name 'vtkProcessingUnitResource' could not be found (are you missing a using directive or an assembly reference?)
18>Project : error PRJ0019: A tool returned an error code from "Building C# library 'Kitware.VTK'..."
18>Build log was saved at "file://c:\Users\emonson\Programming\VTK_git\activizdotnet\build2\Kitware.VTK.dir\Release\BuildLog.htm"
18>Kitware.VTK - 2 error(s), 0 warning(s)





More information about the vtkusers mailing list