From: Jon G. <jg...@hi...> - 2007-07-07 14:11:56
|
I'm trying to provide a newer universal build of TclAE. What Apple ships is completely broken on Intel and I've had at least one user report that the ppc binary had been stripped out somehow (I'm not ruling out operator error), rendering it completely useless even for use under Rosetta. TclAE has .tcl scripts that it needs, and in the past it always got built as a bundle by Xcode, but Daniel changed it to a TEA build process last year, apparently at the behest of ActiveState. make only produces a binary .dylib file for me now. I don't know anything about TEA, and as far as I can tell, there isn't any relevant documentation (PDFs from six years ago wouldn't seem to have much to offer when it comes to building a universal .dylib). I have determined that if I put libtclAE2.0.2.dylib, along with its pkgIndex.tcl and its required .tcl scripts into a directory ("tclAE2.0.2") and then move that directory into my tcl_pkgPath, then it gets loaded just fine by [package require]. On the other hand, Apple ships tclAE2.0 as a bundle in /System/Library/Tcl/. So, which is preferred? As far as I can tell, TEA doesn't provide any help for generating either, is that correct? I ran across this exchange between Kevin and Bernard a few months ago [Re: [MACTCL] ANN: tclAppleHelp 1.1], which may be related. In my case, I can load tclAppleHelp 1.1 (although the pkgIndex.tcl file thinks it's 1.0) into either tclsh or Alpha on a G4 Mac running 10.4.9, but I cannot load it into either tclsh or Alpha on an Intel Mini running 10.4.10: Error: no suitable image found. Did find: /Users/admin/Library/Tcl/tclAppleHelp/universal-macosx/ tclAppleHelp.dylib: not a dylib Like Bernard, lipo and file both indicate that i386 binaries are present and I can execute the individual steps of tclAppleHelp's pkgIndex.tcl file without a problem, but nothing actually seems to be loaded. If I [load /Users/admin/Library/Tcl/tclAppleHelp/universal- macosx/tclAppleHelp.dylib], I get "image not found". |