All, FXRuby version 1.6.0 is now available for download from this page: http://rubyforge.org/frs/?group_id=300&release_id=5497 This is the first release of FXRuby that is compatible with the FOX 1.6 library. Although FXRuby 1.6 has undergone a good bit of pre-release testing, this should still be considered an "unstable", not-ready-for-production-use release. Also note that you should be using FOX 1.6.5 or later due to some important changes made in that release of FOX. For a summary of the changes in this release of FXRuby, please see this page: http://www.fxruby.org/doc/changes.html As usual, the code is provided as a Win32 installer or a binary Gem (both compatible with the latest One-Click Installer for Ruby 1.8.4), as a source gem, and as a source tarball. For instructions on compiling FXRuby from source, please see: http://www.fxruby.org/doc/build.html And as always, the FXRuby home page is here: http://www.fxruby.org Enjoy, Lyle
Lyle Johnson
2006-May-29 21:18 UTC
[fxruby-users] [Foxgui-users][ANN] FXRuby 1.6.0 Now Available
On May 29, 2006, at 3:52 PM, Riccardo Giannitrapani wrote:> It''s Christmas time :) .. looking forward to test this new one with my > applications .. > > Thanks as usual, RiccardoRemember to change any require statements to point to ''fox16'' instead of ''fox14''. Otherwise, you''ll still be using FXRuby 1.4! As usual, please use the bug tracker at RubyForge to report any bugs or make feature requests.
Lyle Johnson
2006-May-29 22:10 UTC
[fxruby-users] [Foxgui-users][ANN] FXRuby 1.6.0 Now Available
On May 29, 2006, at 4:56 PM, Joel VanderWerf wrote:> I think I only see the changes up to 1.4.6 on this page.My bad. Check it again (may require a browser refresh).
On May 29, 2006, at 8:57 PM, Sander Jansen wrote:> I wasn''t aware there was a FOX 1.6.5 out there... !?For some reason, Jeroen hasn''t updated the FOX home page download links with this one -- but it''s there in the usual place.
I wasn''t aware there was a FOX 1.6.5 out there... !? Sander On Monday 29 May 2006 15:35, Lyle Johnson wrote:> All, > > FXRuby version 1.6.0 is now available for download from this page: > > http://rubyforge.org/frs/?group_id=300&release_id=5497 > > This is the first release of FXRuby that is compatible with the FOX 1.6 > library. Although FXRuby 1.6 has undergone a good bit of pre-release > testing, this should still be considered an "unstable", > not-ready-for-production-use release. Also note that you should be > using FOX 1.6.5 or later due to some important changes made in that > release of FOX. > > For a summary of the changes in this release of FXRuby, please see this > page: > > http://www.fxruby.org/doc/changes.html > > As usual, the code is provided as a Win32 installer or a binary Gem > (both compatible with the latest One-Click Installer for Ruby 1.8.4), > as a source gem, and as a source tarball. For instructions on compiling > FXRuby from source, please see: > > http://www.fxruby.org/doc/build.html > > And as always, the FXRuby home page is here: > > http://www.fxruby.org > > Enjoy, > > Lyle > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users
On 5/29/06, Lyle Johnson <lyle at knology.net> wrote:> All, > > FXRuby version 1.6.0 is now available for download from this page: > > http://rubyforge.org/frs/?group_id=300&release_id=5497 >lyle, i have a problem installing fxruby 1.6 gem on linux. the fox16.so compiled fine. everything seems to be in its place but require "fox16" doesn''t seem to work. henon at golem:~$ irb irb(main):001:0> require "fox16" => false irb(main):002:0> Fox NameError: uninitialized constant Fox from (irb):2 irb(main):003:0> VERSION => "1.8.3" irb(main):004:0> here are the last lines of the gem installation process. it says that there is nothing to do for make install. is this ok? ... gcc -shared -L"/usr/local/lib" -L"/usr/lib" -o fox16.so librb.o ui_wrap.o layou t_wrap.o FXRuby.o iconlist_wrap.o core_wrap.o dc_wrap.o fx3d_wrap.o list_wrap.o label_wrap.o text_wrap.o unregisterOwnedObjects.o table_wrap.o frames_wrap.o FXR bApp.o icons_wrap.o impl.o mdi_wrap.o dialogs_wrap.o FXRbGLViewer.o image_wrap.o menu_wrap.o FXRbDataTarget.o markfuncs.o treelist_wrap.o -lruby1.8 -lFOX-1.6 - lGLU -lGL -lX11 -lXext -ltiff -ljpeg -lz -lpng -lstdc++ -lpthread -ldl -lcrypt -lm -lc make install make: Nothing to be done for `install''. Successfully installed fxruby-1.6.0 Installing RDoc documentation for fxruby-1.6.0... rdoc-sources/FXPPMImage.rb:14:27: Couldn''t find FXPNGImage. Assuming it''s a modu le henon at golem:~$ gem --version 0.8.11 summary: fox 1.6.5 compiled fine and examples worked. fxruby 1.6 compiled without errors too. just the require fails to load the library somehow... any clues? best wishes, -- henon
On Jun 4, 2006, at 1:32 AM, Meinrad Recheis wrote:> i have a problem installing fxruby 1.6 gem on linux. the fox16.so > compiled fine. everything seems to be in its place but require "fox16" > doesn''t seem to work.I just did a fresh install on Fedora Core 4 and everything works as expected. Could you send me a copy of the file: /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.0/ext/fox16/gem_make.out It may be in a slightly different location, depending on where you''ve installed Ruby. I''m not sure what I''m looking for, but I can at least see if there are any obvious differences between my copy of gem_make.out and yours. Thanks, Lyle
On Jun 4, 2006, at 4:25 PM, Charles D Hixson wrote:> Note the location: > /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.0/ext/fox16/gem_make.out > Perhaps this is significant?Charles, I don''t think this difference is significant; it just indicates that your Ruby is installed under /usr instead of /usr/local. I''ve compared both yours and Henon''s gem_make.out files to mine (which was for a build under FC4) and the only obvious differences are: + For the Debian builds, the "platform" part is "i486-linux" instead of "i686-linux" + For the Debian builds, "-lruby1.8" is included in the final link step (the one that builds fox16.so). It''s not included in mine. Neither of these differences are ringing any bells for me, and so I don''t know what to tell you to do. I suspect that there''s something "interesting" about how the version of Ruby that''s bundled with Debian is built, but I don''t have access to that operating system. Are any other Debian users reading this? Any clues? Lyle
On Jun 5, 2006, at 12:32 AM, Meinrad Recheis wrote:> henon at golem:/usr/local/fox-1.6.4$ ls /usr/lib/libFOX* > /usr/lib/libFOX-1.4.so.0 /usr/lib/libFOX-1.4.so.0.0.16 > > now i got a clue what is happening, but i don''t know why fox'' make did > not build a libFOX-1.6.so > do i have to set any flags before fox compilation?Well, if you just did "configure; make; make install", then FOX got installed in /usr/local/lib and not /usr/lib. If that''s the case, the solution to your problem can be found on this page from the FXRuby User''s Guide: http://www.fxruby.org/doc/gems.html Hope this helps, Lyle
Lyle Johnson wrote:> On Jun 5, 2006, at 12:32 AM, Meinrad Recheis wrote: > > >> henon at golem:/usr/local/fox-1.6.4$ ls /usr/lib/libFOX* >> /usr/lib/libFOX-1.4.so.0 /usr/lib/libFOX-1.4.so.0.0.16 >> >> now i got a clue what is happening, but i don''t know why fox'' make did >> not build a libFOX-1.6.so >> do i have to set any flags before fox compilation? >> > > Well, if you just did "configure; make; make install", then FOX got > installed in /usr/local/lib and not /usr/lib. > > If that''s the case, the solution to your problem can be found on this > page from the FXRuby User''s Guide: > > http://www.fxruby.org/doc/gems.html > > Hope this helps, > > Lyle >Let me be sure I understand this (I also did a "make intall"). The files are in: /usr/local/lib/libFOX-1.6.a /usr/local/lib/libFOX-1.6.la /usr/local/lib/libFOX-1.6.so /usr/local/lib/libFOX-1.6.so.0 /usr/local/lib/libFOX-1.6.so.0.0.4 Isn''t this one of the "few standard places"?
On Mon, 05 Jun 2006 11:37:43 -0700, Charles D Hixson <charleshixsn at earthlink.net> wrote :> Let me be sure I understand this (I also did a "make intall"). > The files are in: > /usr/local/lib/libFOX-1.6.a > /usr/local/lib/libFOX-1.6.la > /usr/local/lib/libFOX-1.6.so > /usr/local/lib/libFOX-1.6.so.0 > /usr/local/lib/libFOX-1.6.so.0.0.4 > Isn''t this one of the "few standard places"?I''m sorry, I don''t understand the question. A "standard place" for what?
On Jun 5, 2006, at 6:14 PM, Charles D Hixson wrote:> Sorry, I was quoting from http://www.fxruby.org/doc/gems.html where it > says: > "By default, the source gem will look for your FOX (and optionally, > FXScintilla) installation in a few standard places, such as the /usr, > /usr/local and /sw directories."Yeah, that''s talking about looking for the include files (e.g. in /usr/include/fox-1.6, /usr/local/include/fox-1.6, etc.) so that it can build the FXRuby extension.> I had understood that to imply that it looked in /usr/local/lib, and I > had understood you to be implying that it didn''t. (I was wrong...you > were talking about setting: > export LD_LIBRARY_PATH=/usr/local/lib > which occurs towards the bottom of the document. This did solve that > problem, and now I''m back to the segmentation fault error that I was > hoping fox16 would fix.Right, the FXRuby installation process doesn''t attempt to automatically "fix" your ld.so.conf file settings that control how shared libraries are loaded.> Guess I''ll need to try an new version of Ruby or Fox. Ruby first, I > think, since the new error message looks more like it was caught by > Ruby: > gui.rb:53: [BUG] Segmentation fault > ruby 1.8.4 (2005-12-24) [i486-linux]Have you filed a bug report about this yet? I''m not remembering this one and I don''t (think) I see it in the list at: http://rubyforge.org/tracker/?atid=1223&group_id=300&func=browse If you''re pretty sure it''s some kind of FXRuby bug, please do go ahead and file a bug report for it. Thanks, Lyle
Axel Etzold
2006-Jun-06 07:49 UTC
[fxruby-users] setCurrent switcher index out of bounds problem
I''m trying to develop a GUI that combines features of the foursplit.rb and shutter.rb examples. So there is a bar of ShutterButtons to the left, and a set of four FX4Splitter elements to the right of the screen. Thanks to expert help from Lyle, it''s now possible to ''expand'' any of these elements to full size of the right pane. Now, I need to add the possibility to switch between different layers of the right pane, just like in the shutter.rb application, where you press one of the ShutterButtons on the left to have that behaviour. In my code, I set a variable @shutter.current =0, etc.., like this ... big_splitter = FXSplitter.new(self, (LAYOUT_SIDE_TOP|LAYOUT_FILL_X| LAYOUT_FILL_Y|SPLITTER_TRACKING)) ... @shutter = FXShutter.new(big_splitter, nil, 0, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) ... @switcher = FXSwitcher.new(big_splitter, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0) splitter = FX4Splitter.new(@switcher, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|FOURSPLITTER_TRACKING) shutterItem = ShutterItem.new(@shutter, "Files, data, and pictures", nil, LAYOUT_FILL_Y) ShutterButton.new(shutterItem.content, "Expand dirlist", big_folder).connect(SEL_COMMAND){ @switcher.current=0 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_TOPLEFT), nil)} ShutterButton.new(shutterItem.content, "Expand cell file editor", pens).connect(SEL_COMMAND){ @switcher.current=0 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_BOTTOMLEFT), nil)} ShutterButton.new(shutterItem.content, "Expand tuning curve plot", messypaint).connect(SEL_COMMAND){ @switcher.current=1 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_TOPRIGHT), nil)} ShutterButton.new(shutterItem.content, "Expand reconstruction plot", drawing).connect(SEL_COMMAND){ @switcher.current=2 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_BOTTOMRIGHT), nil)} ShutterButton.new(shutterItem.content, "Show all four", monitor).connect(SEL_COMMAND){ @switcher.current=3 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_ALL), nil)} Then, I get the error below. What is the problem here ? Thank you very much in advance, Axel Error message: c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/aliases.rb:4067:in `setCurrent'': switcher item index out of bounds (IndexError) from c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/aliases.rb:4067:in `current='' from c:/axelhome/ngui/f17.rb:170:in `initialize'' from c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/responder2.rb:57:in `onHandleMsg'' from c:/axelhome/ngui/f17.rb:610:in `runme'' from c:/axelhome/ngui/f17.rb:619 -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
Meinrad Recheis
2006-Jun-06 09:15 UTC
[fxruby-users] setCurrent switcher index out of bounds problem
On 6/6/06, Axel Etzold <AEtzold at gmx.de> wrote:> > I''m trying to develop a GUI that combines features of > the foursplit.rb and shutter.rb examples. > So there is a bar of ShutterButtons to the left, > and a set of four FX4Splitter elements to the right > of the screen. > Thanks to expert help from Lyle, it''s now possible to > ''expand'' any of these elements to full size of the > right pane. > Now, I need to add the possibility to switch between > different layers of the right pane, just like in the > shutter.rb application, where you press one of the > ShutterButtons on the left to have that behaviour. > > In my code, I set a variable @shutter.current =0, etc.., > like this > > ... > big_splitter = FXSplitter.new(self, (LAYOUT_SIDE_TOP|LAYOUT_FILL_X| > LAYOUT_FILL_Y|SPLITTER_TRACKING)) > ... > @shutter = FXShutter.new(big_splitter, nil, 0, > FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) > ... > @switcher = FXSwitcher.new(big_splitter, > FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0) > splitter = FX4Splitter.new(@switcher, > LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|FOURSPLITTER_TRACKING) > shutterItem = ShutterItem.new(@shutter, "Files, data, and pictures", nil, LAYOUT_FILL_Y) > ShutterButton.new(shutterItem.content, "Expand dirlist", big_folder).connect(SEL_COMMAND){ > @switcher.current=0 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_TOPLEFT), nil)} > ShutterButton.new(shutterItem.content, "Expand cell file editor", pens).connect(SEL_COMMAND){ > @switcher.current=0 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_BOTTOMLEFT), nil)} > ShutterButton.new(shutterItem.content, "Expand tuning curve plot", messypaint).connect(SEL_COMMAND){ > @switcher.current=1 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_TOPRIGHT), nil)} > ShutterButton.new(shutterItem.content, "Expand reconstruction plot", drawing).connect(SEL_COMMAND){ > @switcher.current=2 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_BOTTOMRIGHT), nil)} > ShutterButton.new(shutterItem.content, "Show all four", monitor).connect(SEL_COMMAND){ > @switcher.current=3 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_ALL), nil)} > > Then, I get the error below. > What is the problem here ? > > Thank you very much in advance, > > Axel > > > Error message: > > c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/aliases.rb:4067:in `setCurrent'': switcher item index out of bounds (IndexError) > from c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/aliases.rb:4067:in `current='' > from c:/axelhome/ngui/f17.rb:170:in `initialize'' > from c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/responder2.rb:57:in `onHandleMsg'' > from c:/axelhome/ngui/f17.rb:610:in `runme'' > from c:/axelhome/ngui/f17.rb:619 >it''s normal to get some errors when writing a program. but a programmer must know how to deal with them. i give you some help so that you can help yourself in future: have a look at the error msg: it tells you exactly where in your source code the error happened. then add some lines that output the values to see what''s going on. in your case you set the current item of the switcher to an index that does not exist. so just output the index with puts to see what is the error in your program. try that first. if you have more questions i will answer them. hope that helps, -- henon