Am 09.08.13 19:02, schrieb S-Y. Chen:
> Hi all,
>
> I used to install vtk 5.6 in tcl/tk 8.5.13 under Windows 7 64 bit, and it worked well.
>
> What I did was I put the dll of vtk under the \bin directory of tcl/tk, and the \vtk-5.6 (with its pkgIndex.tcl) under the \lib directory of tcl/tk 8.5.13. After "package require vtk" it successfully loaded vtk.
>
> I did the same thing for tcl/tk 8.6, but I get the message
>
> couldn't load library "C:/......../bin/vtkCommonTcl.dll" : this library or a dependent library could not be found in library path.
The error message means, that vtk is linked against some library that
cannot be found. You can check the dependencies with tools like
dependency walker or inspect.exe (
http://www.silurian.com/inspect/index.htm)
Did you compile vtk yourself, or did you get the binary from somewhere
else? VTK is not stubs-enabled, due to some dirty hacks to get the
underlying raw window resources out of a TkWindow*. For this reason, vtk
works only together with the version of Tcl it was compiled for.
Christian