[vtkusers] Can a VTK/Tcl application be made into a stand-alone exe? TclPro wrap help
Kevin Wright
Kevin.Wright at ansys.com
Fri Dec 12 16:57:54 EST 2003
> Has anyone actually tried this....I'm not having much luck with TclPro 1.4.1 and
> vtk 4.3.0 (8/19/2003 build). My simple script runs fine but the executable on WinXP
> can't find the vtk package even on the same system. Any cookbook examples really
> appreciated. Thanks for the lead Kevin! ....john
I've done it before, so its definitely possible. I don't know exactly what problem you're having, but there are a few things that can hang you up using the wrapper. If you're using VTK with shared libraries, make sure that when you wrap your executable, you use the shared library version of Tcl/Tk, or you won't be able to load new libraries. Second, if you're wrapping the tcl files that provide the vtk package, you can get hung up on the path. Depending on how you specify the path to the package files, the wrapped executable may search the local system, or the files wrapped into your executable. I don't remember precisely how it decides one way or the other, but the documentation spells it out pretty clearly. Same goes for the Tcl and Tk library files (not the dll's the .tcl files in TCL_LIBRARY and TK_LIBRARY). You can wrap those into the executable, but you have to be careful how you specify the path. If you do everything correctly, the only files that you should have to ship are your executable, and the dll's for Tcl and VTK.
Sorry that's probably not much help, but the few times I've done this, its been a little touchy, and I found you just have to keep trying until it works.
Good luck,
Kevin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031212/6ca9b06d/attachment.htm>
More information about the vtkusers
mailing list