Hi I''ve built WxWidgets (2.5.4) and wxruby-swig (CVS) from source on OS X (.3). I''ve got something called wx.bundle in lib/ that looks the right sort of size - 2.5MB - but I don''t know what to do with it to install it - no rake install or make install? btw - wx on OS X looks fantastic, esp after seeing a Tk interface inside Aqua this am ... cheers alex
You can copy that into <ruby-lib-dir>/1.8/powerpc-darwinx.x/ - for example: /sw/lib/ruby/1.8/powerpc-darwin7.5.0/ Next time, go into the src directory and use the extconf.rb - it handles a lot of this for you. Nick Alex Fenton wrote:> Hi > > I''ve built WxWidgets (2.5.4) and wxruby-swig (CVS) from source on OS X > (.3). I''ve got something called wx.bundle in lib/ that looks the right > sort of size - 2.5MB - but I don''t know what to do with it to install it > - no rake install or make install? > > btw - wx on OS X looks fantastic, esp after seeing a Tk interface inside > Aqua this am ... > > cheers > alex > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > >
Nick wrote:> > You can copy that into <ruby-lib-dir>/1.8/powerpc-darwinx.x/ - for > example: > > /sw/lib/ruby/1.8/powerpc-darwin7.5.0/OK, I copied it, but on require ''wx'', I get /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin7.5.0/wx.bundle: Failed to load /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin7.5.0/wx.bundle (LoadError) from ./lib/wxgui.rb:1 All my wx2.5 libraries look to be in the right place in /usr/local/lib. I did add one new .i file and SWIGged it, but it wouldn''t show as a problem now would it?> Next time, go into the src directory and use the extconf.rb - it > handles a lot of this for you.Thanks for the tip. Will add a quick note to wiki. Alex
>> Next time, go into the src directory and use the extconf.rb - it >> handles a lot of this for you. >OK, I tried building again using ''ruby extconf.rb; make; make install'' and now it seems to load, but crashes with: objc: failed objc_getClass(NSObject) for WebNetscapePluginDocumentView->isa->isa objc: please link appropriate classes in your program Trace/BPT trap Might this be related to trying to wrap splash.h (Wx::SplashScreen) - I was just curious about SWIG, nothing vital - or is there something else going wrong? Interestingly the wx.bundle is smaller (about 1.6MB) than when I built it using the default Rake target. Thanks for help, sorry am very new to OS X alex
Can you email me your extconf file? Nick Alex Fenton wrote:> >>> Next time, go into the src directory and use the extconf.rb - it >>> handles a lot of this for you. >> >> > OK, I tried building again using ''ruby extconf.rb; make; make install'' > and now it seems to load, but crashes with: > > objc: failed objc_getClass(NSObject) for > WebNetscapePluginDocumentView->isa->isa > objc: please link appropriate classes in your program > Trace/BPT trap > > Might this be related to trying to wrap splash.h (Wx::SplashScreen) - I > was just curious about SWIG, nothing vital - or is there something else > going wrong? > > Interestingly the wx.bundle is smaller (about 1.6MB) than when I built > it using the default Rake target. > > Thanks for help, sorry am very new to OS X > alex > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > >
Also, make sure you built wxWidgets 2.5 with the following configure options: --disable-shared --enable-static Nick Alex Fenton wrote:> >>> Next time, go into the src directory and use the extconf.rb - it >>> handles a lot of this for you. >> >> > OK, I tried building again using ''ruby extconf.rb; make; make install'' > and now it seems to load, but crashes with: > > objc: failed objc_getClass(NSObject) for > WebNetscapePluginDocumentView->isa->isa > objc: please link appropriate classes in your program > Trace/BPT trap > > Might this be related to trying to wrap splash.h (Wx::SplashScreen) - I > was just curious about SWIG, nothing vital - or is there something else > going wrong? > > Interestingly the wx.bundle is smaller (about 1.6MB) than when I built > it using the default Rake target. > > Thanks for help, sorry am very new to OS X > alex > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > >