From: Mats B. <ma...@pr...> - 2002-01-21 19:02:49
|
Jack Jansen wrote: > > On Saturday, January 19, 2002, at 12:58 PM, Mats Bengtsson wrote: > > > > 1) I build the image libs, libjpeg, libtiff, libpng, and zlib, as > > separate shared libs (which is how it works on win and unix), > > which get loaded at runtime by Img. But the loading is made from > > tcl's present folder (Build) which is not what you want. > > BTW: Img uses tclMacLoad.c from 8.0p2 to do this, which needed > > some patching to work. > > Any better solution here? Can't run the test suite because of this, > > I think. > > You should be able to store them in the Extensions folder, I think. > Doesn't work: % package require Img 1.2.4 (Build) 2 % image create photo -file [tk_getOpenFile] cannot open jpeg.shlb: file not found It fails when executing: err = FSpLocationFromPath(strlen(path), (char *) path, &fileSpec); where path = "jpeg.shlb", and then it does things I don't understand including a call GetDiskFragment(). I guess it's pretty easy to fix, but should I get the path to the extensions folder, or is there another strategy, for instance, to have an all-in-one shared lib with all image libs included? I'll figure out something. > > 2) Tested opening a number of various image formats, and all > > work except tiff images, where only the red component shows. > > When searching the net for mac parts I found a later release of > > tifflib (3.5.7) which I use. Tried Jack Jansen's mac port, but > > the CW 7 projects wheren't useful with my CW 6 since all essential > > settings were lost during conversion. > > Darn. I have the CW6 projects somewhere still in CVS, but I > would need to dig them out. I'll try to do so next week, if you > don't hear from me by tuesday drop me another note (because I'll > have forgotten;-) I'd appreciate that. No hurry. Thanks. Daniel Steffen wrote: > I'd be interested in a copy, if you want I can also host it on my > page with the other mac tcl extensions > (http://www.maths.mq.edu.au/~steffen/tcltk/) Thanks, that would be nice. Need to discuss this with Jan Nijtmans also. I'll send you a copy once I've cleaned it up a bit. > you could try merging the image shared libraries into the Img shlb > (set the merge flag in the info window for the libs) and load them > from the current fragment file. > do you really need to load them explicitly or could you just link > against them and let the CFM loader do the work for you? Merging them I know how to do, but loading them from current fragment I don't know how it works. Perhaps you could give it a try? > If you like, I can export Pro7 projects to xml for you which Pro6 can > import without loosing settings... See if Jack comes up with something for me... Mats |