How to compile a TCL script into an EXE program
 

 

Using tclkit.exe:

Step 1

Copy tclkit.exe and sdx.kit into the directory where your Tcl source code file is. Ex: in c:\Birds

 TCLKit.exe can be downloaded from: http://www.equi4.com/tkdownload.html
 Sdx.kit can be downloaded from:  http://www.equi4.com/pub/sk/

---> You will now have in c:\Birds the following files:

 * Birds.tcl
 * tclkit.exe
 * sdx.kit

Step 2

Make a copy of the tclkit.exe into the directory where your TCL source code file is. Ex: in c:\Birds. Rename it to tclkit2.exe.

---> You will now have in c:\Birds the following files:

 * Birds.tcl
 * tclkit.exe
 * tclkit2.exe
 * sdx.kit

Step 3

At Start/Run, type the following command (make the necessary adaptations):

 c:\Birds\tclkit sdx.kit qwrap birds.tcl

You will then get the Tcl console. It will give a message: .. updates

Leave the console


Step 4

At Start/Run again type the following command (make the necessary adaptations):

 c:\Birds\tclkit sdx.kit unwrap birds.kit

You will then get the Tcl console. It will give a message: ... updates applied

Leave the console


Step 5

At this stage, you have to copy the icons directory into the app directory that has been created.

The directory created is for example:

c:\Birds\Birds.vfs\lib\app-Birds

Copy Icons into c:\Birds\Birds.vfs\lib\app-Birds and you will get:

c:\Birds\Birds.vfs\lib\app-Birds\Icons

(Make the necessary adaptations)


Step 6

At Start/Run again type the following command (make the necessary adaptations):

 c:\Birds\tclkit sdx.kit wrap birds.exe -runtime tclkit2.exe

Again you will then get the Tcl console. It will give a message: ... updates applied

Leave the console

 

Using freewrap.exe

Step 1

Same as above, copy freewrap.exe into the directory where your Tcl source code file is.

 freewrap.exe can be downloaded from: http://sourceforge.net/projects/freewrap/

---> You will now have in c:\Birds the following files:

 * Birds.tcl
 * freewrap.exe

Step 2

At Start/Run, open the command prompt usually by typing "cmd". Then type the following command (make the necessary adaptations):

 cd Birds
 freewrap birds.tcl

If you want to have custom icons in your app, then run the following command instead:

 freewrap birds.tcl -i my_custom_icon.ico

The default build of freewrap only supports the following icons:

  • 16x16 16 colors
  • 32x32 16 colors
  • 32x32 2 colors

Therefore your icon file should have the above icons.

 

 

More about:

Starkit :  http://www.equi4.com/papers/skpaper1.html