From: Daniel A. S. <st...@ic...> - 2002-05-20 11:52:32
|
Daniel, sorry for the delay, I was away At 20:02 -0400 on 3/5/02, ma...@co... wrote: >When I use the Wish binary as the Stub, the application created >complains when launched on any other Mac that "Tcl 8.3 is not found". yes, this is because the shared libraries Tcl8.3.shlb & Tk8.3.shlb are not found, if you include them in the same directory as Wish (or in a subdirectory referenced by 'alis' resource #1000 in Wish), Wish should work (but to have access to tcl packages like msgcat or http, you will need to include them in a subdirectory as well, and add that dir to your $auto_path). you may want to look at the mac distribution of the Emu project http://sourceforge.net/projects/emu/ where I've used these techniques to be able to use several small wish executables with different embedded scripts all using a number of tcl packages & extensions included in a 'lib' subdir. You may also want to take a look at my tclkit builds for macos classic (see previous message on the tcl-mac list). tclkit solves all the tcl packaging problems in a much more elegant way using the new Tcl 8.4 vfs mechanism, but you can't use Tcl 8.3 of course... for an example see http://alphatcl.sourceforge.net/updates/mac-alphatcl-wiki.bin , this is the tclkit static binary with a small embedded script that uses package http to download & source an online wikit scripted document. >When I choose to use the Simple TK (PPC) binary as the Wish stub to >use, I get an "Application initialization failed; BGerror resource >or suitable bgerror file not found" error when attempting to launch >the newly created script on another mac. this is due to bgerror requiring package msgcat, which is not present in the resources. I think you've been given a workaround on c.l.t (include the contents of msgcat in the bgerror resource). >So...is the "Simple TK (PPC) binary" the statically linked binary >that I should be using to create clickable scripts that can run on >Macintoshes with no TCL installed? Should I be using another binary >file included in the distribution to link to? It is very confusing, >as no where in the Macintosh installer does it seem to list the >location or actual name of the statically linked Wish, although it >does imply that the static versions of Wish will be created via the >Web installer. By their size, the "Simple" TK's seem to be the >correct ones, although the "simple" in their name makes me wonder if >they are scaled down versions, hence the missing bgerror resource >message I'm getting. yes, the 'Simple' binaries are the statically linked ones, I agree that the names aren't very descriptive, the reason for the name choices is historical, probably Jim Ingham is the only one that knows why the executable are named so strangely... IIRC http://mini.net/tcl/825.html explains some of the naming conventions. Hope this helps Cheers, Daniel -- ** Daniel A. Steffen ** "And now to something completely ** Department of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |