Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to install vtk in Tcl/tk 8.6

290 views
Skip to first unread message

S-Y. Chen

unread,
Aug 9, 2013, 1:02:13 PM8/9/13
to
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.
attempt to provide package vtkCommonTCL 5.6 failed : no version of package vtkCommonTCL provided.
attempt to provide package vtkCommon 5.6 failed : no version of package vtkCommon provided.
attempt to provide package vtk 5.6 failed : no version of package vtk provided.

Any idea ? Maybe I put it in the wrong directory ?

Thanks for any help in advance

Regards
S-Y. Chen

Christian Gollwitzer

unread,
Aug 9, 2013, 1:53:53 PM8/9/13
to
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

S-Y. Chen

unread,
Aug 9, 2013, 1:59:08 PM8/9/13
to
I compile it by myself, which is really a pain. That is why I am still using the old vtk. Maybe I should check the new distribution of vtk.

Regards
S-Y. Chen
0 new messages