From eloisant at gmail.com Tue Nov 2 08:49:17 2004 From: eloisant at gmail.com (Erwan Loisant) Date: Tue Nov 2 08:49:48 2004 Subject: [fxruby-users] Execution problem. Message-ID: <93e96c8604110205497f81352b@mail.gmail.com> Hello. I have a problem with fxruby; note that plain C++ Fox works. I took a simple example from the tutorial and here is the result: erwan@bourricot temp $ ruby test.rb /usr/lib/ruby/site_ruby/1.8/i686-linux/fox.so: /usr/lib/ruby/site_ruby/1.8/i686-linux/fox.so: undefined symbol: _ZN2FX8FXStringC1EPKc - /usr/lib/ruby/site_ruby/1.8/i686-linux/fox.so (LoadError) from test.rb:1 I read on the archives a similar problem, so I tried the following command to check if the bindings lib fox.so is linked to fox itself: erwan@bourricot temp $ ldd /usr/lib/ruby/site_ruby/1.8/i686-linux/fox.so linux-gate.so.1 => (0xffffe000) libruby18.so.1.8 => /usr/lib/libruby18.so.1.8 (0x405b8000) libFOX-1.0.so.0 => /usr/local/lib/libFOX-1.0.so.0 (0x40685000) libGLU.so.1 => /usr/lib/libGLU.so.1 (0x40911000) libGL.so.1 => /usr/lib/opengl/xorg-x11/lib/libGL.so.1 (0x4098d000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40a07000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40ad1000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40ae0000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40b2d000) libz.so.1 => /lib/libz.so.1 (0x40b4b000) libpng.so.3 => /usr/lib/libpng.so.3 (0x40b5b000) libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x40b8d000) libpthread.so.0 => /lib/libpthread.so.0 (0x40c56000) libdl.so.2 => /lib/libdl.so.2 (0x40ca8000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40cab000) libm.so.6 => /lib/libm.so.6 (0x40cd8000) libc.so.6 => /lib/libc.so.6 (0x40cfa000) libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x40e0d000) libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x40e16000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) -- Erwan Loisant From lyle at knology.net Tue Nov 2 10:47:54 2004 From: lyle at knology.net (lyle@knology.net) Date: Tue Nov 2 10:49:38 2004 Subject: [fxruby-users] Execution problem. In-Reply-To: <> References: <> Message-ID: <20041102154754.18174.qmail@webmail2.knology.net> On Tue, 2 Nov 2004 22:49:17 +0900, Erwan Loisant wrote : > I have a problem with fxruby; note that plain C++ Fox works. I took a > simple example from the tutorial and here is the result: Which version of FXRuby are you working with? From eloisant at gmail.com Tue Nov 2 11:50:29 2004 From: eloisant at gmail.com (Erwan Loisant) Date: Tue Nov 2 11:50:42 2004 Subject: [fxruby-users] Execution problem. In-Reply-To: <20041102154754.18174.qmail@webmail2.knology.net> References: <20041102154754.18174.qmail@webmail2.knology.net> Message-ID: <93e96c8604110208505e8d62fe@mail.gmail.com> On 2 Nov 2004 15:47:54 -0000, lyle@knology.net wrote: > > On Tue, 2 Nov 2004 22:49:17 +0900, Erwan Loisant wrote : > > > I have a problem with fxruby; note that plain C++ Fox works. I took a > > simple example from the tutorial and here is the result: > > > > Which version of FXRuby are you working with? > fox-1.0.49 FXRuby-1.0.29 (I use 1.0 and not 1.2 because it is required by FreeRide) -- Erwan Loisant From lyle at knology.net Tue Nov 2 12:08:22 2004 From: lyle at knology.net (lyle@knology.net) Date: Tue Nov 2 12:10:05 2004 Subject: [fxruby-users] Execution problem. In-Reply-To: <> References: <> Message-ID: <20041102170822.27567.qmail@webmail1.knology.net> On Wed, 3 Nov 2004 01:50:29 +0900, Erwan Loisant wrote : > On 2 Nov 2004 15:47:54 -0000, lyle@knology.net wrote: > > > Which version of FXRuby are you working with? > > > > fox-1.0.49 > FXRuby-1.0.29 Hmmm. The reason I was asking is that if I try to decipher the name of the undefined symbol ("_ZN2FX8FXStringC1EPKc") it sort-of looks like it's expecting to see the FXString class in an "FX" namespace -- which wasn't introduced until FOX 1.2. But the short answer is, I don't know what to tell you other than "wipe out all of your FOX and FXRuby installations (any versions) and then try again". [I'm thinking that if this were a widespread problem we would have discovered and corrected it by now.] From jagenheim at gmail.com Wed Nov 3 09:37:00 2004 From: jagenheim at gmail.com (Fredrik Jagenheim) Date: Wed Nov 3 09:37:10 2004 Subject: [fxruby-users] FXImage problems Message-ID: Hi, I don't understand how to combine ImageMagick and FXImage... The problem is that I don't get how I should tell the FXImage about my pixels... The docs says I should either provide a FXMemoryBuffer or a String. I've tried with all types of strings I think. Both binary (from pack) and seperated with spaces, commas, etc, but all I get is either a grey mass, or black with various colored pixels... FXMemoryBuffer can't be created it seems. FXMemoryBuffer.new just blows up?!?? I guess I could save the image generated from ImageMagick and then use the 'standard' FXJpgImage class, but I rather not... From jeroen at fox-toolkit.org Wed Nov 3 09:36:52 2004 From: jeroen at fox-toolkit.org (Jeroen van der Zijp) Date: Wed Nov 3 10:36:51 2004 Subject: [fxruby-users] FXImage problems In-Reply-To: References: Message-ID: <200411030936.52252.jeroen@fox-toolkit.org> On Wednesday 03 November 2004 09:37 am, Fredrik Jagenheim wrote: > Hi, > > I don't understand how to combine ImageMagick and FXImage... > > The problem is that I don't get how I should tell the FXImage about my pixels... > > The docs says I should either provide a FXMemoryBuffer or a String. > > I've tried with all types of strings I think. Both binary (from pack) > and seperated with spaces, commas, etc, but all I get is either a grey > mass, or black with various colored pixels... > > FXMemoryBuffer can't be created it seems. FXMemoryBuffer.new just blows up?!?? > > I guess I could save the image generated from ImageMagick and then use > the 'standard' FXJpgImage class, but I rather not... You could create an FXImage with the right dimensions, and then set its pixel data: image=new FXImage(app,pixels,IMAGE_OWNED|IMAGE_KEEP,width,height); After which FXImage assumes ownership of the pixel array [which must have been allocated with FXMALLOC()]. If the pixel array is not to be owned by FXImage, then, of course, you can just omit the IMAGE_OWNED flag. The pixel array, incidentally, is just a rectangular array of colors. Each color is RGBA, in that order, from low to high memory. The FXRGB macros are adjusted based on the machine's byte order so if you use these macros then the memory layout of your colors will be automatically correct. Hope this helps, - Jeroen From jagenheim at gmail.com Wed Nov 3 12:03:33 2004 From: jagenheim at gmail.com (Fredrik Jagenheim) Date: Wed Nov 3 12:03:51 2004 Subject: [fxruby-users] FXImage problems In-Reply-To: <200411030936.52252.jeroen@fox-toolkit.org> References: <200411030936.52252.jeroen@fox-toolkit.org> Message-ID: On Wed, 3 Nov 2004 09:36:52 -0500, Jeroen van der Zijp wrote: > On Wednesday 03 November 2004 09:37 am, Fredrik Jagenheim wrote: > > > > I don't understand how to combine ImageMagick and FXImage... > > > > You could create an FXImage with the right dimensions, and then > set its pixel data: > > image=new FXImage(app,pixels,IMAGE_OWNED|IMAGE_KEEP,width,height); I'm using fxruby, so it looks like this for me: # This should create a either very dark magenta or very bright magenta, depending on internal bitcolors: buf = [] 100.times { 100.times { buf << 255 buf << 0 buf << 255 } } transformed_buf = buf.join(" ") # Doesn't work # transformed_buf = buf.pack("i") # Doesn't work either image = FXImage.new(getApp(), transformed_buf, 0, 100, 100) imageView = FXImageView.new(self, nil, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y) imageView.image = image All I get is a small, scrollable window in very dark grey. > The pixel array, incidentally, is just a rectangular array of colors. Documentation for FXRuby says it should be FXMemoryBuffer or String. :( FXMemoryBuffer doesn't work though: fx_image_test.rb:20:in `new': allocator undefined for Fox::FXMemoryBuffer (NoMethodError) And I can't figure out how to transform my Array to a proper String... > Hope this helps, Sadly not, I'm using the Ruby interface... But that's not your fault. :) I don't know how/why my message ended up on the foxgui-users mailing list, though... //F From jagenheim at gmail.com Wed Nov 3 12:19:39 2004 From: jagenheim at gmail.com (Fredrik Jagenheim) Date: Wed Nov 3 12:19:47 2004 Subject: [fxruby-users] FXImage problems In-Reply-To: References: <200411030936.52252.jeroen@fox-toolkit.org> Message-ID: On Wed, 3 Nov 2004 18:03:33 +0100, Fredrik Jagenheim wrote: > # transformed_buf = buf.pack("i") # Doesn't work either It always helps to post code to realize that you've done a mistake. :/ buf.pack("c*") works EXACTLY like I wanted it to. Sorry for the noise... :( //F From riccardo at fisica.uniud.it Fri Nov 5 05:57:49 2004 From: riccardo at fisica.uniud.it (Riccardo Giannitrapani) Date: Fri Nov 5 05:55:21 2004 Subject: [fxruby-users] FXRuby 1.2.2 binary gem on Windows .. In-Reply-To: References: <> <20041026142656.28248.qmail@webmail3.knology.net> Message-ID: Hi any hints/suggestions for my problem of installing the 1.2.2 binary on windows? I have downloaded the 1.2.2 gem http://rubyforge.org/frs/download.php/1613/fxruby-1.2.2-mswin32.gem but it seems to be incomplete .. if I tray to do a gem install fxruby-1.2.2-mswin32.gem it complains not finding the fox12 library in the ext directory (see my previous email) .. I've tried to manually open the gem file (renamed it as a tar file and open it with winzip) .. it contains two other archives, one called metadata and the other data .. in the data archive it appear to be the fox installation, it contains directories for doc, examples, lib, rdo-sources, tests and web, but no ext directory and no fox12.so anywhere .. in fact the gem file seems also much smaller than the 1.2.1 one .. Probably I'm doing something wrong .. any help will be really appreciated, since I'm stuck on this problem Thanks a lot, Riccardo P.S. I'm using gem 0.8.1 .. On Tue, 26 Oct 2004 16:52:41 +0200, Riccardo Giannitrapani wrote: > Hi Lyle > > thanks a lot .. it was exactly that (I was sure I've upgraded to the > last gem, but it wasn't) .. > > Now I have 0.8.1 and it seems to install, but I still get this problem > > C:\>gem install fxruby-1.2.2-mswin32.gem > Attempting local installation of 'fxruby-1.2.2-mswin32.gem' > Successfully installed fxruby, version 1.2.2 > Installing RDoc documentation for fxruby-1.2.2-mswin32... > File not found: ext/fox12 > > And in fact I cannot find the fox12.so anywhere in my ruby installation > (the 1.2.1 installed it inside an ext directory below the gems > directory) .. > > Am I using gem in the proper way? Thanks again for the help. > > Riccardo > > > > On 26 Oct 2004 14:26:56 -0000, lyle@knology.net wrote: > >> >> On Tue, 26 Oct 2004 11:15:23 +0200, "Riccardo Giannitrapani" >> wrote : >> >>> I'm tring to install the last binary gem on Windows of FXRuby, 1.2.2 .. >>> but I get an error, here it is: >> >> >> >> Are you using the latest version of RubyGems (version 0.8.1)? There was >> change in the file format, which accounts for the smaller file size and >> which would also account for the errors you're seeing if you're using an >> older version of RubyGems. >> > > > -- Riccardo Giannitrapani Dipartimento di Fisica - Room L1-14-BE Universita` di Udine - Via delle Scienze, 206 Udine (Italy) Tel (Office): +39-0432-558209 Home Page: http://www.fisica.uniud.it/~riccardo ICQ# 86590904 From lyle at knology.net Fri Nov 5 09:50:34 2004 From: lyle at knology.net (Lyle Johnson) Date: Fri Nov 5 09:50:41 2004 Subject: [fxruby-users] FXRuby 1.2.2 binary gem on Windows .. In-Reply-To: References: <> <20041026142656.28248.qmail@webmail3.knology.net> Message-ID: <0C294E85-2F3A-11D9-9923-000A958408D2@knology.net> On Nov 5, 2004, at 4:57 AM, Riccardo Giannitrapani wrote: > any hints/suggestions for my problem of installing the 1.2.2 binary on > windows? I have downloaded the 1.2.2 gem > > http://rubyforge.org/frs/download.php/1613/fxruby-1.2.2-mswin32.gem > > but it seems to be incomplete Sorry for the delayed response. I've just uploaded a corrected version of the Gem file; the file size is now about 2.3 Mb. Thanks very much for the heads-up about this problem! From riccardo at fisica.uniud.it Fri Nov 5 09:59:38 2004 From: riccardo at fisica.uniud.it (Riccardo Giannitrapani) Date: Fri Nov 5 09:57:12 2004 Subject: [fxruby-users] FXRuby 1.2.2 binary gem on Windows .. In-Reply-To: <0C294E85-2F3A-11D9-9923-000A958408D2@knology.net> References: <> <20041026142656.28248.qmail@webmail3.knology.net> <0C294E85-2F3A-11D9-9923-000A958408D2@knology.net> Message-ID: Hi Lyle as always thanks thanks thanks :)) I can now try the last version .. FXRuby rocks :) Riccardo On Fri, 5 Nov 2004 08:50:34 -0600, Lyle Johnson wrote: > > On Nov 5, 2004, at 4:57 AM, Riccardo Giannitrapani wrote: > >> any hints/suggestions for my problem of installing the 1.2.2 binary on >> windows? I have downloaded the 1.2.2 gem >> >> http://rubyforge.org/frs/download.php/1613/fxruby-1.2.2-mswin32.gem >> >> but it seems to be incomplete > > Sorry for the delayed response. I've just uploaded a corrected version > of the Gem file; the file size is now about 2.3 Mb. > > Thanks very much for the heads-up about this problem! > > -- Riccardo Giannitrapani Dipartimento di Fisica - Room L1-14-BE Universita` di Udine - Via delle Scienze, 206 Udine (Italy) Tel (Office): +39-0432-558209 Home Page: http://www.fisica.uniud.it/~riccardo ICQ# 86590904 From hal9000 at hypermetrics.com Sun Nov 7 01:36:26 2004 From: hal9000 at hypermetrics.com (Hal Fulton) Date: Sun Nov 7 01:36:28 2004 Subject: [fxruby-users] Tycho with Fox 1.2? Message-ID: <418DC26A.9050805@hypermetrics.com> Question -- has anyone lately tried Tycho (tycho.rubyforge.org) with Fox 1.2 and the corresponding latest fxruby? I haven't tried it yet -- as I've been scared to -- but a couple of people have told me it crashes immediately. Latest news I have is that it crashes around line 766 in tycho.rb, at the call to super in MyMain#create (which should of course call FXMainWindow#create). Any hints welcome. Thanks, Hal From vjoel at PATH.Berkeley.EDU Sat Nov 13 21:29:00 2004 From: vjoel at PATH.Berkeley.EDU (Joel VanderWerf) Date: Sat Nov 13 21:28:52 2004 Subject: [fxruby-users] speeding up image.rb Message-ID: <4196C2EC.8060306@path.berkeley.edu> It's not really important, since image.rb is just a demo, but I was tired of waiting for it to start up when I was playing around with it, so I made the changes below, and got the following speed up: $ time ruby-stable-snapshot image2.rb ruby-stable-snapshot image2.rb 0.79s user 0.12s system 38% cpu 2.377 total $ time ruby-stable-snapshot image.rb ruby-stable-snapshot image.rb 6.97s user 0.80s system 84% cpu 9.223 total $ diff -u image.rb image2.rb --- image.rb 2004-10-25 17:38:35.000000000 -0700 +++ image2.rb 2004-11-13 18:22:24.000000000 -0800 @@ -114,26 +114,32 @@ @picture = FXBMPImage.new(getApp(), nil, IMAGE_SHMI|IMAGE_SHMP, 850, 600) # Fill up the color-ramp byte arrays (strings) - (0...512).each { |x| - (0...50).each { |y| - @grey.data[3*(y*512+x) ] = (x/2) - @grey.data[3*(y*512+x)+1] = (x/2) - @grey.data[3*(y*512+x)+2] = (x/2) - } - (0...50).each { |y| - @red.data[3*(y*512+x) ] = (x/2) - @red.data[3*(y*512+x)+1] = 0 - @red.data[3*(y*512+x)+2] = 0 - } - (0...50).each { |y| - @green.data[3*(y*512+x) ] = 0 - @green.data[3*(y*512+x)+1] = (x/2) - @green.data[3*(y*512+x)+2] = 0 - } - (0...50).each { |y| - @blue.data[3*(y*512+x) ] = 0 - @blue.data[3*(y*512+x)+1] = 0 - @blue.data[3*(y*512+x)+2] = (x/2) + grey_data = @grey.data + red_data = @red.data + green_data = @green.data + blue_data = @blue.data + + (0...50).each { |y| + y_times_512 = y*512 + (0...512).each { |x| + i = 3*(y_times_512+x) + x_div_2 = x/2 + + grey_data[i ] = x_div_2 + grey_data[i+1] = x_div_2 + grey_data[i+2] = x_div_2 + + red_data[i ] = x_div_2 + #red_data[i+1] = 0 + #red_data[i+2] = 0 + + #green_data[i ] = 0 + green_data[i+1] = x_div_2 + #green_data[i+2] = 0 + + #blue_data[i ] = 0 + #blue_data[i+1] = 0 + blue_data[i+2] = x_div_2 } } From krisztian.kaldi at triton.hu Mon Nov 15 03:43:56 2004 From: krisztian.kaldi at triton.hu (=?iso-8859-15?Q?Kriszti=E1n_K=E1ldi?=) Date: Mon Nov 15 03:43:44 2004 Subject: [fxruby-users] Creating widgets after initialize of the main window Message-ID: Hello there I have just got into learning FXRuby, and have a problem I can not solve - last night at #ruby-lang could not help either. I'm sure you can easily solve it :) Unfortunately I don't have the actual source code here, but the point is the following: def ininialize(app) ... @frame = new FXVerticalFrame.new self, ... @btn1 = new FXButton @frame, ... @btn2 = new FXButton @frame, ... @btn1.connect(SEL_COMMAND) do |a,b,c| @btn3 = new FXButton @frame, ... puts "i'm here" end ... end My problem: @btn1 and @btn2 buttons are created/shown well, but the @btn3 (which I create in the select event handler of @btn1) is not shown at all, but the execution gets there ("i'm there" is printed). I tried the following - without success: - creating FXListBoxs instead of FXbuttons - calling @btn3.create explicitly - playing around with update, repaint, forceRefresh, ... Thank you in advance. Regards, Krisztian Kaldi From lyle at knology.net Mon Nov 15 10:50:44 2004 From: lyle at knology.net (lyle@knology.net) Date: Mon Nov 15 10:52:17 2004 Subject: [fxruby-users] Creating widgets after initialize of the main window In-Reply-To: <> References: <> Message-ID: <20041115155044.5123.qmail@webmail2.knology.net> On Mon, 15 Nov 2004 09:43:56 +0100, Kriszti?n K?ldi wrote : > My problem: @btn1 and @btn2 buttons are created/shown well, but the @btn3 (which I create in the select event handler of @btn1) is not shown at all, but the execution gets there ("i'm there" is printed). > > I tried the following - without success: > - creating FXListBoxs instead of FXbuttons > - calling @btn3.create explicitly > - playing around with update, repaint, forceRefresh, ... Calling @btn3.create should have done the trick. If you have a short example program (not a code fragment) that demonstrates the problem, we can take a look to see what might be going on. From hal9000 at hypermetrics.com Thu Nov 18 01:54:59 2004 From: hal9000 at hypermetrics.com (Hal Fulton) Date: Thu Nov 18 01:54:40 2004 Subject: [fxruby-users] 1.2.2 gem... Message-ID: <419C4743.3020501@hypermetrics.com> Duh... I installed Fox 1.2.11 and then the 1.2.2 gem -- and all seemed OK. Then when my code did a require "rubygems" require_gem "fox" this is what I got: [hal@dhcppc2 tycho]$ ruby tycho.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:116:in `activate': (Gem::LoadError) Could not find RubyGem fox (> 0.0.0) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:34:in `require_gem' from tycho.rb:3 So I thought: I guess the gem name is fxruby? But then I got: [hal@dhcppc2 tycho]$ ruby tycho.rb /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.2/ext/fox12/fox12.so: libFOX-1.2.so.0: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.2/ext/fox12/fox12.so (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:148:in `activate' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:34:in `require_gem' from tycho.rb:3 So... how am I being stupid here? Thanks, Hal From lyle at knology.net Thu Nov 18 08:46:23 2004 From: lyle at knology.net (Lyle Johnson) Date: Thu Nov 18 08:46:02 2004 Subject: [fxruby-users] 1.2.2 gem... In-Reply-To: <419C4743.3020501@hypermetrics.com> References: <419C4743.3020501@hypermetrics.com> Message-ID: <3C4EDD12-3968-11D9-B511-000A958408D2@knology.net> On Nov 18, 2004, at 12:54 AM, Hal Fulton wrote: > But then I got: > > [hal@dhcppc2 tycho]$ ruby tycho.rb > /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.2/ext/fox12/fox12.so: > libFOX-1.2.so.0: > cannot open shared object file: No such file or directory - > /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.2/ext/fox12/fox12.so > (LoadError) > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in > `require' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:148:in > `activate' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:34:in > `require_gem' > from tycho.rb:3 > > So... how am I being stupid here? I think the problem is that the extension module (fox12.so) can't find the FOX library (libFOX-1.2.so); but to check this theory, can you tell me the output of this: ldd /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.2/ext/fox12/fox12.so Thanks, Lyle From lyle at knology.net Fri Nov 19 08:22:06 2004 From: lyle at knology.net (Lyle Johnson) Date: Fri Nov 19 08:21:39 2004 Subject: [fxruby-users] 1.2.2 gem... In-Reply-To: <419D8785.8040000@hypermetrics.com> References: <419C4743.3020501@hypermetrics.com> <3C4EDD12-3968-11D9-B511-000A958408D2@knology.net> <419D8785.8040000@hypermetrics.com> Message-ID: <02454FBC-3A2E-11D9-B280-000A958408D2@knology.net> On Nov 18, 2004, at 11:41 PM, Hal Fulton wrote: > I did an ldconfig and it helped. > > But now I see this: > > [hal@dhcppc2 tycho]$ ruby tycho.rb > /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.2/ext/fox12/fox12.so: > /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.2/ext/fox12/fox12.so: > undefined symbol: _ZN8FXStringC1EPKc - > /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.2/ext/fox12/fox12.so > (LoadError) > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in > `require' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:148:in > `activate' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:34:in > `require_gem' > from tycho.rb:3 > > > Darn that pesky old _ZN8FXStringC1EPKc symbol... Do you perhaps have an old FXScintilla, compiled against FOX 1.0, installed? Check to see if you have a file like: /usr/local/lib/libfxscintilla.so (that may not be the exact name). If that installation of FXScintilla was built in the past, against FOX 1.0, that might be the conflict. In that case I think you'd need to rebuild FXScintilla against FOX 1.2. Seems like someone else has run into that problem recently. From lyle at knology.net Mon Nov 22 22:09:10 2004 From: lyle at knology.net (Lyle Johnson) Date: Mon Nov 22 22:08:36 2004 Subject: [fxruby-users] 1.2.2 gem... In-Reply-To: <41A23146.204@hypermetrics.com> References: <419C4743.3020501@hypermetrics.com> <3C4EDD12-3968-11D9-B511-000A958408D2@knology.net> <419D8785.8040000@hypermetrics.com> <02454FBC-3A2E-11D9-B280-000A958408D2@knology.net> <41A23146.204@hypermetrics.com> Message-ID: <0BE3143F-3CFD-11D9-B63F-000A958408D2@knology.net> On Nov 22, 2004, at 12:34 PM, Hal Fulton wrote: > I installed a new FXScintilla and then did a gem install of fxruby > 1.2.2 > again. > > Same thing. I suspect what is happening is that when you build FXScintilla, it's seeing the FOX 1.0 installation (i.e. /usr/local/lib/libFOX.so) and linking against that instead of your FOX 1.2 installation (i.e. /usr/local/lib/libFOX-1.2.so). Can you send me a copy of the config.log file that should be sitting in your FXScintilla build directory? It's the file that shows what kinds of decisions the "configure" script while it was configuring the FXScintilla build, and it should resolve the question of which FOX library your FXScintilla is linked to. > Apparently the Fox 1.0 is still installed... I expected the 1.2 to > overwrite > it... but "require 'fox'" still works fine for me and gives me old > values > for fxversion and fxrubyversion. Yes; this was done intentionally to distinguish between applications written for FXRuby 1.0 and applications written for FXRuby 1.2. See the change history: http://www.fxruby.org/1.2/doc/changes.html and technically those instructions are not quite right; for the gem installation, you need to do this: require 'rubygems' require 'fox12' A different approach (recommended by the RubyGems folk) is to just add "-rubygems" to your RUBYOPT environment variable so that the "rubygems" module is always automatically loaded when the Ruby interpreter starts up. If you've done that then you'd only need to do: require 'fox12' > Do I have to "kill" 1.0 somehow? You don't have to, no. They should be able to co-exist. > BTW: I *do* have to do this, don't I? > > require 'rubygems' > require_gem 'fxruby' > > since I installed with a gem? As of the the latest version of RubyGems, you should be able to use either of the following forms: require 'rubygems' require_gem 'fxruby' or: require 'rubygems' require 'fox12' I suppose I'd recommend the latter since that should work whether they've installed the code from a Gem or from some other source (like the source tarball, or RPA, or whatever). I apologize for the confusion, but RubyGems has been a bit of a moving target over the last few months. There's still a pretty significant bug in RubyGems 0.8.1 that affects gem-based installations of FXRuby (or any other compiled extension) on Mac OS X. In retrospect it was probably a mistake to try to shift things over to RubyGems at the time that I did, but hopefully things will settle down as they head into the home stretch towards a RubyGems 1.0 release. Thanks, Lyle From lyle at knology.net Tue Nov 23 21:09:10 2004 From: lyle at knology.net (Lyle Johnson) Date: Tue Nov 23 21:08:28 2004 Subject: [fxruby-users] 1.2.2 gem... In-Reply-To: <41A2DFDE.6080601@hypermetrics.com> References: <419C4743.3020501@hypermetrics.com> <3C4EDD12-3968-11D9-B511-000A958408D2@knology.net> <419D8785.8040000@hypermetrics.com> <02454FBC-3A2E-11D9-B280-000A958408D2@knology.net> <41A23146.204@hypermetrics.com> <0BE3143F-3CFD-11D9-B63F-000A958408D2@knology.net> <41A2DFDE.6080601@hypermetrics.com> Message-ID: On Nov 23, 2004, at 12:59 AM, Hal Fulton wrote: > Lyle Johnson wrote: >> I suspect what is happening is that when you build FXScintilla, it's >> seeing the FOX 1.0 installation (i.e. /usr/local/lib/libFOX.so) and >> linking against that instead of your FOX 1.2 installation (i.e. >> /usr/local/lib/libFOX-1.2.so). Can you send me a copy of the >> config.log file that should be sitting in your FXScintilla build >> directory? > > OK... attached. OK, that confirmed my suspicion: If the FXScintilla configure script sees both FOX 1.0 and 1.2 installed, it goes with FOX 1.0 by default. I checked my FXScintilla build directory (also for FXScintilla 1.61) and it looks like his configure script has this option: ./configure --with-fox-1-2 (I got this by doing "configure --help"). So I think what you might have to do at this point is: 1. Re-configure FXScintilla using this switch; rebuild it and re-install it. 2. Re-install the FXRuby gem, so that it links against this build of FXScintilla and not the old one. Hope this helps, Lyle From lyle at knology.net Tue Nov 23 21:10:34 2004 From: lyle at knology.net (Lyle Johnson) Date: Tue Nov 23 21:09:50 2004 Subject: [fxruby-users] Fwd: [FR-devel] ANNOUNCE: FXScintilla 1.62 Message-ID: <0647A97A-3DBE-11D9-8C1D-000A958408D2@knology.net> I don't recall if Gilles sent this message out to the FXRuby lists or not. Begin forwarded message: > From: Gilles Filippini > Date: November 20, 2004 9:27:48 AM CST > To: freeride-devel@rubyforge.org > Subject: [FR-devel] ANNOUNCE: FXScintilla 1.62 > Reply-To: freeride-devel@rubyforge.org > > I'm pleased to announce the release of FXScintilla 1.62. > > FXScintilla is an implementation of the Scintilla source code editing > component [1] for the FOX GUI toolkit [2]. > > Changes since the previous release (1.61): > - upgraded to Scintilla-1.62 > - Fox support defaults to Fox-1.2 > - bug fixes > > > FXScintilla homepage: > > http://www.nongnu.org/fxscintilla/ > > Downloads: > > http://savannah.nongnu.org/files/?group=fxscintilla > > Cheers, > > _gilles. > > > [1] http://scintilla.org/ > [2] http://fox-toolkit.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1134 bytes Desc: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20041123/bee0d041/attachment.bin From hal9000 at hypermetrics.com Wed Nov 24 05:36:45 2004 From: hal9000 at hypermetrics.com (Hal Fulton) Date: Wed Nov 24 05:36:14 2004 Subject: [fxruby-users] 1.2.2 gem... In-Reply-To: References: <419C4743.3020501@hypermetrics.com> <3C4EDD12-3968-11D9-B511-000A958408D2@knology.net> <419D8785.8040000@hypermetrics.com> <02454FBC-3A2E-11D9-B280-000A958408D2@knology.net> <41A23146.204@hypermetrics.com> <0BE3143F-3CFD-11D9-B63F-000A958408D2@knology.net> <41A2DFDE.6080601@hypermetrics.com> Message-ID: <41A4643D.6070800@hypermetrics.com> Lyle Johnson wrote: > 1. Re-configure FXScintilla using this switch; rebuild it and > re-install it. > 2. Re-install the FXRuby gem, so that it links against this build of > FXScintilla and not the old one. That worked like a charm, thanks... Hal From hal9000 at hypermetrics.com Wed Nov 24 05:43:38 2004 From: hal9000 at hypermetrics.com (Hal Fulton) Date: Wed Nov 24 05:43:07 2004 Subject: [fxruby-users] FXMainWindow#create (?) segfaults Message-ID: <41A465DA.7000201@hypermetrics.com> I've just gotten 1.2 properly installed with Lyle's help. I can now confirm what others have told me: My code segfaults with 1.2. Here's an abbreviation of the code: class MyMain < FXMainWindow # other methods... def create super # <-- [BUG] Segmentation fault on line 768 # other code... end end In addition, there are several hundred warnings output before that, all of this form: /usr/local/lib/ruby/site_ruby/1.8/fox/glgroup.rb:17: warning: already initialized constant FLT_MIN Any idea what goes on here? If Lyle or anyone else wishes to try the code, it's downloadable from http://rubyforge.org/projects/tycho I don't pretend this has any urgency -- it's just a side project of mine, if a pet one -- but I do want to move it forward eventually. Thanks for any insight... Hal From gilles.filippini at free.fr Wed Nov 24 16:02:46 2004 From: gilles.filippini at free.fr (Gilles Filippini) Date: Wed Nov 24 16:02:19 2004 Subject: [fxruby-users] Fwd: [FR-devel] ANNOUNCE: FXScintilla 1.62 In-Reply-To: <0647A97A-3DBE-11D9-8C1D-000A958408D2@knology.net> References: <0647A97A-3DBE-11D9-8C1D-000A958408D2@knology.net> Message-ID: <41A4F6F6.4030709@free.fr> Lyle Johnson a ?crit : > I don't recall if Gilles sent this message out to the FXRuby lists or not. I didn't. Thanks Lyle. _gilles.