So ... now you've been hacking with tcl and Tk for a bit, and you have this *nifty* little killer-app that you want to share with your friends ... *however* they dont have tcl/tk installed and don't want to install it ...
The solution is simple, just create a Starpack and send them a single-file executable... (or, just make it available on your website)
A Starpack is a special kind of a Starkit
The first steps required to create a Starpack, are to gather the necessary tools:
Now, create a Starkit:
qwrap hello.tcl- You should now have a working starkit, which you can easily test by starting up tclkit and sourcing hello.kit
A typical linux command line for the above would look like:
steveo@linux:~/Desktop> ./tclkit sdx.kit qwrap hello.tcl
Next, unwrap the hello.kit file, to create the vfs (virtual file system) that will be needed for the last step:
steveo@linux:~/Desktop> ./tclkit sdx.kit unwrap hello.kit
Finally, create the single-file executable:
steveo@linux:~/Desktop> ./tclkit sdx.kit wrap hello -runtime copykit
This should result in the creation of an executable named hello.
Hold on, you say - my friends all run Windows ...
No Problem! Go back, and fetch a copy of tclkit for windows, rename it to something like - winkit - , and in the final step above - change hello to hello.exe, substitute winkit for copykit, and *like magic*, you have created a fully functional GUI program that will run on windows, without having to ever touch a windows computer, or write a single line of MFC code!
(By the way, if you are a windows maven, just reverse the tclkits, and provide your Linux user friends an executable program, without ever touching a linux box, or learning anything about using gcc!)
Everything you will ever need to know about Tclkit is available from the link on the left.
For much more on Starkits and Starpacks, see Steve Landers' excellent paper "Beyond Tclkit", available here.
A wide variety of fun and useful Starkits are freely available here.