From: Chris Gehlker Date: 2002-04-04T23:09:32+09:00 Subject: Re: Ruby for Mac OS 10.1 On 4/4/02 12:31 AM, "Jayce Piel" wrote: > Chris Gehlker wrote: > >> On 3/27/02 12:08 AM, "Jayce Piel" wrote: >> >>> Chris Gehlker wrote: >>> >>>> GT and Tk/Tcl have been ported to Quartz but some >>>> of the other GUI Kits haven't been. >>> >>> Is it possible to use RubyTk without installing XFree ?.. >>> I didn't try with ruby, yet, but when I was testing with pythonTk, I was >>> needed to use Xfree instead of a native Tk... >> >> It's possible but it's not as easy as it should be. The real problem is >> trying to build tcltklib. > > Yes... :-/ > >> The current version of mkmf.rb doesn't understand >> frameworks so it will decide that it can't find the tck.h and tk.h and >> refuse to create a makefile. You have to copy the headers where it can find >> them. > > The problem seems not to be in the headers file, but really in the fact > that this are frameworks... The Makefile wants to link tcltklib with > tcl.lib and tk.lib wich don't exist... > >> I'm working on a 'framework aware' version of mkmf.rb. > > Cool... This turns out to be more of a task than expected. Well, the "framework aware" version of mkmf isn't that hard once you realize that the docs on how gcc interacts with frameworks are ambiguous at best but that you can always you Project Builder to generate correct examples. The problem is that Quartz Tk/Tcl is so weird that I was about to give up before I discovered Jim Ingham's writeup. Some of the problems are: Nobody has yet developed a makefile for Quartz Tk. It's always build with Jam. The headers in the frameworks at Apple are incomplete. The only way to get the right headers is to cvs out of the Mac OS X specific branches of Tk and Tcl at Sourceforge. Tk and Tcl are separate projects and frameworks but tk knows way to much about tcl. The public header/private header distinction which is made in the service of future enhancements to PB just screws with gnumake. I'm not (just) whining here. I dawned on me this morning that unless I document my tale of woe with Quartz Tk/Tcl I'm just dooming someone else to repeat it. Your post was a good excuse to enumerate the main points. -- Those who write clearly have readers, those who write obscurely have commentators. -Albert Camus, writer and philosopher (1913-1960)