TclPro Wrapper
An application that you write in Tcl can consist of many components, such as:
- One or more Tcl scripts
- Either a standard or a custom Tcl interpreter
- The standard Tcl libraries and support files (for example, init.tcl)
- Optionally, the standard Tk libraries and support files
- Optionally, one or more extensions implemented as libraries of Tcl scripts
- Optionally, additional data files such as bitmaps
Traditionally, if you wanted to distribute an application that you wrote in Tcl, you would need to make sure that all of the files listed above that your application used were installed on your target system. You would also need to make sure that the system was configured properly so that your application could find all of the files it needed.
TclPro Wrapper can greatly simplify the process of distributing an application that you write in Tcl. TclPro Wrapper is a tool that collects all of the files needed to run a Tcl application-such as Tcl scripts, graphics and other data files, Tcl extensions, a Tcl interpreter, and the standard Tcl and Tk libraries-into a single executable file, which is called a wrapped application. A user can then install this file anywhere on their system and execute it without needing to install any other packages or otherwise configure their system.
You invoke TclPro Wrapper using the prowrap command from the command line. For example, the following command creates an executable named myApp.exe that contains a wish interpreter, the standard Tcl and Tk libraries, the Tcl scripts myApp.tcl and help.tcl, and several GIF images from a subdirectory named images:
C:> prowrap -out myApp.exe myApp.tcl help.tcl images\*.gif
Executing the resulting myApp.exe file is equivalent to entering:
C:> wish myApp.tcl
http://www.ajubasolutions.com Voice: (650) 210-0100 Fax: (650) 210-0101 support@ajubasolutions.com |