From: Michal 'hramrach' Suchanek Date: 2004-09-30T07:15:08+09:00 Subject: Re: ruboids (on mac os) - singleton instance() returns nil? On Thu, Sep 30, 2004 at 01:15:04AM +0900, Richard Dale wrote: > Richard Dale wrote: > > > QtRuby uses method_missing to trap method calls and redirect them to the > > Smoke library. So I wonder if Singleton interferes with method_missing in > > some way. > > I've just restored the Singleton stuff, and it works fine. So I think the > Singleton error was actually a problem with the code only being half ported > from Ruby/Qt to QtRuby. They said qtruby on the ruboids website unless I misread it. But the specification of requirements was very vague. I must have done something wrong when compiling the extension. I first compiled everything with autoconf and it did not work because I was missing -lstdc++, so I added that. And the result was the broken singleton. Reading about the compilation once again I decided to try the extconf.rb stuff but now Qt.rb gets installed as Qt/Qt so I have to modify the included examples to work (I tried hello only). But now the singleton in ruboids works. I get the proper error message I do not have GLX (which I currently do not) and nothing else. I am sorry I caused so much trouble by miscompiling the extension. But it would be much clearer what to do if the stuff expanded into two directories, one handled by automake and the other by extconf. I will look at the other stuff you sent me tomorrow, it is quite late here already. Thanks for your help Michal Suchanek