[Paraview] Reader Initialize() function

Tim Tautges tjtautg at sandia.gov
Fri, 26 Mar 2004 07:24:47 -0600


Hi all,
   I'm trying to write a reader using the instructions posted by Ben 
last Sept.  I've written my custom reader, vtkMOABReader, and compiled 
it using the boilerplate from the LocalExample in vtk.  It runs fine 
from a tcl script, so now I'm trying to hook it up into paraview.

Questions:
1. When I start paraview, I get the error messages:

-----------------
   [tjtautg at marge ~/dualmod]$ paraview
   ErrorMessage
   # Error or warning: ERROR: In 
/usr/local/ParaViewComplete/ParaView/ClientServer/vtkClientServerInterpreter.cxx, 
   line 856
   vtkClientServerInterpreter (0x81d1bc0): Cannot find function 
"vtkMOABReaderTCL_Initialize" in 
"/home/tjtautg/dualmod/bin/libvtkMOABReaderTCL.so".


ERROR: In vtkPVXMLPackageParser.cxx, line 673
vtkPVXMLPackageParser (0x8473c20): Error loading Library component 
vtkMOABReaderTCL

ErrorMessage end
------------------

So, it's finding the shared library, but can't find the function 
vtkMOABReaderTCL_Initialize.  When I look in the files generated for 
this example, they include vtkMOABReaderTCLInit.cxx, and in there is a 
function Vtkmoabreadertcl_Init.  Is this the function that's being 
looked for as ...TCL_Initialize?

2. Why the case change from vtkMOABReader to Vtkmoabreadertcl in that file?

3. I haven't implemented this as a child class of vtkPVReaderModule (my 
impression is that this isn't absolutely necessary, since there are 
other readers which aren't).  Is this true?

Any other pointers anybody could offer to get this working would be 
appreciated.

Thanks.

- tim


-- 
================================================================
"You will keep in perfect peace him whose mind is
  steadfast, because he trusts in you."               Isaiah 26:3

             Tim Tautges            Sandia National Laboratories
         (tjtautg at sandia.gov)       (telecommuting from UW-Madison)
         phone: (608) 263-8485      1500 Engineering Dr.
           fax: (608) 263-4499      Madison, WI 53706