Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Freewrap6.2 and Snack 2.2

4 views
Skip to first unread message

Fernando Quinones

unread,
Sep 22, 2006, 1:03:10 AM9/22/06
to
I'm done for now with that script I was working. Decided to wrap it and
found that Snack is not included in Freewrap. So I thought, well, I just
source the snack.tcl file. Nope, don't work either. How do I wrap my
script and include snack with it? Will startkit be a better option? I am
so used to Freewrap... Any help will be appreciated.

Thanks,
Fernando

Paul Whitfield

unread,
Sep 22, 2006, 1:28:41 AM9/22/06
to

Snack is not a "pure" tcl extension,
See the freewrap documentation on how to include binary extensions.

I have done this a long time in the past with some success - but
it was a bit tricky, but worked well. I had to provide the dll's
for the binary extensions to get the executable to work on a
machine without tcl installed (windows).

I have since used starkit/starpack for similar things and it works
OK too.


Regards

Paul

Fernando Quinones

unread,
Sep 22, 2006, 2:27:04 AM9/22/06
to

Thanks Paul, I know it can be done. I was looking for someone that had
done it before and was willing to share the process.

Fernando

Fernando Quinones

unread,
Sep 22, 2006, 5:14:16 AM9/22/06
to

It is working. Basically what I did was the following:

1. wrapped all the files in the snack2.2 folder together with my main
script file. I was already wrapping some other files with it so I added
those files to the file with the list of files to wrap. The command
looked like this:
E:\freewrap62\freewrap.exe "c:\mainScriptFile.tcl" -f
"D:\otheFilesToWrap.txt"

2. Had to source snack.tcl. This I have to check again if it is
necessary or not.

3. I had to add the path for the snack2.2 folder to the auto_path. It
looks like this:

lappend auto_path "/SYS/Tcl/lib/snack2.2"

4. Had to load the package at the beginning of the script instead of at
the proc where I create and use the sound.


I think that was it....
To sleep now...
Fernando

0 new messages