From roys at mindspring.com Sun Oct 1 11:58:10 2006 From: roys at mindspring.com (Roy Sutton) Date: Sun, 01 Oct 2006 11:58:10 -0400 Subject: [Wxruby-users] typedefs.i.patch Message-ID: <451FE592.9020901@mindspring.com> Small patch to fix an enum. I have compiled a test version of Ruby that shows me the objects being freed during garbage collection. I modified minimal.rb with a menu item to invoke GC.start and it crashes every time. I figure that as soon as I figure out what's causing even minimal to crash on the first GC we'll be well on our way to solving all our problems. Unfortunately, on Windows I haven't figured out how to debug ruby itself or I'd just backtrace the crash. Maybe I'll try running on Linux later or recompiling with gcc on cygwin. Roy From alex at pressure.to Sun Oct 1 18:14:40 2006 From: alex at pressure.to (Alex Fenton) Date: Sun, 01 Oct 2006 23:14:40 +0100 Subject: [Wxruby-users] new crasher on bigdemo In-Reply-To: <451D8798.4050805@pressure.to> References: <451D8798.4050805@pressure.to> Message-ID: <45203DD0.3040809@pressure.to> Alex Fenton wrote: > Seems that the last round of commits makes bigdemo crash fairly quickly. > Guessing it's something to do with either the Window or fixmodule change. > Tracked it down a bit further. It seems as some time, SWIG tracking is returning a broken ruby object - if you call rb_inspect on it it segfaults. It's meant to be some sort of Event object that's generated continuously and on lots of types of Windows. I can't work out what sort it's meant to be, but doesn't seem to be IdleEvent. The attached patch avoids the crash. It doesn't get to the bottom of what the tracking problem is on OS X but allows us to proceed. cheers alex -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fixmodule_rb.patch Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061001/40de7dc4/attachment.pl From wxruby at qualitycode.com Mon Oct 2 00:02:41 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Mon, 02 Oct 2006 00:02:41 -0400 Subject: [Wxruby-users] ObjectPreviouslyDeleted when trying to paint In-Reply-To: <489be1d0609282007l84cf3ffiacf802c879f31091@mail.gmail.com> References: <489be1d0609282007l84cf3ffiacf802c879f31091@mail.gmail.com> Message-ID: <45208F61.1040709@qualitycode.com> Toby Butzon wrote: > mainframe on_paint > ./View/mainframe.rb:79:in `clear': in method 'Clear', argument 1 of > type 'wxWindowDC *' (ObjectPreviouslyDeleted) > from ./View/mainframe.rb:79:in `on_paint' > from ./View/mainframe.rb:78:in `paint' > from ./View/mainframe.rb:78:in `on_paint' > from ./View/mainframe.rb:29:in `initialize' > ... > > Anyone have an idea of what might be going on? Is there a "better" way > to trigger the redraw? As far as I know, you are doing everything exactly right. I have seen the same problem, but haven't yet had time to debug it. It seems to be a bug in paint (which we added as a bit of sugar on top of raw wx), so you should be able to work around it for now by creating your own PaintDC inside your on_paint method. This might cause a memory leak (not certain) so when paint is working again your should switch back to it. In your case, something like: def on_paint puts "mainframe on_paint" dc = Wx::PaintDC.new(self) dc.clear @cl.draw dc end Kevin From roys at mindspring.com Mon Oct 2 01:44:53 2006 From: roys at mindspring.com (Roy Sutton) Date: Mon, 02 Oct 2006 01:44:53 -0400 Subject: [Wxruby-users] new crasher on bigdemo In-Reply-To: <45203DD0.3040809@pressure.to> References: <451D8798.4050805@pressure.to> <45203DD0.3040809@pressure.to> Message-ID: <4520A755.9050406@mindspring.com> Alex, Good work! This fixes my crashing with my minimal sample when I try GC.start. Roy Alex Fenton wrote: > Alex Fenton wrote: >> Seems that the last round of commits makes bigdemo crash fairly >> quickly. Guessing it's something to do with either the Window or >> fixmodule change. >> > Tracked it down a bit further. It seems as some time, SWIG tracking is > returning a broken ruby object - if you call rb_inspect on it it > segfaults. It's meant to be some sort of Event object that's generated > continuously and on lots of types of Windows. I can't work out what > sort it's meant to be, but doesn't seem to be IdleEvent. > > The attached patch avoids the crash. It doesn't get to the bottom of > what the tracking problem is on OS X but allows us to proceed. > > cheers > alex > > ------------------------------------------------------------------------ > > Index: wxruby2/swig/fixmodule.rb > =================================================================== > --- wxruby2/swig/fixmodule.rb (revision 602) > +++ wxruby2/swig/fixmodule.rb (working copy) > @@ -82,7 +82,7 @@ > end > # Patch submitted for SWIG 1.3.30 > if(line.index("if (strcmp(type->name, type_name) == 0) {")) > - line = " if (rb_obj_is_kind_of(obj, (((swig_class *) (type->clientdata))->klass))) {" > + line = " if ( value != Qnil && rb_obj_is_kind_of(obj, sklass->klass) ) {" > end > #TODO 1.3.30 > # end > > ------------------------------------------------------------------------ > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users From alex at pressure.to Mon Oct 2 03:54:10 2006 From: alex at pressure.to (Alex Fenton) Date: Mon, 02 Oct 2006 08:54:10 +0100 Subject: [Wxruby-users] new crasher on bigdemo In-Reply-To: <4520A755.9050406@mindspring.com> References: <451D8798.4050805@pressure.to> <45203DD0.3040809@pressure.to> <4520A755.9050406@mindspring.com> Message-ID: <4520C5A2.6010008@pressure.to> Roy Sutton wrote: > Good work! This fixes my crashing with my minimal sample when I try > GC.start > Thanks for testing. Applied to SVN. I'm going to tag and release 0.0.36 later today. Will pick up your ruby 1.9 patch after that. Did you mean to send a patch for typedefs.i ? alex From alex at pressure.to Mon Oct 2 04:00:42 2006 From: alex at pressure.to (Alex Fenton) Date: Mon, 02 Oct 2006 09:00:42 +0100 Subject: [Wxruby-users] Intel Mac: Installation success, execution failed In-Reply-To: References: Message-ID: <4520C72A.1@pressure.to> Florian A?mann wrote: > irb(main):001:0> require 'rubygems' > => true > irb(main):002:0> load '/usr/local/lib/ruby/gems/1.8/gems/wxruby2- > preview-0.0.35-i686-darwin8.4.1/samples/minimal/minimal.rb' > dyld: NSLinkModule() error > dyld: Library not loaded: /usr/local/lib/libpng.3.dylib I wonder if the intel-mac WxWidgets library included in the gem has been built against the standard libpng instead of using the one bundled with wx? I don't have access to this platform but perhaps someone can have a look - the ./configure script for WxWidgets tells you which one it's using when it finishes. alex From alex at pressure.to Mon Oct 2 04:04:31 2006 From: alex at pressure.to (Alex Fenton) Date: Mon, 02 Oct 2006 09:04:31 +0100 Subject: [Wxruby-users] Installation success, execution failed In-Reply-To: References: Message-ID: <4520C80F.3050907@pressure.to> Florian A?mann wrote: > Hello, after I wasn't able to install wxruby via gem (404) I > downloaded the file from rubyforge and installed it on my intel mac. PS - I think we ran into a wrinkle with rubygems and the way the build tools version number is included on OS X gem filenames - when this was deleted, the gem command line tool can't find the right package. This was tweaked since the last version so might well work better alex From toby at butzon.com Mon Oct 2 09:49:24 2006 From: toby at butzon.com (Toby Butzon) Date: Mon, 2 Oct 2006 09:49:24 -0400 Subject: [Wxruby-users] Intel Mac: Installation success, execution failed In-Reply-To: <4520C72A.1@pressure.to> References: <4520C72A.1@pressure.to> Message-ID: <489be1d0610020649i44d75ea8g244948b2aa9f1180@mail.gmail.com> Hi, On 10/2/06, Alex Fenton wrote: > Florian A?mann wrote: > > irb(main):001:0> require 'rubygems' > > => true > > irb(main):002:0> load '/usr/local/lib/ruby/gems/1.8/gems/wxruby2- > > preview-0.0.35-i686-darwin8.4.1/samples/minimal/minimal.rb' > > dyld: NSLinkModule() error > > dyld: Library not loaded: /usr/local/lib/libpng.3.dylib I came across this the other day. To fix it, I installed libpng through Darwin Ports, which put it in /opt/local/lib/libpng*, so I then made a symlink from /usr/local/lib/libpng.3.dylib to /opt/local/lib/libpng.3.dylib. This seems to solve the problem on my box. -- Toby Butzon From roys at mindspring.com Mon Oct 2 13:29:46 2006 From: roys at mindspring.com (Roy Sutton) Date: Mon, 02 Oct 2006 13:29:46 -0400 Subject: [Wxruby-users] new crasher on bigdemo In-Reply-To: <4520C5A2.6010008@pressure.to> References: <451D8798.4050805@pressure.to> <45203DD0.3040809@pressure.to> <4520A755.9050406@mindspring.com> <4520C5A2.6010008@pressure.to> Message-ID: <45214C8A.6040304@mindspring.com> Alex Fenton wrote: > I'm going to tag and release 0.0.36 later today. Will pick up your ruby > 1.9 patch after that. Did you mean to send a patch for typedefs.i ? > > Well, yes... Here it is. I'll download and build the tagged version as soon as you get it ready. If you can send the appropriate SVN command out I won't have to brush up on my SVN-fu. Roy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: typedefs.i.patch Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061002/5ea06298/attachment.pl From florian.assmann at email.de Mon Oct 2 13:52:27 2006 From: florian.assmann at email.de (=?ISO-8859-1?Q?Florian_A=DFmann?=) Date: Mon, 2 Oct 2006 19:52:27 +0200 Subject: [Wxruby-users] Fixed: Intel Mac: Installation success, execution failed In-Reply-To: <489be1d0610020649i44d75ea8g244948b2aa9f1180@mail.gmail.com> References: <4520C72A.1@pressure.to> <489be1d0610020649i44d75ea8g244948b2aa9f1180@mail.gmail.com> Message-ID: Ok, I missed the libpng, should be mentioned at http:// wxruby.rubyforge.org/wiki/wiki.pl?Installation. :) Why WXRuby searches for the libpng in /usr/local... ? Aren't there any ways/indices to find the location of this lib? $ sudo gem install wxruby2-previewSelect which gem to install for your platform (i686-darwin8.7.1) 1. wxruby2-preview 0.0.35 (i486-linux) 2. wxruby2-preview 0.0.35 (i686-darwin8.4.1) 3. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0) 4. Cancel installation > 2 ERROR: While executing gem ... (OpenURI::HTTPError) 404 Not Found But the gem still couldn't be found, tried to sysupdate my rubygems before this try. Thanks and Regards Florian Am 02.10.2006 um 15:49 schrieb Toby Butzon: > Hi, > > On 10/2/06, Alex Fenton wrote: >> Florian A?mann wrote: >>> irb(main):001:0> require 'rubygems' >>> => true >>> irb(main):002:0> load '/usr/local/lib/ruby/gems/1.8/gems/wxruby2- >>> preview-0.0.35-i686-darwin8.4.1/samples/minimal/minimal.rb' >>> dyld: NSLinkModule() error >>> dyld: Library not loaded: /usr/local/lib/libpng.3.dylib > > I came across this the other day. To fix it, I installed libpng > through Darwin Ports, which put it in /opt/local/lib/libpng*, so I > then made a symlink from /usr/local/lib/libpng.3.dylib to > /opt/local/lib/libpng.3.dylib. This seems to solve the problem on my > box. > > -- > Toby Butzon > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users From alex at pressure.to Mon Oct 2 16:30:55 2006 From: alex at pressure.to (Alex Fenton) Date: Mon, 02 Oct 2006 21:30:55 +0100 Subject: [Wxruby-users] 0.0.36 tagged and released Message-ID: <452176FF.2010001@pressure.to> Hi I'm pleased to let you know that wxruby2-preview 0.0.36 is now available on Rubyforge. Binary gems to follow... To check out a clean copy from SVN and build from source: svn co svn://rubyforge.org/var/svn/wxruby/tags/wxruby2/0.0.36 cd 0.0.36 rake gem WXRUBY_VERSION=0.0.36 From my reading of SVN docs it's probably wise for developers to checkout anonymously as a bit of protection against accidentally committing on a tag. Thanks very much to all (esp Roy) for patches contributed to this release. alex From alex at pressure.to Mon Oct 2 16:54:21 2006 From: alex at pressure.to (Alex Fenton) Date: Mon, 02 Oct 2006 21:54:21 +0100 Subject: [Wxruby-users] Fixed: Intel Mac: Installation success, execution failed In-Reply-To: References: <4520C72A.1@pressure.to> <489be1d0610020649i44d75ea8g244948b2aa9f1180@mail.gmail.com> Message-ID: <45217C7D.7030509@pressure.to> Florian A?mann wrote: > Ok, I missed the libpng, should be mentioned at http:// > wxruby.rubyforge.org/wiki/wiki.pl?Installation. :) > I think it's a little glitch with the build, thanks for reporting the bug. The gems should be all-in-one and not have dependencies. I think people who are building gems just need to ensure that wxWidgets was built with: --with-png=builtin and similarly for tiff and jpeg; the output from ./configure says whether system or builtin versions will be used. > $ sudo gem install wxruby2-previewSelect which gem to install for > your platform (i686-darwin8.7.1) > 1. wxruby2-preview 0.0.35 (i486-linux) > 2. wxruby2-preview 0.0.35 (i686-darwin8.4.1) > 3. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0) > 4. Cancel installation > > 2 > ERROR: While executing gem ... (OpenURI::HTTPError) > 404 Not Found > Could you send me the output of ruby -e 'puts RUBY_PLATFORM' thanks alex From alex at pressure.to Mon Oct 2 17:09:07 2006 From: alex at pressure.to (Alex Fenton) Date: Mon, 02 Oct 2006 22:09:07 +0100 Subject: [Wxruby-users] GetSize and GetPosition In-Reply-To: <451A8FF9.3060409@qualitycode.com> References: <4519C640.5000203@mindspring.com> <451A8FF9.3060409@qualitycode.com> Message-ID: <45217FF3.1010803@pressure.to> Kevin Smith wrote: > Roy Sutton wrote: > >> Right now we default to returning objects instead of arrays. >> perl/python have alternates that return tuples/lists. Do we want to >> %alias those so we can get arrays back or does it really matter? >> > > I don't think it's important. Eventually we might want to, but it could > (and perhaps should) be done in wxSugar. > I don't feel strongly about it. I've added it to wxSugar anyway to see if people like it. alex From alex at pressure.to Mon Oct 2 19:28:57 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 00:28:57 +0100 Subject: [Wxruby-users] DragImage Message-ID: <4521A0B9.5010002@pressure.to> Attached a set of patches and new files to implement DragImage + sample for bigdemo. Alex -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: bigdemo_rb.patch Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/85ef997e/attachment.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wxDragImage_h.patch Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/85ef997e/attachment-0001.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wxDragImage.rbw Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/85ef997e/attachment-0002.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: DragImage.i Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/85ef997e/attachment-0003.pl From sean.m.long at gmail.com Mon Oct 2 20:22:46 2006 From: sean.m.long at gmail.com (Sean Long) Date: Mon, 2 Oct 2006 17:22:46 -0700 Subject: [Wxruby-users] Fixed: Intel Mac: Installation success, execution failed In-Reply-To: <45217C7D.7030509@pressure.to> References: <4520C72A.1@pressure.to> <489be1d0610020649i44d75ea8g244948b2aa9f1180@mail.gmail.com> <45217C7D.7030509@pressure.to> Message-ID: I built the Intel Mac 0.0.35 gem but never tested it because I have been very busy lately. When I built wxWidgets I did NOT specify --with-png=builtin. Hopefully I will get some time soon so I can fix my wxWidgets build to generate working wxRuby gems. Sorry for any inconvenience. Maybe the wiki should have a page with how to build the 'APPROVED' wxWidgets lib for each platform. Sean On 10/2/06, Alex Fenton wrote: > Florian A?mann wrote: > > Ok, I missed the libpng, should be mentioned at http:// > > wxruby.rubyforge.org/wiki/wiki.pl?Installation. :) > > > I think it's a little glitch with the build, thanks for reporting the > bug. The gems should be all-in-one and not have dependencies. I think > people who are building gems just need to ensure that wxWidgets was > built with: > > --with-png=builtin > > and similarly for tiff and jpeg; the output from ./configure says > whether system or builtin versions will be used. > > $ sudo gem install wxruby2-previewSelect which gem to install for > > your platform (i686-darwin8.7.1) > > 1. wxruby2-preview 0.0.35 (i486-linux) > > 2. wxruby2-preview 0.0.35 (i686-darwin8.4.1) > > 3. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0) > > 4. Cancel installation > > > 2 > > ERROR: While executing gem ... (OpenURI::HTTPError) > > 404 Not Found > > > Could you send me the output of ruby -e 'puts RUBY_PLATFORM' > > thanks > alex > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From roys at mindspring.com Tue Oct 3 00:48:05 2006 From: roys at mindspring.com (Roy Sutton) Date: Tue, 03 Oct 2006 00:48:05 -0400 Subject: [Wxruby-users] 0.0.36 tagged and released (READ FIRST!) In-Reply-To: <452176FF.2010001@pressure.to> References: <452176FF.2010001@pressure.to> Message-ID: <4521EB85.1030408@mindspring.com> Alex, Since I didn't hear back from you I went ahead and uploaded it to rubyforge. Didn't want anyone to snag the bad version. Roy Alex Fenton wrote: > Hi > > I'm pleased to let you know that wxruby2-preview 0.0.36 is now available > on Rubyforge. Binary gems to follow... > > To check out a clean copy from SVN and build from source: > > svn co svn://rubyforge.org/var/svn/wxruby/tags/wxruby2/0.0.36 > cd 0.0.36 > rake gem WXRUBY_VERSION=0.0.36 > > From my reading of SVN docs it's probably wise for developers to > checkout anonymously as a bit of protection against accidentally > committing on a tag. > > Thanks very much to all (esp Roy) for patches contributed to this release. > > alex > > > > > > > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > From roys at mindspring.com Tue Oct 3 01:23:44 2006 From: roys at mindspring.com (Roy Sutton) Date: Tue, 03 Oct 2006 01:23:44 -0400 Subject: [Wxruby-users] Tracker Cleanup Message-ID: <4521F3E0.9000303@mindspring.com> I have created a canned response called 'wxRuby 0.6.0 Cleanup' and will now go and mark as closed all open 0.6.0 messages. If you strongly disagree with this, they can always be re-opened. The text of the message is: Requests for support for wxRuby 0.6.0 have been closed so that we may focus on wxRuby2. No further work will be performed on wxRuby 0.6.0. Please download and try wxRuby2 to see if your problem has been resolved. If not, please submit a new report describing your problem with wxRuby2. Roy From roys at mindspring.com Tue Oct 3 01:56:38 2006 From: roys at mindspring.com (Roy Sutton) Date: Tue, 03 Oct 2006 01:56:38 -0400 Subject: [Wxruby-users] InitAllImageHandlers et. al. Message-ID: <4521FB96.4050207@mindspring.com> I'm going to submit a patch that will call wxInitializeStockObjects wxInitializeStockLists wxInitAllImageHandlers in wx.cpp on startup. I'll remove the calls from all the samples. Does anyone have any beef with this? Roy From roys at mindspring.com Tue Oct 3 02:05:29 2006 From: roys at mindspring.com (Roy Sutton) Date: Tue, 03 Oct 2006 02:05:29 -0400 Subject: [Wxruby-users] wxColourDatabase.h Message-ID: <4521FDA9.4060808@mindspring.com> This patch just fixes the ColourDatabase prototypes. I may expose this so we can add colours to the database. Anyone else if free to take a stab at it. I suggest we just expose the global 'TheColourDatabase' off Wx. Roy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wxColourDatabase.h.patch Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/f7ef2ed9/attachment.ksh From roys at mindspring.com Tue Oct 3 02:06:20 2006 From: roys at mindspring.com (Roy Sutton) Date: Tue, 03 Oct 2006 02:06:20 -0400 Subject: [Wxruby-users] wx.i Message-ID: <4521FDDC.5010803@mindspring.com> This patch calls the initializers I mentioned in the previous e-mails. I haven't patched the samples yet. Waiting to hear if you like this or no. Roy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wx.i.patch Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/192c12b1/attachment.pl From alex at pressure.to Tue Oct 3 02:54:18 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 07:54:18 +0100 Subject: [Wxruby-users] Fixed: Intel Mac: Installation success, execution failed In-Reply-To: References: <4520C72A.1@pressure.to> <489be1d0610020649i44d75ea8g244948b2aa9f1180@mail.gmail.com> <45217C7D.7030509@pressure.to> Message-ID: <4522091A.2030306@pressure.to> Hi Sean Sean Long wrote: > I built the Intel Mac 0.0.35 gem but never tested it because I have > been very busy lately. When I built wxWidgets I did NOT specify > --with-png=builtin. > I'm not 100% sure that's it, but it seems likely then. > Hopefully I will get some time soon so I can fix my wxWidgets build to > generate working wxRuby gems. > Sounds like the gem is fine apart from that. We'll be happy to receive a gem whenever you have time. Much appreciated. > Sorry for any inconvenience. > No worries. We didn't know it would cause a problem > Maybe the wiki should have a page with how to build the 'APPROVED' > wxWidgets lib for each platform. > Good idea cheers alex From alex at pressure.to Tue Oct 3 03:00:21 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 08:00:21 +0100 Subject: [Wxruby-users] Tracker Cleanup In-Reply-To: <4521F3E0.9000303@mindspring.com> References: <4521F3E0.9000303@mindspring.com> Message-ID: <45220A85.60007@pressure.to> Sounds good. There shouldn't be that many left - most have either been closed or updated if they are still relevant to wxruby2. Probably best to focus on build errors that sound out of date. alex Roy Sutton wrote: > I have created a canned response called 'wxRuby 0.6.0 Cleanup' and will > now go and mark as closed all open 0.6.0 messages. If you strongly > disagree with this, they can always be re-opened. The text of the > message is: > > Requests for support for wxRuby 0.6.0 have been closed so that we > may focus on wxRuby2. No further work will be performed on > wxRuby 0.6.0. Please download and try wxRuby2 to see if your > problem has been resolved. If not, please submit a new report > describing your problem with wxRuby2. > > Roy > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From florian.assmann at email.de Tue Oct 3 03:02:05 2006 From: florian.assmann at email.de (=?ISO-8859-1?Q?Florian_A=DFmann?=) Date: Tue, 3 Oct 2006 09:02:05 +0200 Subject: [Wxruby-users] Fixed: Intel Mac: Installation success, execution failed In-Reply-To: References: <4520C72A.1@pressure.to> <489be1d0610020649i44d75ea8g244948b2aa9f1180@mail.gmail.com> <45217C7D.7030509@pressure.to> Message-ID: <410AB186-02A4-43B9-8F3C-6B2AA27A198D@email.de> No problem Sean, I'm grateful to you for building it anyway. Alex, I got this: i686-darwin8.7.1 Regards Florian Am 03.10.2006 um 02:22 schrieb Sean Long: > I built the Intel Mac 0.0.35 gem but never tested it because I have > been very busy lately. When I built wxWidgets I did NOT specify > --with-png=builtin. > > Hopefully I will get some time soon so I can fix my wxWidgets build to > generate working wxRuby gems. > > Sorry for any inconvenience. > > Maybe the wiki should have a page with how to build the 'APPROVED' > wxWidgets lib for each platform. > > Sean > > On 10/2/06, Alex Fenton wrote: >> Florian A?mann wrote: >>> Ok, I missed the libpng, should be mentioned at http:// >>> wxruby.rubyforge.org/wiki/wiki.pl?Installation. :) >>> >> I think it's a little glitch with the build, thanks for reporting the >> bug. The gems should be all-in-one and not have dependencies. I think >> people who are building gems just need to ensure that wxWidgets was >> built with: >> >> --with-png=builtin >> >> and similarly for tiff and jpeg; the output from ./configure says >> whether system or builtin versions will be used. >>> $ sudo gem install wxruby2-previewSelect which gem to install for >>> your platform (i686-darwin8.7.1) >>> 1. wxruby2-preview 0.0.35 (i486-linux) >>> 2. wxruby2-preview 0.0.35 (i686-darwin8.4.1) >>> 3. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0) >>> 4. Cancel installation >>>> 2 >>> ERROR: While executing gem ... (OpenURI::HTTPError) >>> 404 Not Found >>> >> Could you send me the output of ruby -e 'puts RUBY_PLATFORM' >> >> thanks >> alex >> >> >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users From alex at pressure.to Tue Oct 3 03:30:47 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 08:30:47 +0100 Subject: [Wxruby-users] InitAllImageHandlers et. al. In-Reply-To: <4521FB96.4050207@mindspring.com> References: <4521FB96.4050207@mindspring.com> Message-ID: <452211A7.4090200@pressure.to> Roy Sutton wrote: > I'm going to submit a patch that will call > > wxInitializeStockObjects > wxInitializeStockLists > wxInitAllImageHandlers > > in wx.cpp on startup. +1 From sean.m.long at gmail.com Tue Oct 3 04:17:43 2006 From: sean.m.long at gmail.com (Sean Long) Date: Tue, 3 Oct 2006 01:17:43 -0700 Subject: [Wxruby-users] Fixed: Intel Mac: Installation success, execution failed In-Reply-To: <410AB186-02A4-43B9-8F3C-6B2AA27A198D@email.de> References: <4520C72A.1@pressure.to> <489be1d0610020649i44d75ea8g244948b2aa9f1180@mail.gmail.com> <45217C7D.7030509@pressure.to> <410AB186-02A4-43B9-8F3C-6B2AA27A198D@email.de> Message-ID: > > Maybe the wiki should have a page with how to build the 'APPROVED' > > wxWidgets lib for each platform. These are the build settings I use on OSX (I added the --with-png=builtin) cd to wxWidgets directory root mkdir osx_build cd osx_build ../configure --enable-debug=no --enable-shared=no --enable-static=yes --enable-unicode --with-png=builtin make -j 2 sudo make install cd .. mkdir osx_build_debug ../configure --enable-debug=yes --enable-shared=no --enable-static=yes --enable-unicode --with-png=builtin make -j 2 sudo make install I use -j 2 on make since I have a dual processor machine. I am building the Intel OS X 0.0.36 gem as I write this. Sean From wxruby at qualitycode.com Tue Oct 3 09:10:58 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Tue, 03 Oct 2006 09:10:58 -0400 Subject: [Wxruby-users] InitAllImageHandlers et. al. In-Reply-To: <452211A7.4090200@pressure.to> References: <4521FB96.4050207@mindspring.com> <452211A7.4090200@pressure.to> Message-ID: <45226162.10203@qualitycode.com> Alex Fenton wrote: > Roy Sutton wrote: >> I'm going to submit a patch that will call >> >> wxInitializeStockObjects >> wxInitializeStockLists >> wxInitAllImageHandlers >> >> in wx.cpp on startup. > +1 I'm also +1, at least for now. Eventually we may want to create "light" or modular versions of wxruby that wouldn't consume the time and memory needed by all those objects and handlers. But for now I think it is consistent with our philosophy to just "make it work" for people. Kevin From alex at pressure.to Tue Oct 3 13:37:04 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 18:37:04 +0100 Subject: [Wxruby-users] wxColourDatabase.h In-Reply-To: <4521FDA9.4060808@mindspring.com> References: <4521FDA9.4060808@mindspring.com> Message-ID: <45229FC0.2060502@pressure.to> Committed, thanks. I'm not sure this class does anything much a simple Hash couldn't do, but I suppose the in-built colours might be nice to have. alex Roy Sutton wrote: > This patch just fixes the ColourDatabase prototypes. I may expose > this so we can add colours to the database. Anyone else if free to > take a stab at it. I suggest we just expose the global > 'TheColourDatabase' off Wx. > > Roy From alex at pressure.to Tue Oct 3 13:41:06 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 18:41:06 +0100 Subject: [Wxruby-users] wx.i In-Reply-To: <4521FDDC.5010803@mindspring.com> References: <4521FDDC.5010803@mindspring.com> Message-ID: <4522A0B2.8000801@pressure.to> Committed, thanks. Please feel free to update the samples directly. A while ago, I wasted a few hours trying to map the in-built colours (RED etc) thinking they were missing from wxruby2, so think this patch is a good thing for now... alex Roy Sutton wrote: > This patch calls the initializers I mentioned in the previous > e-mails. I haven't patched the samples yet. Waiting to hear if you > like this or no. > > Roy From alex at pressure.to Tue Oct 3 14:03:32 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 19:03:32 +0100 Subject: [Wxruby-users] fixmodule patches In-Reply-To: <451DF4E2.3070209@mindspring.com> References: <451DF4E2.3070209@mindspring.com> Message-ID: <4522A5F4.9010500@pressure.to> Hi Thanks for these patches. If I understand rightly, these are a back/cross port from swig's CVS HEAD. If so I would prefer not to apply them, and let support for 1.9 come with the release of SWIG 1.3.30. fixmodule.rb etc are probably the most magic (i.e. important but difficult, and also fragile to SWIG releases) bits of our build system. I would prefer to limit additions to fixes for serious bugs - also since we are going to want to unpick these scripts at some stage. I see support for 1.9 as a nice-to-have, but I don't think it's unreasonable for now to ask someone using unstable ruby to compile SWIG from CVS. But I'm open to committing these patches if people feel strongly about it? alex Roy Sutton wrote: > These patches (should) give us support for compiling against Ruby 1.9. From alex at pressure.to Tue Oct 3 14:04:33 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 19:04:33 +0100 Subject: [Wxruby-users] typedefs.i.patch In-Reply-To: <451FE592.9020901@mindspring.com> References: <451FE592.9020901@mindspring.com> Message-ID: <4522A631.7090707@pressure.to> Committed, thanks Roy Sutton wrote: > Small patch to fix an enum. > From alex at pressure.to Tue Oct 3 14:11:06 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 19:11:06 +0100 Subject: [Wxruby-users] StdDialogButtonSizer Message-ID: <4522A7BA.3060308@pressure.to> A set of extra files and a bigdemo sample patch to implement StdDialogButtonSizer. This is a neat little class that allows the OK/Cancel/Save/Yes/etc buttons at the bottom of a custom Dialog to be shown with the correct platform ordering, spacing and labelling. alex -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wxDialog_rbw.patch Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/61bd0543/attachment.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: StdDialogButtonSizer.i Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/61bd0543/attachment-0001.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wxStdDialogButtonSizer.h Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/61bd0543/attachment.h From alex at pressure.to Tue Oct 3 14:15:50 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 03 Oct 2006 19:15:50 +0100 Subject: [Wxruby-users] IconBundle and ListView Message-ID: <4522A8D6.7070700@pressure.to> Just two simple classes that seem to work without problem. IconBundle allows you to associate multiple different-sized icons with a frame, so you don't get ugly rescaling when an icon is viewed in taskbar, menubar or when alt-tabbing. Unfortunately I can't test this because OS X doesn't use application icons in this way. The key methods seem to return the right thing - although Wx::Icon itself seems to be returning broken (double-typemapped?) values for get_height etc. ListView is just a simple interface facade onto ListCtrl alex -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ListView.i Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/60d7084c/attachment.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: IconBundle.i Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20061003/60d7084c/attachment-0001.pl From roys at mindspring.com Tue Oct 3 16:36:20 2006 From: roys at mindspring.com (Roy Sutton) Date: Tue, 03 Oct 2006 16:36:20 -0400 Subject: [Wxruby-users] Compiling on Ubuntu Message-ID: <4522C9C4.8000001@mindspring.com> I see several shortcomings in our current method of compiling on linux. Some things I ran in to which might need to be documented on the wiki: 1) Compiling wx properly. A little discussion of the proper flags would be helpful. 2) The use of system libraries for jpeg, tiff and png. The rake file assumes you'll need these, even if you're using the builtins from wx. We should modify the rakefile to test wx-config to see if you're using them and to -not- include them if so. My machine didn't have those libraries and it caused the rake to fail. 3) Once I got a library compiled, I couldn't use it. Not sure why but it says it can't find wxruby2. I am wondering if it needs a different extension than .so or if I need to mark it executable or some other thing. I don't know. Does anyone have some pointers on what I'm supposed to do with it to make ruby recognize it? Roy From roys at mindspring.com Wed Oct 4 00:10:36 2006 From: roys at mindspring.com (Roy Sutton) Date: Wed, 04 Oct 2006 00:10:36 -0400 Subject: [Wxruby-users] fixmodule patches In-Reply-To: <4522A5F4.9010500@pressure.to> References: <451DF4E2.3070209@mindspring.com> <4522A5F4.9010500@pressure.to> Message-ID: <4523343C.2090801@mindspring.com> Alex Fenton wrote: > I see support for 1.9 as a nice-to-have, but I don't think it's > unreasonable for now to ask someone using unstable ruby to compile SWIG > from CVS. > I'm fine with waiting. Of course, they'll need more than SWIG from CVS, they're still need to patch fixmodule.rb and typemaps.i to remove the references to RSTRING(obj)->ptr and RARRAY(obj)->len. I did submit typemap.i.patch along with the patch, didn't I? Roy From roys at mindspring.com Wed Oct 4 01:06:36 2006 From: roys at mindspring.com (Roy Sutton) Date: Wed, 04 Oct 2006 01:06:36 -0400 Subject: [Wxruby-users] more linux headaches Message-ID: <4523415C.6080508@mindspring.com> After creating and installing a gem I get 'unintialized constant Wxruby2' when trying to run wxRuby. Kevin, can you give me some pointers on getting this thing working? Roy From alex at pressure.to Wed Oct 4 03:39:22 2006 From: alex at pressure.to (Alex Fenton) Date: Wed, 04 Oct 2006 08:39:22 +0100 Subject: [Wxruby-users] fixmodule patches In-Reply-To: <4523343C.2090801@mindspring.com> References: <451DF4E2.3070209@mindspring.com> <4522A5F4.9010500@pressure.to> <4523343C.2090801@mindspring.com> Message-ID: <4523652A.90107@pressure.to> Roy Sutton wrote: > I'm fine with waiting. Of course, they'll need more than SWIG from CVS, > they're still need to patch fixmodule.rb and typemaps.i to remove the > references to RSTRING(obj)->ptr and RARRAY(obj)->len. Cool - this should now be googleable on the m.l. archive. Let's update our scripts to use the new macro definition once 1.3.30 swig is released. > I did submit > typemap.i.patch along with the patch, didn't I? > I didn't see one ;) Thanks for tracking this. alex From wxruby at qualitycode.com Wed Oct 4 22:44:23 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Wed, 04 Oct 2006 22:44:23 -0400 Subject: [Wxruby-users] Compiling on Ubuntu In-Reply-To: <4522C9C4.8000001@mindspring.com> References: <4522C9C4.8000001@mindspring.com> Message-ID: <45247187.2040801@qualitycode.com> Roy Sutton wrote: > I see several shortcomings in our current method of compiling on linux. > Some things I ran in to which might need to be documented on the wiki: > > 1) Compiling wx properly. A little discussion of the proper flags > would be helpful. Here is the script I ran to compile wx for the gem I built earlier: kevins at aria:/usr/local/src/wxWidgets-2.6.3/buildgtk-static-release$ cat doconfigure.sh ../configure --disable-shared --with-gtk --enable-monolithic --with-libpng --with-libjpeg --with-libtiff --with-libxpm --with-zlib --enable-debug --enable-catch_segvs --enable-xrc --enable-mdi --enable-gif --enable-pcx --enable-iff --enable-pnm --enable-xpm --enable-gui --enable-unicode --disable-debug kevins at aria:/usr/local/src/wxWidgets-2.6.3/buildgtk-static-release$ The configure options for wx are not well documented, so I really don't know how many of those are optimal, how many are poor choices, and how many are simply extraneous. > 2) The use of system libraries for jpeg, tiff and png. The rake file > assumes you'll need these, even if you're using the builtins from wx. > We should modify the rakefile to test wx-config to see if you're using > them and to -not- include them if so. My machine didn't have those > libraries and it caused the rake to fail. I was thinking using the common libraries would be better, but apparently not. Should be easy to modify the above script to use the internal versions. > > 3) Once I got a library compiled, I couldn't use it. Not sure why but > it says it can't find wxruby2. I am wondering if it needs a different > extension than .so or if I need to mark it executable or some other > thing. I don't know. Does anyone have some pointers on what I'm > supposed to do with it to make ruby recognize it? After compling wxruby, I either install the raw .so (rake install) or build and install the gem. Personally, I don't like to use rake install any more, because a) there is no uninstall, and b) if you later install the gem it won't work because the earlier copy that was rake installed takes precedence. I'm not sure if any of that has anything to do with the problems you are having, but figured I should mention them. I hope to be able to do an Ubuntu Linux build within the next few days. Sunday at the latest. Kevin From wxruby at qualitycode.com Wed Oct 4 22:45:16 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Wed, 04 Oct 2006 22:45:16 -0400 Subject: [Wxruby-users] more linux headaches In-Reply-To: <4523415C.6080508@mindspring.com> References: <4523415C.6080508@mindspring.com> Message-ID: <452471BC.1020303@qualitycode.com> Roy Sutton wrote: > After creating and installing a gem I get 'unintialized constant > Wxruby2' when trying to run wxRuby. Kevin, can you give me some > pointers on getting this thing working? > I don't recall ever seeing that one. Hopefully my other email will help. If not, let me know exactly what you are trying, and what you are seeing. Kevin From roys at mindspring.com Thu Oct 5 02:13:11 2006 From: roys at mindspring.com (Roy Sutton) Date: Thu, 05 Oct 2006 02:13:11 -0400 Subject: [Wxruby-users] Compiling on Ubuntu In-Reply-To: <45247187.2040801@qualitycode.com> References: <4522C9C4.8000001@mindspring.com> <45247187.2040801@qualitycode.com> Message-ID: <4524A277.1030704@mindspring.com> Kevin Smith wrote: > Here is the script I ran to compile wx for the gem I built earlier: > > kevins at aria:/usr/local/src/wxWidgets-2.6.3/buildgtk-static-release$ cat > doconfigure.sh > ../configure --disable-shared --with-gtk --enable-monolithic > --with-libpng --with-libjpeg --with-libtiff --with-libxpm --with-zlib > --enable-debug --enable-catch_segvs --enable-xrc --enable-mdi > --enable-gif --enable-pcx --enable-iff --enable-pnm --enable-xpm > --enable-gui --enable-unicode --disable-debug > Thanks, Kevin. I'll try those options. I would say that having both --enable-debug and --disable-debug might be extraneous. > After compling wxruby, I either install the raw .so (rake install) or > build and install the gem. Personally, I don't like to use rake install > any more, because a) there is no uninstall, and b) if you later install > the gem it won't work because the earlier copy that was rake installed > takes precedence. > Hmm, I never did a 'rake install' (didn't know it existed!). On Windows I just set RUBYLIB to point to my wxruby2/lib directory. I'll try remaking the gem with the commands you gave and see if that fixes anything. Roy From roys at mindspring.com Thu Oct 5 02:46:56 2006 From: roys at mindspring.com (Roy Sutton) Date: Thu, 05 Oct 2006 02:46:56 -0400 Subject: [Wxruby-users] 0.0.36 tagged and released In-Reply-To: <452176FF.2010001@pressure.to> References: <452176FF.2010001@pressure.to> Message-ID: <4524AA60.1000805@mindspring.com> Alex Fenton wrote: > Hi > > I'm pleased to let you know that wxruby2-preview 0.0.36 is now available > on Rubyforge. Binary gems to follow... > > > Can we do an announcement on this? I'm pretty excited to get some feedback. Roy From sean.m.long at gmail.com Thu Oct 5 03:41:21 2006 From: sean.m.long at gmail.com (Sean Long) Date: Thu, 5 Oct 2006 00:41:21 -0700 Subject: [Wxruby-users] more linux headaches In-Reply-To: <452471BC.1020303@qualitycode.com> References: <4523415C.6080508@mindspring.com> <452471BC.1020303@qualitycode.com> Message-ID: Do you have the environment variable RUBYOPT set to rubygems? On my systems I had to set that env. variable to get gems to work without specifically requiring 'rubygems' in every sample. Sean On 10/4/06, Kevin Smith wrote: > Roy Sutton wrote: > > After creating and installing a gem I get 'unintialized constant > > Wxruby2' when trying to run wxRuby. Kevin, can you give me some > > pointers on getting this thing working? > > > > I don't recall ever seeing that one. Hopefully my other email will help. > If not, let me know exactly what you are trying, and what you are seeing. > > Kevin > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From alex at pressure.to Thu Oct 5 05:55:24 2006 From: alex at pressure.to (Alex Fenton) Date: Thu, 05 Oct 2006 10:55:24 +0100 Subject: [Wxruby-users] 0.0.36 tagged and released In-Reply-To: <4524AA60.1000805@mindspring.com> References: <452176FF.2010001@pressure.to> <4524AA60.1000805@mindspring.com> Message-ID: <4524D68C.4040105@pressure.to> Roy Sutton wrote: > Can we do an announcement on this? I'm pretty excited to get some feedback. > So am I. We have gone a long way beyond what we said in August we wanted to achieve for our first public alpha. But I would like to resolve the issue with linux gems and have one available. It seems that Roy is not the only fine having a problem with loading a gem: http://rubyforge.org/tracker/index.php?func=detail&aid=5874&group_id=35&atid=218 looks like the gem is loading, but the compiled .so isn't? alex From wxruby at qualitycode.com Thu Oct 5 09:02:19 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Thu, 05 Oct 2006 09:02:19 -0400 Subject: [Wxruby-users] 0.0.36 tagged and released In-Reply-To: <4524AA60.1000805@mindspring.com> References: <452176FF.2010001@pressure.to> <4524AA60.1000805@mindspring.com> Message-ID: <4525025B.7020806@qualitycode.com> Roy Sutton wrote: > Alex Fenton wrote: >> Hi >> >> I'm pleased to let you know that wxruby2-preview 0.0.36 is now available >> on Rubyforge. Binary gems to follow... >> > Can we do an announcement on this? I'm pretty excited to get some feedback. As soon as we have all the binary gems up, I'm ok doing an announcement. I guess Linux is the only one missing (my fault). Oh, except for one other thing: I just created a 'wxruby-development' mailing list, which may take up to a day to activate. We should probably shift our development discussions there before the announcement, as we had discussed previously. For future releases, we should create the release but keep it hidden until all the gems are there. Kevin From roys at mindspring.com Thu Oct 5 10:13:42 2006 From: roys at mindspring.com (Roy Sutton) Date: Thu, 05 Oct 2006 10:13:42 -0400 Subject: [Wxruby-users] more linux headaches In-Reply-To: References: <4523415C.6080508@mindspring.com> <452471BC.1020303@qualitycode.com> Message-ID: <45251316.7070303@mindspring.com> Sean Long wrote: > Do you have the environment variable RUBYOPT set to rubygems? On my > systems I had to set that env. variable to get gems to work without > specifically requiring 'rubygems' in every sample. > No, but I was specifying -rubygems on the command line. Even after recompiling I'm having the same issue. I was trying to build a debug version. I'll try building a non-debug version. Roy From m_t_k_nospam at yahoo.co.uk Thu Oct 5 11:39:07 2006 From: m_t_k_nospam at yahoo.co.uk (Mike Kyle) Date: Thu, 5 Oct 2006 15:39:07 +0000 (GMT) Subject: [Wxruby-users] 0.36 release problem? Message-ID: <20061005153907.58298.qmail@web27711.mail.ukl.yahoo.com> I tried sending this a day or two ago but I didn't see it appear. I've just tried the wxRuby 0.36 release but appear to get the following error (I got it from bigdemo.rb too). C:\opt\ruby\lib\ruby\gems\1.8\gems\wxruby2-preview-0.0.36-i386-mswin32\samples\minimal>minimal Our Initialize was called Their Initialize returned 1 C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in `is_maximized': Swig director pure virtual method called wxTopLevelWindow::IsMaximized (RuntimeError) from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in `on_create_status_bar' from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in `create_status_bar' from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in `initialize' from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:70:in `new' from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:70:in `on_init' from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:90:in `main_loop' from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:90 I have to admit that I'm a Ruby novice and was trying out wxRuby but the error "smelt" suspicious. ___________________________________________________________ Yahoo! Messenger - with free PC-PC calling and photo sharing. http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20061005/3159af41/attachment.html From roys at mindspring.com Thu Oct 5 14:02:00 2006 From: roys at mindspring.com (Roy Sutton) Date: Thu, 05 Oct 2006 14:02:00 -0400 Subject: [Wxruby-users] samples Message-ID: <45254898.7000406@mindspring.com> What do you think about adding a shebang line to the samples so they can be launched on linux/mac like you can on windows? Roy From roys at mindspring.com Thu Oct 5 15:22:23 2006 From: roys at mindspring.com (Roy Sutton) Date: Thu, 05 Oct 2006 15:22:23 -0400 Subject: [Wxruby-users] 0.36 release problem? In-Reply-To: <20061005153907.58298.qmail@web27711.mail.ukl.yahoo.com> References: <20061005153907.58298.qmail@web27711.mail.ukl.yahoo.com> Message-ID: <45255B6F.4080507@mindspring.com> Mike, Please gem uninstall the gem and try re-installing it. The first version posted had a problem. You shouldn't see that problem with the updated gem. Roy Mike Kyle wrote: > I tried sending this a day or two ago but I didn't see it appear. > > I've just tried the wxRuby 0.36 release but appear to get the > following error (I got it from bigdemo.rb too). > > C:\opt\ruby\lib\ruby\gems\1.8\gems\wxruby2-preview-0.0.36-i386-mswin32\samples\minimal>minimal > Our Initialize was called > Their Initialize returned 1 > C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in > `is_maximized': Swig director pure virtual method called > wxTopLevelWindow::IsMaximized (RuntimeError) > from > C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in > `on_create_status_bar' > from > C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in > `create_status_bar' > from > C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in > `initialize' > from > C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:70:in > `new' > from > C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:70:in > `on_init' > from > C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:90:in > `main_loop' > from > C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:90 > > > I have to admit that I'm a Ruby novice and was trying out wxRuby but > the error "smelt" suspicious. > > ------------------------------------------------------------------------ > All new Yahoo! Mail > > "The new Interface is stunning in its simplicity and ease of use." - > PC Magazine > ------------------------------------------------------------------------ > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users From alex at pressure.to Thu Oct 5 15:55:21 2006 From: alex at pressure.to (Alex Fenton) Date: Thu, 05 Oct 2006 20:55:21 +0100 Subject: [Wxruby-users] 0.36 release problem? In-Reply-To: <20061005153907.58298.qmail@web27711.mail.ukl.yahoo.com> References: <20061005153907.58298.qmail@web27711.mail.ukl.yahoo.com> Message-ID: <45256329.1020404@pressure.to> Hi Thanks for the report: Mike Kyle wrote: > I've just tried the wxRuby 0.36 release but appear to get the > following error (I got it from bigdemo.rb too). > > C:\opt\ruby\lib\ruby\gems\1.8\gems\wxruby2-preview-0.0.36-i386-mswin32\samples\minimal>minimal > Our Initialize was called > Their Initialize returned 1 > C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in > `is_maximized': Swig director pure virtual method called > wxTopLevelWindow::IsMaximized (RuntimeError) > from I think you were unlucky and got an early Windows build which had some errors. A new version was uploaded a couple of days ago a few hours after the problem emerged. I had the same problem on Tuesday but reinstalling should get you the right version now. If not there may be a problem with rubyforge syncing to mirrors - if so please let us know. cheers alex From sean.m.long at gmail.com Thu Oct 5 18:08:14 2006 From: sean.m.long at gmail.com (Sean Long) Date: Thu, 5 Oct 2006 15:08:14 -0700 Subject: [Wxruby-users] samples In-Reply-To: <45254898.7000406@mindspring.com> References: <45254898.7000406@mindspring.com> Message-ID: I usually add #!/usr/bin/env ruby to my own programs. I am fine with it as long as it does not cause any problems on Windows. +1 for me Should we start moving discussions like this to the new wxruby-development list? Sean On 10/5/06, Roy Sutton wrote: > What do you think about adding a shebang line to the samples so they can > be launched on linux/mac like you can on windows? > > Roy > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From m_t_k_nospam at yahoo.co.uk Thu Oct 5 23:41:12 2006 From: m_t_k_nospam at yahoo.co.uk (Mike Kyle) Date: Fri, 6 Oct 2006 03:41:12 +0000 (GMT) Subject: [Wxruby-users] 0.36 problem? Message-ID: <20061006034112.66093.qmail@web27715.mail.ukl.yahoo.com> I hate to say this but I have just uninstalled and reinstalled a freshly downloaded wxruby2-preview-0.0.36-i386-mswin32.gem as from http://rubyforge.org/frs/?group_id=35 and received exactly the same error. Is it possible the corrected gem is not yet available from the download site? This is all against a relatively fresh/new basic Ruby 1.8.5 installation on a fully patched XP Professional box. ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20061006/af3bb642/attachment.html From alex at pressure.to Fri Oct 6 05:48:36 2006 From: alex at pressure.to (Alex Fenton) Date: Fri, 06 Oct 2006 10:48:36 +0100 Subject: [Wxruby-users] 0.36 problem? In-Reply-To: <20061006034112.66093.qmail@web27715.mail.ukl.yahoo.com> References: <20061006034112.66093.qmail@web27715.mail.ukl.yahoo.com> Message-ID: <45262674.7030608@pressure.to> I've just run a quick check and it seems some mirrors are still serving the stale, broken file. When I download via Rubyforge I get pointed to two mirrors that have the stale file. But then when I tried running gem install remotely, I got a working version a couple of times. If you want a definitely working version right now, I can email one to you off-list. For reference The correct file size is 2,985,984 bytes The broken file size 2,979,840 bytes Anyway, have filed a bug with rubyforge; last time I had this problem on another project they fixed it pretty quickly. Sorry for the inconvenience. alex Mike Kyle wrote: > I hate to say this but I have just uninstalled and reinstalled a > freshly downloaded wxruby2-preview-0.0.36-i386-mswin32.gem as from > http://rubyforge.org/frs/?group_id=35 and received exactly the same error. > > Is it possible the corrected gem is not yet available from the > download site? > > This is all against a relatively fresh/new basic Ruby 1.8.5 > installation on a fully patched XP Professional box. > > ------------------------------------------------------------------------ > Yahoo! Messenger > > NEW - crystal clear PC to PC calling worldwide with voicemail > > > ------------------------------------------------------------------------ > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users From wxruby at qualitycode.com Sat Oct 7 00:45:40 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Sat, 07 Oct 2006 00:45:40 -0400 Subject: [Wxruby-users] 0.36 problem? In-Reply-To: <45262674.7030608@pressure.to> References: <20061006034112.66093.qmail@web27715.mail.ukl.yahoo.com> <45262674.7030608@pressure.to> Message-ID: <452730F4.7090207@qualitycode.com> As a process point, we really should not upload identically-versioned gems that are different. That's just asking for trouble. If we goof in the future, let's bump the version number. Clean and safe. Thanks, Kevin Alex Fenton wrote: > I've just run a quick check and it seems some mirrors are still serving > the stale, broken file. When I download via Rubyforge I get pointed to > two mirrors that have the stale file. But then when I tried running gem > install remotely, I got a working version a couple of times. > > If you want a definitely working version right now, I can email one to > you off-list. For reference > > The correct file size is 2,985,984 bytes > The broken file size 2,979,840 bytes > > Anyway, have filed a bug with rubyforge; last time I had this problem on > another project they fixed it pretty quickly. > > Sorry for the inconvenience. > > alex > > Mike Kyle wrote: >> I hate to say this but I have just uninstalled and reinstalled a >> freshly downloaded wxruby2-preview-0.0.36-i386-mswin32.gem as from >> http://rubyforge.org/frs/?group_id=35 and received exactly the same error. >> >> Is it possible the corrected gem is not yet available from the >> download site? >> >> This is all against a relatively fresh/new basic Ruby 1.8.5 >> installation on a fully patched XP Professional box. >> >> ------------------------------------------------------------------------ >> Yahoo! Messenger >> >> NEW - crystal clear PC to PC calling worldwide with voicemail >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users From wxruby at qualitycode.com Sat Oct 7 11:06:45 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Sat, 07 Oct 2006 11:06:45 -0400 Subject: [Wxruby-users] samples In-Reply-To: References: <45254898.7000406@mindspring.com> Message-ID: <4527C285.8030601@qualitycode.com> Sean Long wrote: > On 10/5/06, Roy Sutton wrote: >> What do you think about adding a shebang line to the samples so they can >> be launched on linux/mac like you can on windows? > I usually add > #!/usr/bin/env ruby > > to my own programs. +1 from me, using the shebang line above. > Should we start moving discussions like this to the new wxruby-development list? Yes, since it now appears that all the core developers are subscribed. Except that I haven't yet received a message I posted to it several minutes ago :-( Kevin From wxruby at qualitycode.com Sat Oct 7 11:10:31 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Sat, 07 Oct 2006 11:10:31 -0400 Subject: [Wxruby-users] New wxruby mailing list Message-ID: <4527C367.2050106@qualitycode.com> Greetings all, I have created a new wxruby-development mailing list, which should now be used for discussions about wxruby internals, development process, and other issues that would not be of interest to someone who simply wants to use wxruby to get their job done. The wxruby-users list will continue to be the best place to report problems with wxruby, including problems building, installing, or running wxruby samples or real apps. If I see emails posted to the "wrong" list, I'll probably forward them to the appropriate list with a note explaining why I felt the other list would be more appropriate. I don't want to be too strict about it though, so don't panic. Please do not avoid posting messages just because you're not sure which list they should go do. Either list is better than none at all! Thanks, Kevin From wxruby at qualitycode.com Sat Oct 7 11:36:03 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Sat, 07 Oct 2006 11:36:03 -0400 Subject: [Wxruby-users] NameError: uninitialized constant Wxruby2 In-Reply-To: <4524D68C.4040105@pressure.to> References: <452176FF.2010001@pressure.to> <4524AA60.1000805@mindspring.com> <4524D68C.4040105@pressure.to> Message-ID: <4527C963.8000707@qualitycode.com> Alex Fenton wrote: > But I would like to resolve the issue with linux gems and have one > available. It seems that Roy is not the only fine having a problem with > loading a gem: > > http://rubyforge.org/tracker/index.php?func=detail&aid=5874&group_id=35&atid=218 > > looks like the gem is loading, but the compiled .so isn't? Here is what I just posted in that tracker entry: A few questions/suggestions: 1. I assume this is under Linux. What distro and version? 2. Have you tried running ldconfig as root recently? That may be required to have a new LD_LIBRARY_PATH be recognized 3. In irb, try: require 'wxruby2' That error sounds like the wxruby2 .so file is being loaded, but for some reason it is not defining the Wxruby2 module. Note that the error in wx.rb is not happening on the require 'wxruby2' line. That is apparently working. It's happening when we actually try to refer to the Wxruby2 module. Very strange, and I don't recall seeing that before. I should have added one more diagnostic step: Locate ALL wxruby2.so files on your system. If there are any outside the gem directory, they could be causing confusion and problems. I am trying to build a 0.0.36 Linux gem now, so maybe that will reveal some new information. Kevin From wxruby at qualitycode.com Sat Oct 7 12:16:20 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Sat, 07 Oct 2006 12:16:20 -0400 Subject: [Wxruby-users] 0.0.36 tagged and released In-Reply-To: <452176FF.2010001@pressure.to> References: <452176FF.2010001@pressure.to> Message-ID: <4527D2D4.5020305@qualitycode.com> Alex Fenton wrote: > From my reading of SVN docs it's probably wise for developers to > checkout anonymously as a bit of protection against accidentally > committing on a tag. Forgive my svn ignorance, but did the commands you sent do it anonymously? Or is there another step necessary? > Thanks very much to all (esp Roy) for patches contributed to this release. YES!!! Roy has definitely been the hero recently. I also want to commend Alex again for his work, without which Roy's efforts might have fallen on the floor, unused. I just uploaded a Linux binary gem. Actually, I uploaded it twice, so my fingers are crossed that my deletion of the first one actually worked. The only difference between the two is that the first one was unstripped, and therefore was huge, and the second was stripped, and therefore was merely large (3 megs). If you have access to a Linux machine, PLEASE try installing this gem, and report whether it works or not. I am about to try it on my other computer, but really need confirmation from other folks since my two computers are configured very similarly. Thanks, Kevin From roys at mindspring.com Sat Oct 7 13:10:32 2006 From: roys at mindspring.com (Roy Sutton) Date: Sat, 07 Oct 2006 13:10:32 -0400 Subject: [Wxruby-users] 0.36 problem? In-Reply-To: <452730F4.7090207@qualitycode.com> References: <20061006034112.66093.qmail@web27715.mail.ukl.yahoo.com> <45262674.7030608@pressure.to> <452730F4.7090207@qualitycode.com> Message-ID: <4527DF88.9090206@mindspring.com> Kevin Smith wrote: > As a process point, we really should not upload identically-versioned > gems that are different. That's just asking for trouble. > > If we goof in the future, let's bump the version number. Clean and safe. > > Too true. I was hoping since we didn't announce it that no one would have downloaded it yet. Now that I know how the mirrors (don't) work I will definitely not let that happen again. Roy [Also, can someone tell how long this message was in lag before it was delivered. I think that we're still seeing lag, just not quite as much] From roys at mindspring.com Sat Oct 7 19:54:36 2006 From: roys at mindspring.com (Roy Sutton) Date: Sat, 07 Oct 2006 19:54:36 -0400 Subject: [Wxruby-users] NameError: uninitialized constant Wxruby2 In-Reply-To: <4527C963.8000707@qualitycode.com> References: <452176FF.2010001@pressure.to> <4524AA60.1000805@mindspring.com> <4524D68C.4040105@pressure.to> <4527C963.8000707@qualitycode.com> Message-ID: <45283E3C.1050404@mindspring.com> First note: I did finally build a gem that worked. My issue was I was trying to build a debug version on Linux so that I could, well, debug problems there. When I recompiled wx and wxRuby with debug off it worked fine. I don't understand -why- it failed, especially with no error message whatsoever. In the final build I built with the exact options you specified (minus the enable-debug) and commented out the shared libs line in rakelinux. Oddly, the scrolledwindow example were pretty much perfectly on Linux whereas it has some pretty horrible side effects on Windows, which could be the result of garbage collection. I kinda expected the SWIG 1.3.30 build to work better than 1.3.29. I will answer your questions below for the record. Kevin Smith wrote: > A few questions/suggestions: > 1. I assume this is under Linux. What distro and version? > Ubuntu 6.06 aka Dapper Drake (and what's with this inconsistent naming on Ubuntu? Some things only refer to 6.06, other only to Dapper Drake. If you installed it as Dapper Drake, you have -no clue- what the version number is!) > 2. Have you tried running ldconfig as root recently? That may > be required to have a new LD_LIBRARY_PATH be recognized > Yes. > 3. In irb, try: require 'wxruby2' > That error sounds like the wxruby2 .so file is being loaded, > but for some reason it is not defining the Wxruby2 module. > wxruby2 seemed to load just fine. > > Note that the error in wx.rb is not happening on the require 'wxruby2' > line. That is apparently working. It's happening when we actually try to > refer to the Wxruby2 module. Very strange, and I don't recall seeing > that before. > > I should have added one more diagnostic step: Locate ALL wxruby2.so > files on your system. If there are any outside the gem directory, they > could be causing confusion and problems. > No other ones installed. > I am trying to build a 0.0.36 Linux gem now, so maybe that will reveal > some new information. > > Kevin > > From wxruby at qualitycode.com Sat Oct 7 23:36:27 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Sat, 07 Oct 2006 23:36:27 -0400 Subject: [Wxruby-users] NameError: uninitialized constant Wxruby2 In-Reply-To: <45283E3C.1050404@mindspring.com> References: <452176FF.2010001@pressure.to> <4524AA60.1000805@mindspring.com> <4524D68C.4040105@pressure.to> <4527C963.8000707@qualitycode.com> <45283E3C.1050404@mindspring.com> Message-ID: <4528723B.9010302@qualitycode.com> Roy Sutton wrote: > First note: I did finally build a gem that worked. Cool. For completeness, here are the options I used to build the 0.0.36 Linux gem: ../configure --disable-shared --with-gtk --enable-monolithic --enable-unicode --disable-debug --enable-catch_segvs --with-libjpeg=builtin --with-libpng=builtin --with-libtiff=builtin --with-zlib=builtin --enable-gui --enable-xrc --enable-mdi --enable-gif --enable-pcx --enable-iff --enable-pnm --enable-xpm --disable-expat Hopefully those are better than what I was using before. I'm still awaiting reports of success or failure using the 0.0.36 gem. It worked fine on my other machine, but since it's also Ubuntu 6.06, I would love to hear from folks on other distros. > My issue was I was > trying to build a debug version on Linux so that I could, well, debug > problems there. When I recompiled wx and wxRuby with debug off it > worked fine. I don't understand -why- it failed, especially with no > error message whatsoever. Yes, very strange. I have build with debug in the past, although perhaps not after switching to using gems instead of rake install. >> 1. I assume this is under Linux. What distro and version? >> > Ubuntu 6.06 aka Dapper Drake (and what's with this inconsistent naming > on Ubuntu? Some things only refer to 6.06, other only to Dapper Drake. > If you installed it as Dapper Drake, you have -no clue- what the version > number is!) I'm also using 6.06 aka Dapper Drake AKA LTS (Long-term Support). Yes, it is confusing. The upcoming "Edgy Eft" which will probably be 6.10 will be extra confusing because it will be current at the same time as Debian's Etch. Too many e's!!! Kevin From camboris at gmail.com Mon Oct 9 06:46:24 2006 From: camboris at gmail.com (Boris) Date: Mon, 9 Oct 2006 07:46:24 -0300 Subject: [Wxruby-users] 0.0.36 tagged and released In-Reply-To: <4527D2D4.5020305@qualitycode.com> References: <452176FF.2010001@pressure.to> <4527D2D4.5020305@qualitycode.com> Message-ID: Hi Kevin, I'm on Ubuntu 6.06. I did sudo gem install wxruby2-preview it gave a list of options, choose linux one and installed successfully. I went to samples directory and tried running any sample and this is the error I got. bigdemo/bigdemo.rb:14:in `require': no such file to load -- wx (LoadError) from bigdemo/bigdemo.rb:14 Maybe I have something misconfigured, can you point me to some install guido oro something? Thanks Mario On 10/7/06, Kevin Smith wrote: > > Alex Fenton wrote: > > From my reading of SVN docs it's probably wise for developers to > > checkout anonymously as a bit of protection against accidentally > > committing on a tag. > > Forgive my svn ignorance, but did the commands you sent do it > anonymously? Or is there another step necessary? > > > Thanks very much to all (esp Roy) for patches contributed to this > release. > > YES!!! Roy has definitely been the hero recently. I also want to commend > Alex again for his work, without which Roy's efforts might have fallen > on the floor, unused. > > > > I just uploaded a Linux binary gem. Actually, I uploaded it twice, so my > fingers are crossed that my deletion of the first one actually worked. > The only difference between the two is that the first one was > unstripped, and therefore was huge, and the second was stripped, and > therefore was merely large (3 megs). > > If you have access to a Linux machine, PLEASE try installing this gem, > and report whether it works or not. I am about to try it on my other > computer, but really need confirmation from other folks since my two > computers are configured very similarly. > > Thanks, > > Kevin > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20061009/cfc28573/attachment.html From alex at pressure.to Mon Oct 9 09:45:16 2006 From: alex at pressure.to (Alex Fenton) Date: Mon, 09 Oct 2006 14:45:16 +0100 Subject: [Wxruby-users] gem problem on Linux In-Reply-To: References: <452176FF.2010001@pressure.to> <4527D2D4.5020305@qualitycode.com> Message-ID: <452A526C.207@pressure.to> Hi Boris Did you try ruby -rubygems samples/bigdemo/bigdemo.rb Note the 'rubygems' argument is required to load libraries via gems. alex Boris wrote: > Hi Kevin, > > I'm on Ubuntu 6.06. I did > sudo gem install wxruby2-preview > it gave a list of options, choose linux one and installed successfully. > I went to samples directory and tried running any sample and this is > the error I got. > > bigdemo/bigdemo.rb:14:in `require': no such file to load -- wx (LoadError) > from bigdemo/bigdemo.rb:14 > > Maybe I have something misconfigured, can you point me to some install > guido oro something? > > Thanks > > Mario > > On 10/7/06, *Kevin Smith* > wrote: > > Alex Fenton wrote: > > From my reading of SVN docs it's probably wise for developers to > > checkout anonymously as a bit of protection against accidentally > > committing on a tag. > > Forgive my svn ignorance, but did the commands you sent do it > anonymously? Or is there another step necessary? > > > Thanks very much to all (esp Roy) for patches contributed to > this release. > > YES!!! Roy has definitely been the hero recently. I also want to > commend > Alex again for his work, without which Roy's efforts might have fallen > on the floor, unused. > > > > I just uploaded a Linux binary gem. Actually, I uploaded it twice, > so my > fingers are crossed that my deletion of the first one actually > worked. > The only difference between the two is that the first one was > unstripped, and therefore was huge, and the second was stripped, and > therefore was merely large (3 megs). > > If you have access to a Linux machine, PLEASE try installing this > gem, > and report whether it works or not. I am about to try it on my other > computer, but really need confirmation from other folks since my two > computers are configured very similarly. > > Thanks, > > Kevin > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > ------------------------------------------------------------------------ > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users From roys at mindspring.com Mon Oct 9 11:18:23 2006 From: roys at mindspring.com (Roy Sutton) Date: Mon, 09 Oct 2006 11:18:23 -0400 Subject: [Wxruby-users] 0.0.36 tagged and released In-Reply-To: References: <452176FF.2010001@pressure.to> <4527D2D4.5020305@qualitycode.com> Message-ID: <452A683F.2000605@mindspring.com> Boris wrote: > I'm on Ubuntu 6.06. I did > sudo gem install wxruby2-preview > it gave a list of options, choose linux one and installed successfully. > I went to samples directory and tried running any sample and this is > the error I got. > > bigdemo/bigdemo.rb:14:in `require': no such file to load -- wx (LoadError) > from bigdemo/bigdemo.rb:14 > Boris, Simple fix. Do: ruby -rubygems bigdemo.rb Roy From camboris at gmail.com Mon Oct 9 15:02:53 2006 From: camboris at gmail.com (Boris) Date: Mon, 9 Oct 2006 16:02:53 -0300 Subject: [Wxruby-users] gem problem on Linux In-Reply-To: <452A526C.207@pressure.to> References: <452176FF.2010001@pressure.to> <4527D2D4.5020305@qualitycode.com> <452A526C.207@pressure.to> Message-ID: Alex , and Roy in other response, Yes , that worked ok, Thank you very much. Mario On 10/9/06, Alex Fenton wrote: > > Hi Boris > > Did you try > > ruby -rubygems samples/bigdemo/bigdemo.rb > > Note the 'rubygems' argument is required to load libraries via gems. > > alex > > Boris wrote: > > Hi Kevin, > > > > I'm on Ubuntu 6.06. I did > > sudo gem install wxruby2-preview > > it gave a list of options, choose linux one and installed successfully. > > I went to samples directory and tried running any sample and this is > > the error I got. > > > > bigdemo/bigdemo.rb:14:in `require': no such file to load -- wx > (LoadError) > > from bigdemo/bigdemo.rb:14 > > > > Maybe I have something misconfigured, can you point me to some install > > guido oro something? > > > > Thanks > > > > Mario > > > > On 10/7/06, *Kevin Smith* > > wrote: > > > > Alex Fenton wrote: > > > From my reading of SVN docs it's probably wise for developers to > > > checkout anonymously as a bit of protection against accidentally > > > committing on a tag. > > > > Forgive my svn ignorance, but did the commands you sent do it > > anonymously? Or is there another step necessary? > > > > > Thanks very much to all (esp Roy) for patches contributed to > > this release. > > > > YES!!! Roy has definitely been the hero recently. I also want to > > commend > > Alex again for his work, without which Roy's efforts might have > fallen > > on the floor, unused. > > > > > > > > I just uploaded a Linux binary gem. Actually, I uploaded it twice, > > so my > > fingers are crossed that my deletion of the first one actually > > worked. > > The only difference between the two is that the first one was > > unstripped, and therefore was huge, and the second was stripped, and > > therefore was merely large (3 megs). > > > > If you have access to a Linux machine, PLEASE try installing this > > gem, > > and report whether it works or not. I am about to try it on my other > > computer, but really need confirmation from other folks since my two > > computers are configured very similarly. > > > > Thanks, > > > > Kevin > > > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20061009/6afd0e00/attachment.html From wxruby at qualitycode.com Mon Oct 9 20:57:13 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Mon, 09 Oct 2006 20:57:13 -0400 Subject: [Wxruby-users] gem problem on Linux In-Reply-To: References: <452176FF.2010001@pressure.to> <4527D2D4.5020305@qualitycode.com> <452A526C.207@pressure.to> Message-ID: <452AEFE9.2000803@qualitycode.com> Boris wrote: > Alex , and Roy in other response, > > Yes , that worked ok, > Thank you very much. Great. Thanks for the report. I added this line to my ~/.bashrc file, to avoid needing to specify -rubygems every time I run a command: export RUBYOPT=rubygems Cheers, Kevin From wxruby at qualitycode.com Mon Oct 9 20:58:46 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Mon, 09 Oct 2006 20:58:46 -0400 Subject: [Wxruby-users] List Lag In-Reply-To: <4527DF88.9090206@mindspring.com> References: <20061006034112.66093.qmail@web27715.mail.ukl.yahoo.com> <45262674.7030608@pressure.to> <452730F4.7090207@qualitycode.com> <4527DF88.9090206@mindspring.com> Message-ID: <452AF046.6090404@qualitycode.com> Roy Sutton wrote: > [Also, can someone tell how long this message was in lag before it was > delivered. I think that we're still seeing lag, just not quite as much] I was seeing a few hours of lag over the weekend. I don't know if it is better now or not. Kevin From roys at mindspring.com Tue Oct 10 00:00:15 2006 From: roys at mindspring.com (Roy Sutton) Date: Tue, 10 Oct 2006 00:00:15 -0400 Subject: [Wxruby-users] samples In-Reply-To: <4527C285.8030601@qualitycode.com> References: <45254898.7000406@mindspring.com> <4527C285.8030601@qualitycode.com> Message-ID: <452B1ACF.8010209@mindspring.com> I think I brought this up before. I think it's time to revisit this idea in the samples: begin require 'wx' rescue LoadError require 'rubygems' require 'wx' end Or even skip the first step and change all samples to: require 'rubygems' require 'wx' Since we're distributing as a binary gem now, it seems that's a reasonable way to go. Roy Kevin Smith wrote: > Sean Long wrote: > >> On 10/5/06, Roy Sutton wrote: >> >>> What do you think about adding a shebang line to the samples so they can >>> be launched on linux/mac like you can on windows? >>> > > >> I usually add >> #!/usr/bin/env ruby >> >> to my own programs. >> > > +1 from me, using the shebang line above. > > >> Should we start moving discussions like this to the new wxruby-development list? >> > > Yes, since it now appears that all the core developers are subscribed. > Except that I haven't yet received a message I posted to it several > minutes ago :-( > > Kevin > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > From wxruby at qualitycode.com Tue Oct 10 09:16:57 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Tue, 10 Oct 2006 09:16:57 -0400 Subject: [Wxruby-users] samples In-Reply-To: <452B1ACF.8010209@mindspring.com> References: <45254898.7000406@mindspring.com> <4527C285.8030601@qualitycode.com> <452B1ACF.8010209@mindspring.com> Message-ID: <452B9D49.6040508@qualitycode.com> Roy Sutton wrote: > I think I brought this up before. I think it's time to revisit this > idea in the samples: > > begin > require 'wx' > rescue LoadError > require 'rubygems' > require 'wx' > end I forget how I felt about it before, but I think I agree now. Until rubygems are part of standard Ruby, if we don't do this we will get a lot of questions, and have a lot of frustrated first-time users. Including some who won't even bother asking. > Or even skip the first step and change all samples to: > > require 'rubygems' > require 'wx' > > Since we're distributing as a binary gem now, it seems that's a > reasonable way to go. That was my proposal earlier, but someone felt it was unreasonable to require a gem, since we do also distribute source. So I vote for your first proposal. Kevin From alex at pressure.to Tue Oct 10 12:48:45 2006 From: alex at pressure.to (Alex Fenton) Date: Tue, 10 Oct 2006 17:48:45 +0100 Subject: [Wxruby-users] samples In-Reply-To: <452B9D49.6040508@qualitycode.com> References: <45254898.7000406@mindspring.com> <4527C285.8030601@qualitycode.com> <452B1ACF.8010209@mindspring.com> <452B9D49.6040508@qualitycode.com> Message-ID: <452BCEED.9030204@pressure.to> Kevin Smith wrote: > Roy Sutton wrote: > >> I think I brought this up before. I think it's time to revisit this >> idea in the samples: >> >> begin >> require 'wx' >> rescue LoadError >> require 'rubygems' >> require 'wx' >> end >> Overall I'm '0' on this - my developer head says 'people ought to sort out their own installations, and rubygems ought to work better'; my public relations head says 'just make it work'. Think we should probably go with the latter. But strongly prefer the first style (don't require rubygems), and would suggest tweaking your code so the right error is raised if neither lib nor gem is found: begin require 'wx' rescue LoadError => no_wx_err begin require 'rubygems' and retry rescue LoadError raise no_wx_err end end thanks alex PS - would be very grateful if someone could try out my patches from last week and apply if appropriate. From sean.m.long at gmail.com Tue Oct 10 12:54:36 2006 From: sean.m.long at gmail.com (Sean Long) Date: Tue, 10 Oct 2006 09:54:36 -0700 Subject: [Wxruby-users] samples In-Reply-To: <452B9D49.6040508@qualitycode.com> References: <45254898.7000406@mindspring.com> <4527C285.8030601@qualitycode.com> <452B1ACF.8010209@mindspring.com> <452B9D49.6040508@qualitycode.com> Message-ID: +1 for begin require 'wx' rescue LoadError require 'rubygems' require 'wx' end Sean On 10/10/06, Kevin Smith wrote: > Roy Sutton wrote: > > I think I brought this up before. I think it's time to revisit this > > idea in the samples: > > > > begin > > require 'wx' > > rescue LoadError > > require 'rubygems' > > require 'wx' > > end > > I forget how I felt about it before, but I think I agree now. Until > rubygems are part of standard Ruby, if we don't do this we will get a > lot of questions, and have a lot of frustrated first-time users. > Including some who won't even bother asking. > > > Or even skip the first step and change all samples to: > > > > require 'rubygems' > > require 'wx' > > > > Since we're distributing as a binary gem now, it seems that's a > > reasonable way to go. > > That was my proposal earlier, but someone felt it was unreasonable to > require a gem, since we do also distribute source. > > So I vote for your first proposal. > > Kevin > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From roys at mindspring.com Tue Oct 10 22:45:19 2006 From: roys at mindspring.com (Roy Sutton) Date: Tue, 10 Oct 2006 22:45:19 -0400 Subject: [Wxruby-users] samples In-Reply-To: <452BCEED.9030204@pressure.to> References: <45254898.7000406@mindspring.com> <4527C285.8030601@qualitycode.com> <452B1ACF.8010209@mindspring.com> <452B9D49.6040508@qualitycode.com> <452BCEED.9030204@pressure.to> Message-ID: <452C5ABE.3050800@mindspring.com> Alex Fenton wrote: > begin > require 'wx' > rescue LoadError => no_wx_err > begin > require 'rubygems' and retry > rescue LoadError > raise no_wx_err > end > end > Hmm, I'll have to try that. > PS - would be very grateful if someone could try out my patches from > last week and apply if appropriate. Sorry, Alex. I've been so busy I have barely had time to respond to e-mail lately. I'll get to those this week some time if no one else gets them. On the face of them they /looked/ fine but I haven't tried compiling them. Roy From wxruby at qualitycode.com Wed Oct 11 09:36:27 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Wed, 11 Oct 2006 09:36:27 -0400 Subject: [Wxruby-users] Patch backlog (was: samples) In-Reply-To: <452BCEED.9030204@pressure.to> References: <45254898.7000406@mindspring.com> <4527C285.8030601@qualitycode.com> <452B1ACF.8010209@mindspring.com> <452B9D49.6040508@qualitycode.com> <452BCEED.9030204@pressure.to> Message-ID: <452CF35B.2070102@qualitycode.com> Alex Fenton wrote: > PS - would be very grateful if someone could try out my patches from > last week and apply if appropriate. Like Roy, I have been completely swamped recently. I'll try to squeeze some time in this week for wxruby, but realistically the earliest I will be able to look at those patches is probably Saturday. Kevin From alex at pressure.to Sat Oct 14 12:32:08 2006 From: alex at pressure.to (Alex Fenton) Date: Sat, 14 Oct 2006 17:32:08 +0100 Subject: [Wxruby-users] 0.0.36 tagged and released In-Reply-To: <4527D2D4.5020305@qualitycode.com> References: <452176FF.2010001@pressure.to> <4527D2D4.5020305@qualitycode.com> Message-ID: <45311108.90004@pressure.to> Kevin Smith wrote: > Alex Fenton wrote: > >> From my reading of SVN docs it's probably wise for developers to >> checkout anonymously as a bit of protection against accidentally >> committing on a tag. >> > > Forgive my svn ignorance, but did the commands you sent do it > anonymously? Or is there another step necessary? > Sorry for the delay in replying. yep, this command: svn co svn://rubyforge.org/var/svn/wxruby/tags/wxruby2/0.0.36 does an anonymous checkout - similar to CVS except you don't have to explicitly state 'anonymous@' in the SVN URL a From amajorov at sbcglobal.net Thu Oct 19 19:58:48 2006 From: amajorov at sbcglobal.net (Allen) Date: Thu, 19 Oct 2006 19:58:48 -0400 Subject: [Wxruby-users] install problem Message-ID: <45381138.4080608@sbcglobal.net> I'm having a problem getting wxruby2-preview working on my Linux system. I loaded wxruby via a gem install and that seemed to go OK. Added RUBYOPT=-rubygems to /etc/environment file and set it at the command prompt and still I get the following when I try to run minimal.rb: [root at www minimal]# ruby -rubygems minimal.rb Unable to load wxruby. Searched: /usr/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i486-linux/bin /usr/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i486-linux/lib /usr/lib/ruby/site_ruby/1.8 /usr/lib/ruby/site_ruby/1.8/i586-linux-gnu /usr/lib/ruby/site_ruby /usr/lib/ruby/1.8 /usr/lib/ruby/1.8/i586-linux-gnu There is no /bin directory but there is a /lib directory. The /lib directory has wx.rb and wxruby2.so and a sub-directory, /wx. All the /wx directory has in it is version.rb. I unistalled and reinstalled but it's consistent and I don't know how to move past this problem. Thanks Allen From wxruby at qualitycode.com Thu Oct 19 21:47:19 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Thu, 19 Oct 2006 21:47:19 -0400 Subject: [Wxruby-users] install problem (linux, gem) In-Reply-To: <45381138.4080608@sbcglobal.net> References: <45381138.4080608@sbcglobal.net> Message-ID: <45382AA7.1020202@qualitycode.com> Allen wrote: > I'm having a problem getting wxruby2-preview working on my Linux system. Thanks for the problem report. Hopefully we can solve it. > I loaded wxruby via a gem install and that seemed to go OK. Added > RUBYOPT=-rubygems to /etc/environment file and set it at the command > prompt and still I get the following when I try to run minimal.rb: > > [root at www minimal]# ruby -rubygems minimal.rb For a simpler test, try running irb and directly requiring wxruby: kevins at aria:~$ irb irb(main):001:0> require 'wx' => true irb(main):002:0> Or, as a variation, try requiring the .so file more directly (don't do this in an app--it's just for diagnostics): irb(main):001:0> require 'wxruby2' => true irb(main):002:0> exit > > Unable to load wxruby. Searched: (snip) > /usr/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i486-linux/lib (snip) > > > There is no /bin directory but there is a /lib directory. The /lib > directory has wx.rb and wxruby2.so That all seems correct. My Ubuntu system looks the same. Have you ever had a different version of wxruby installed on this system? Have you tried any other gems? Kevin From wxruby at qualitycode.com Thu Oct 19 22:09:26 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Thu, 19 Oct 2006 22:09:26 -0400 Subject: [Wxruby-users] Should we have a rubyforge forum? In-Reply-To: <4531DD28.7@mindspring.com> References: <45313D28.9010004@mindspring.com> <45315D8A.6040503@qualitycode.com> <4531DD28.7@mindspring.com> Message-ID: <45382FD6.2010904@qualitycode.com> Roy Sutton wrote: > Also note we don't have a forum. Discussion lists don't count so my > guess is that some projects get a boost by having a forum. [The "boost" Roy refers to is in the rubyforge "activity" statistics] Interesting. Personally I dislike forums because the UI tends to be pretty crappy. But as long as we can get emails when someone posts, I would be ok with having one for wxruby. Forums are nice if they allow users to post questions who don't want to subscribe to a mailing list for some reason. Thoughts? Kevin From sean.m.long at gmail.com Fri Oct 20 00:09:01 2006 From: sean.m.long at gmail.com (Sean Long) Date: Thu, 19 Oct 2006 21:09:01 -0700 Subject: [Wxruby-users] Should we have a rubyforge forum? In-Reply-To: <45382FD6.2010904@qualitycode.com> References: <45313D28.9010004@mindspring.com> <45315D8A.6040503@qualitycode.com> <4531DD28.7@mindspring.com> <45382FD6.2010904@qualitycode.com> Message-ID: > Forums are nice if they allow > users to post questions who don't want to subscribe to a mailing list > for some reason. The forum is more convenient for casual users, content that they do not want is not forced upon them, well not as much. I also think that an email notification would be nice. I do not plan on hanging around the forum waiting for questions. Sean From amajorov at sbcglobal.net Fri Oct 20 14:27:54 2006 From: amajorov at sbcglobal.net (Allen) Date: Fri, 20 Oct 2006 14:27:54 -0400 Subject: [Wxruby-users] install problem (linux, gem) Message-ID: <4539152A.8030205@sbcglobal.net> Thanks for responding Kevin. Here's the results: irb(main):001:0> require 'wx' LoadError: no such file to load -- wx from (irb):1:in `require' from (irb):1 irb(main):003:0> require 'wxruby2' LoadError: no such file to load -- wxruby2 from (irb):3:in `require' from (irb):3 from :0 I've uninstalled .36 and installed .35 it blew up the same way as .36 so I reinstalled .36. I had a bunch of gems installed so I uninstalled them along with .36 and reinstalled .36. No change. Finally, I didn't receive your response as e-mail. I had to go to the archives and lo! there it was. Is something wrong with the listserve? Allen From roys at mindspring.com Fri Oct 20 16:01:53 2006 From: roys at mindspring.com (Roy Sutton) Date: Fri, 20 Oct 2006 16:01:53 -0400 Subject: [Wxruby-users] Should we have a rubyforge forum? In-Reply-To: <45382FD6.2010904@qualitycode.com> References: <45313D28.9010004@mindspring.com> <45315D8A.6040503@qualitycode.com> <4531DD28.7@mindspring.com> <45382FD6.2010904@qualitycode.com> Message-ID: <45392B31.1090707@mindspring.com> Kevin Smith wrote: > Roy Sutton wrote: > >> Also note we don't have a forum. Discussion lists don't count so my >> guess is that some projects get a boost by having a forum. >> > > [The "boost" Roy refers to is in the rubyforge "activity" statistics] > > Interesting. Personally I dislike forums because the UI tends to be > pretty crappy. But as long as we can get emails when someone posts, I > would be ok with having one for wxruby. Forums are nice if they allow > users to post questions who don't want to subscribe to a mailing list > for some reason. I'm indifferent. Forums do allow for casual visitors to post problem reports. If no one uses it (or checks it) it may be worse than useless. Roy From alex at pressure.to Fri Oct 20 16:50:50 2006 From: alex at pressure.to (Alex Fenton) Date: Fri, 20 Oct 2006 21:50:50 +0100 Subject: [Wxruby-users] Should we have a rubyforge forum? In-Reply-To: <45392B31.1090707@mindspring.com> References: <45313D28.9010004@mindspring.com> <45315D8A.6040503@qualitycode.com> <4531DD28.7@mindspring.com> <45382FD6.2010904@qualitycode.com> <45392B31.1090707@mindspring.com> Message-ID: <453936AA.8050208@pressure.to> > I'm indifferent. Forums do allow for casual visitors to post problem > reports. If no one uses it (or checks it) it may be worse than useless. > I'm with Roy on this one. I wouldn't be interested in using a forum. wxruby-users is pretty low traffic, and people can post support requests and trackers already without subscribing if they want. Rubyforum is mirrored to c.l.r., which I usually follow casually and pick up any wxruby questions. So I'm -0 alex From wxruby at qualitycode.com Fri Oct 20 17:43:46 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Fri, 20 Oct 2006 17:43:46 -0400 Subject: [Wxruby-users] install problem (linux, gem) In-Reply-To: <4539152A.8030205@sbcglobal.net> References: <4539152A.8030205@sbcglobal.net> Message-ID: <45394312.8070704@qualitycode.com> Allen wrote: > Thanks for responding Kevin. Here's the results: > > irb(main):001:0> require 'wx' > LoadError: no such file to load -- wx > from (irb):1:in `require' > from (irb):1 > irb(main):003:0> require 'wxruby2' > LoadError: no such file to load -- wxruby2 > from (irb):3:in `require' > from (irb):3 > from :0 It definitely seems to be a problem with how gem is working on your system. But you are saying that other gems have been working fine? I am completely baffled. It's probably something small and easy that I'm just not thinking of. Oh, I did just think of one other thing. One of my systems ended up in a confused state because it had 2 different gem installations. You could try uninstalling rubygems, looking around to make sure there isn't another partial copy left over (and deleting it if there is), then reinstalling rubygems. > Finally, I didn't receive your response as e-mail. I had to go to the > archives and lo! there it was. Is something wrong with the listserve? Not that I have seen or heard of. Hopefully it was just a transient problem and you will get this one. Kevin From jay at nominet.org.uk Sat Oct 21 17:19:53 2006 From: jay at nominet.org.uk (Jay Daley) Date: Sat, 21 Oct 2006 22:19:53 +0100 Subject: [Wxruby-users] wxsugar question Message-ID: I've only had the briefest play with wxSugar and already I like it a lot. One small question - have you considered some more 'convention over configuration' like they do in rails, in particular for event connectors? So instead of listen(:button, my_button, my_button_pressed) you can leave it out entirely and rely on the convention that a button has a _pressed event (if it exists). Jay Daley From alex at pressure.to Sun Oct 22 09:07:13 2006 From: alex at pressure.to (Alex Fenton) Date: Sun, 22 Oct 2006 14:07:13 +0100 Subject: [Wxruby-users] wxsugar question In-Reply-To: References: Message-ID: <453B6D01.2050802@pressure.to> Jay Daley wrote: > I've only had the briefest play with wxSugar and already I like it a lot. > Thanks. > One small question - have you considered some more 'convention over > configuration' like they do in rails, in particular for event connectors? > So instead of > > listen(:button, my_button, my_button_pressed) > Nice suggestion. I've been looking at doing something like this with event_connector.rb, inspired in part by flicking through the docs for Dabo[1]. Perhaps declaring a method 'on_button' should automatically listen for evt_button, and so on. The implementation of this is a little tricky, though. It's easy to watch out for the methods being added to a class, but harder to intervene cleanly in the instantiation of a widget to actually hook up the event handlers. Also, would need some decisions about which widget's events to listen for: just self? any child widget? I haven't used rails much, but I like some of the style, and it's probably influenced wxSugar. I find some of the rails implementation messy though, and annoying when you try to work with it in not quite the way the authors intended, or not as a suite. With wxSugar I'd like to keep the various behaviours separate, so people can pick and choose, rather than making a big commitment to one WxSugar style. So I'm a bit cautious about intervening initialisers. But it's partly just a question of a good implementation - eg I rewrote a simple 'ActiveRecord' that uses mix-ins and define_method rather than inheritance and method_missing - so I'd welcome seeing one for auto-event-connector if anyone fancies having a go. cheers alex [1] http://dabodev.com/ From roys at mindspring.com Sun Oct 22 23:44:49 2006 From: roys at mindspring.com (Roy Sutton) Date: Sun, 22 Oct 2006 23:44:49 -0400 Subject: [Wxruby-users] SWIGging clipboard In-Reply-To: <44B55A11.9000300@pressure.to> References: <44B55A11.9000300@pressure.to> Message-ID: <453C3AB1.7000105@mindspring.com> Alex Fenton wrote (long ago): > Hi all > > I'm having a go at porting the Clipboard and DnD classes, going OK, but > have hit a snag where I could use your help. > > I've added several relevant classes, but now I have on OS X missing symbols: > wxDataObjectBase::GetDataHere(wxDataFormat const&, void*) const > wxDataObjectBase::GetDataSize(wxDataFormat const&) const This is the same behavior I'm getting on Windows, too. I don't know my C++ well enough to know why this happens. I think the best way to avoid it is to %ignore those functions at we won't override like that. I got sidetracked working on the clipboard because I decided to upgrade to head SWIG. Hopefully all this will mean a painless upgrade to 1.3.30 when it's finally released. Roy From jay at nominet.org.uk Mon Oct 23 04:45:53 2006 From: jay at nominet.org.uk (Jay Daley) Date: Mon, 23 Oct 2006 09:45:53 +0100 Subject: [Wxruby-users] wxsugar question In-Reply-To: <453B6D01.2050802@pressure.to> Message-ID: > Nice suggestion. I'm glad you liked it. > I've been looking at doing something like this with > event_connector.rb, inspired in part by flicking through the docs for > Dabo[1]. That's a very interesting project, thanks for the link. > Also, would need some decisions about which widget's > events to listen for: just self? any child widget? I will try and think about that and see if I can come up with any suggestions. > - so I'd welcome seeing one for auto-event-connector if > anyone fancies having a go. Well beyond me I'm afraid. thanks again for taking the suggestion seriously. Jay Daley From wxruby at qualitycode.com Mon Oct 23 09:18:14 2006 From: wxruby at qualitycode.com (Kevin Smith) Date: Mon, 23 Oct 2006 09:18:14 -0400 Subject: [Wxruby-users] wxsugar question In-Reply-To: <453B6D01.2050802@pressure.to> References: <453B6D01.2050802@pressure.to> Message-ID: <453CC116.9030305@qualitycode.com> Alex Fenton wrote: > Jay Daley wrote: >> I've only had the briefest play with wxSugar and already I like it a lot. >> > Thanks. >> One small question - have you considered some more 'convention over >> configuration' like they do in rails, in particular for event connectors? Like Alex, I have mixed feelings about that approach. It can be great, but can also be limiting. >> So instead of >> >> listen(:button, my_button, my_button_pressed) >> > Nice suggestion. I've been looking at doing something like this with > event_connector.rb, inspired in part by flicking through the docs for > Dabo[1]. Perhaps declaring a method 'on_button' should automatically > listen for evt_button, and so on. I would like to see you use FXRuby for inspiration whenever possible. FX is the dominant cross-platform GUI library for Ruby right now, so the easier it is for folks to migrate from FX to wx the more users we are likely to have. Perhaps at some point we could even has an FX compatibility layer over wx. Not necessarily 100% compatible, but reasonably close. I haven't even begun to research how feasible that would be. It's also possible that we could improve on what FX is doing, and they might copy us back, leading toward more compatibility. > With wxSugar I'd like to > keep the various behaviours separate, so people can pick and choose, > rather than making a big commitment to one WxSugar style. So I'm a bit > cautious about intervening initialisers. Sounds good. I need to take a good look at wxSugar sometime. Honestly, I haven't had a chance yet, which is frustrating. Kevin From roys at mindspring.com Tue Oct 24 22:39:31 2006 From: roys at mindspring.com (Roy Sutton) Date: Tue, 24 Oct 2006 22:39:31 -0400 Subject: [Wxruby-users] wxPrinterDC Part 2 Message-ID: <453ECE63.1070504@mindspring.com> Well, the docs do -indeed- say that wxPrinterDC is Windows only. Apparently it's also for Macs. The docs are always a little loose in this regard. From roys at mindspring.com Wed Oct 25 00:51:26 2006 From: roys at mindspring.com (Roy Sutton) Date: Wed, 25 Oct 2006 00:51:26 -0400 Subject: [Wxruby-users] App.i patch Message-ID: <453EED4E.2010605@mindspring.com> Returned the initialize function and just removed the debug code. Without the initialize anything serious crashes the build. Checked it in directly. Roy From roys at mindspring.com Wed Oct 25 01:21:15 2006 From: roys at mindspring.com (Roy Sutton) Date: Wed, 25 Oct 2006 01:21:15 -0400 Subject: [Wxruby-users] App.i patch In-Reply-To: <453EED4E.2010605@mindspring.com> References: <453EED4E.2010605@mindspring.com> Message-ID: <453EF44B.5050107@mindspring.com> Roy Sutton wrote: > Returned the initialize function and just removed the debug code. > Without the initialize anything serious crashes the build. > > Checked it in directly. > > Roy > > Well, that wasn't it at all, I guess. I had reset my RUBYLIB environment and I was checking the wrong build. The problem is the gem. If I point RUBYLIB at my lib directory the samples run fine. If I use rubygems it crashes. I'm a little stumped right now. I'll keep poking into it. Roy From roys at mindspring.com Wed Oct 25 01:29:36 2006 From: roys at mindspring.com (Roy Sutton) Date: Wed, 25 Oct 2006 01:29:36 -0400 Subject: [Wxruby-users] App.i patch In-Reply-To: <453EED4E.2010605@mindspring.com> References: <453EED4E.2010605@mindspring.com> Message-ID: <453EF640.7010308@mindspring.com> Roy Sutton wrote: > Returned the initialize function and just removed the debug code. > Without the initialize anything serious crashes the build. Turns out the problem is garbage collection. With rubygems we're apparently allocating just enough stuff to get the garbage collector ready to roll on Windows. Without the gems it works fine. I'll see if I can track the source of this one and maybe fix it. Roy From alex at pressure.to Wed Oct 25 04:39:47 2006 From: alex at pressure.to (Alex Fenton) Date: Wed, 25 Oct 2006 09:39:47 +0100 Subject: [Wxruby-users] wxPrinterDC Part 2 In-Reply-To: <453ECE63.1070504@mindspring.com> References: <453ECE63.1070504@mindspring.com> Message-ID: <453F22D3.8090405@pressure.to> Roy Sutton wrote: > Well, the docs do -indeed- say that wxPrinterDC is Windows only. > Apparently it's also for Macs. The docs are always a little loose in > this regard. They sure are, esp re Mac. I would certainly not disable methods or classes on Mac on the basis of the docs saying 'Windows only'. alex From alex at pressure.to Mon Oct 30 18:04:59 2006 From: alex at pressure.to (Alex Fenton) Date: Mon, 30 Oct 2006 23:04:59 +0000 Subject: [Wxruby-users] progress update, 0.0.37 Message-ID: <4546851B.4090006@pressure.to> Hi all A brief update on wxruby progress from the development list... The good news is - we tagged version 0.0.37. This includes some important new features, including: - Complete support for the printing framework (thanks to Sean Long) - Support for WxScintilla on OS X - DragImage and StdDialogButtonSizer classes added - various bugfixes and support for additional methods The bad news is - it doesn't work perfectly on all platforms, so we're not making a more public announcement - but we'd like to keep the users on this list in the loop. * Users on OS X should be fine - binary gems are available (though only powerpc includes Scintilla, for now). * The WINDOWS port seems to be running into some garbage collection crasher problems when running alongside rubygems. So there is no binary gem available, but if you have the compile chain set up you might want to try 'rake' and 'rake install'. * LINUX/BSD etc GTK users should also be able to compile from source, but you may need to apply the following patch first: http://rubyforge.org/pipermail/wxruby-development/attachments/20061030/27f1625a/attachment.pl We're working hard to iron out the memory bugs, and as usual your support through bug reports of crashes or weird behaviour is very welcome. cheers alex