[vtkusers] Tcl and vtkLocal

Sebastien BARRE sebastien.barre at kitware.com
Thu Nov 28 16:27:15 EST 2002


At 11/28/2002 04:18 PM, Stephen Reilly wrote:
>I had wondered about the "info commands" part before, so had completely left
>out the statement and used the following (quite unsafe) code:
>
>#vtkLocal.tcl start
>package require vtk
>
>::vtk::load_component vtkLocalTCL
>package provide vtkLocal 4.0
>#Finish
>
>I know it would be quite bad to use this in the real world, but I had been
>trying to see why the library wasn't loading. This, however, also gives rise
>to the message (as does changing the "vtkAnyImageFilter" to
>"vtkImageColouration"):
>::vtk::load_component: vtkLocalTCL could not be found.
>
>I know that the library builds correctly as, if I add it to the vtkPatented
>build, I can use it. I think that for the time being this hack will have to
>be enough for me.
>
>Thanks for taking the time to help me out with this. I know it is a fiddly
>question, and the answer is probably staring me right in the face.

All right, let's start from the beginning.
Go to the command prompt
cd to your VTK bin directory, where all your DLL should be, including 
vtkLocalTCL.dll
run either vtk.exe, or wish.exe
issue:
package require vtk

does it work ?
now try to load your DLL manually.

load vtkLocalTCL.dll

does it work ?

try to load it again

::vtk::load_component: vtkLocalTCL

does it work ?


--
Sebastien Barre





More information about the vtkusers mailing list