I am trying to figure out the basic steps to creating a Tcl starkit in Windows. I've asked a similar question before, as well as purchased a book on Tcl programming, visited wiki.tcl.tk, emailed Tcl programmers directly, etc... In all, I've received great feed back from my resources and this website; however, I've failed to explain that I am a complete novice when it comes to building batch files, using a command console, and creating directories.
I really need someone to basically spell things out for me, because I cannot seem to interpret what anyone is trying to tell me. I think Visual Studio and .NET has made me stupid :)
Currently, I have downloaded tclkit, tclkitsh, and sdx.kit, as well as created a simple program (Test_App.tcl). So far, I know I have to run sdx through the console (tclkitsh) by creating a batch file (sdx.bat), create a vfs directory, and then use sdx wrap. I am completely oblivious on how to do these simple steps.
This seems like too much to ask, but if someone could translate creating a starkit in uber novice terms I would be incredibly grateful. I was hoping something like: In tclkitsh console, type the following...; in tclkit.exe, type the following...; now you should have...; and on.
Thank you,
DFM
Step 1: make a working directory. Open up a windows command prompt. This is probably under the start menu, "Accessories", "Command Prompt".Type the command "mkdir temp", then cd to this directory with "cd temp":
Make a note of where this directory is. It should tell you right on the prompt.
Step 2: Download the necessary files. You need three things, a base kit that inclues Tk (which will become part of the wrapped application), sdx.kit (a tclkit that has the commands that do the wrapping) and the command line version of tclkit (from which sdx.kit will be run).
Download the three files and put them in the temporary directory that you created. Strictly speaking this isn't necessary, but it makes this tutorial easier. Rename the command line tclkit, also to make this tutorial easier:
Step 3: verify that everything is working. Run sdx.kit with no other arguments. It should print out a little bit of help information:
Step 4: create a directory for your code. sdx assumes that for an application named "myapp" that there exists a directory named "myapp.vfs":
Step 5: create your code. Create a file named "main.tcl" and place it in the myapp.vfs directory. Use notepad or the text editor of your choice. Give the file the following contents:
Verify that myapp.vfs looks like this:
Step 6: wrap the code using sdx. With your working directory in the original temporary directory, issue the following command to wrap your code.
Step 7: rename the wrapped file to have a .exe suffix. sdx.kit should have created a file named "myapp". In order to run this you'll need to rename it to "myapp.exe". Once you do that you can run it by typing the command "myapp" or double-clicking on the icon from an explorer window.
If all went well, a window should pop up with the label that says "Hello, world"