From: Daniel A. S. <st...@ic...> - 2002-10-22 19:17:23
|
On Wednesday, Oct 23, 2002, at 02:34 Australia/Sydney, Mats Bengtsson wrote: > There is a change in TkClassProcs -> Tk_ClassProcs and a few other > places. > Think these moved from *Int.h to *.h. In any case it crashes on 8.4 if > built for 8.3, at least on Windows. ah, yes, very annoying. I see the crash on MacOS as well. This might be considered a 8.4 bug, AFAIK part of the point of stubs is that extensions that work against 8.3 also do so against 8.4 without change. You might be using non-public stub APIs that are not guaranteed to stay the same though. > Hmmm. Haven't done anything like this before. Perhaps I can figure out > how. > Think I remember that the settings have a fragment name option > somewhere. > Perhaps this is to be used. looked at tclMacLoad.c and this doesn't seem to be possible without a core change, the fragment name is deduced directly from the package name at present... I've found another way though, I've managed to build from your sources without much trouble (you seem to have forgotten to include the project however, I reused an older one that I still had). The solution that I've taken now is to make two shlb's, QuickTimeTcl8.3.shlb and QuickTimeTcl8.4.shlb with pkgIndex resources that only load if the tcl_version matches. Not perfect (a single file would be better), but it works. an archive with 8.3 & 8.4 QuickTimeTcl binaries, the sources I changed and my project is at http://rutherglen.ics.mq.edu.au/~steffen/tcltk/QuickTimeTcl3.0b2.sit > I carbonized it using CW6 and Tcl/Tk 8.3.4 on classic. > I came so far that there were no errors coming from QuickTimeTcl. > This is fairly complicated as there is a completely new event loop > using carbon timers. These need to be set up appropriatly to serve > open movies. Also, QT6 added some more API's to refine this scheduling. I managed to build against CarbonLib with 8.4 after a few minor changes, but can't load at present because the work to link Wish against CarbonLib hasn't been done (only tclsh). Not sure if this is really useful anymore, better to just test on OSX. > Is there a sample PB project anywhere that one can use as a template? not yet, part of the point of the whole discussion about frameworks is determining what the most natural package format for MacOSX is... If you want, I can clone the TclAE project, set it up for QuickTimeTcl and pass it along. It doesn't use the framework structure, and so doesn't depend on the current discussion/patch. Cheers, Daniel -- ** Daniel A. Steffen ** "And now to something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |