[vtkusers] Runtime error with wrapped TCL applications

Goodwin Lawlor goodwin.lawlor at ucd.ie
Mon Mar 31 12:36:24 EDT 2008


Hi Béatrice,

My guesses are:

1. The VTK lib files are in a slightly different directory on the 2nd 
computer.

2. There is a VTK lib dependency missing on the 2nd computer... ie, the 
VTK libs need to a load a dll that they can't find.

Its easy enough to verify 1. and you need either "depend.exe" or 
"dumpbin.exe" to examine the dependencies of the VTK libs.

A google search throws this free application up that may work too: 
http://www.dependencywalker.com/

As an aside, TclPro is the "old" way of wrapping tcl applications. 
Tclkit and Starpacks are the way things are done now (you may be tied to 
TclPro though). I've a VTK extended Tclkit available for free here:

http://www.bioengineering-research.com/vtk/vtkit.htm

There's also an example of how to wrap an app.

hth

Goodwin

Béatrice RAVIER wrote:
> Hello,
> 
> I really need some help for solving my problem. Does anyone can help me?
> 
>  
> 
> I’m trying to wrap my TCL application “myappli.tcl” in which there is 
> the following instructions :
> 
>             lappend auto_path C:/Arpack/Vtk4.2/lib/vtk/tcl
> 
>             package require vtk
> 
>             package require vtkinteraction
> 
>  
> 
> I’m working on *Windows* and I’m using *TclPro1.4 and VTK4.2.*
> 
> I’m wrapping my TCL application “myappli.tcl” in which there is the 
> following instruction:
> 
>             lappend auto_path C:/Arpack/Vtk4.2/lib/vtk/tcl
> 
>             package require vtk
> 
>  
> 
> When I’m running the binary file “myappli.exe” on my own machine, 
> everything is OK.
> 
> BUT when I run the same “myappli.exe” on another machine, the run fails 
> with the following message:
> 
> “Cannot find package vtk while executing “package require vtk”
> 
>  
> 
> The only difference between the 2 machines is that TclPro1.4 is not 
> installed on the machine where the run fails.
> 
>  
> 
>  
> 
> Béatrice RAVIER
> 
> CDR - Hutchinson S.A.
> 
> Responsable Développement Logiciels
> 
> beatrice.ravier at cdr.hutchinson.fr
> 
> Tel. (33)01 40 89 55 15    Fax. (33)01 40 89 55 21
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list