Hi, I just submitted bug #16760. Feel free to contact me with any questions or comments. (svn failed too, but I can''t say if this is the same error. If this is a dependency issue, the main web page should be updated too.) I''m just trying to run wxruby and go through the tutorial, but also want enter it as a new package for the SourceMage GNU/Linux distribution. Thanks. Dale E. Edmons demaillists at comcast.net
Hi Dale Dale E. Edmons wrote:> I just submitted bug #16760. Feel free to contact me > with any questions or comments. (svn failed too, but I > can''t say if this is the same error. If this is a dependency > issue, the main web page should be updated too.) >Thanks for the report. I guess the first thing to check is that your wxWidgets is built with XRC support. The config/setup.h include file in your wxWidgets tree should tell you that (search for define wxUSE_XRC = 1) It looks like you''re trying to compile against a distro-supplied wxWidgets - is this a static or dynamic build? wxRuby is geared up to work with static at the moment, primarily because it makes installation on Windows much easier.> I''m just trying to run wxruby and go through the tutorial, > but also want enter it as a new package for the SourceMage > GNU/Linux distribution. >We''re always interested in new ways of distributing wxRuby. If there''s tweaks we can make to make it work better with Linux distros etc then please let us know. cheers alex
Alex, Thanks for the reply... Alex Fenton wrote:> Hi Dale > > Dale E. Edmons wrote: > >> I just submitted bug #16760. Feel free to contact me >> with any questions or comments. (svn failed too, but I >> can''t say if this is the same error. If this is a dependency >> issue, the main web page should be updated too.) >> >> > Thanks for the report. I guess the first thing to check is that your > wxWidgets is built with XRC support. The config/setup.h include file in > your wxWidgets tree should tell you that (search for define wxUSE_XRC = 1) > >Recompiled with xrc enbled. Fixed it. Yipee.> It looks like you''re trying to compile against a distro-supplied > wxWidgets - is this a static or dynamic build? wxRuby is geared up toDistro supplied, sort of. SourceMage GNU/Linux is source based and you attend to the compilation of *every* package by answering a lot of options--even if you don''t know *all* the right answers. ;)> > work with static at the moment, primarily because it makes installation > on Windows much easier. >Now I''m having linking errors.... Removing the STATIC defs allow complete build and install, but the examples aren''t running.>> I''m just trying to run wxruby and go through the tutorial, >> but also want enter it as a new package for the SourceMage >> GNU/Linux distribution. >> >> > We''re always interested in new ways of distributing wxRuby. If there''s > tweaks we can make to make it work better with Linux distros etc then > please let us know. > >One "tweek" would be to ensure that dynamic linking works. Also, Source distro''s "depend" on released tarballs compiling or a patch being available from the download site. I think these would be the biggest help. Not having to search for a fix if a tarball is broken helps. Although I''ve installed wxpython, I''m holding out on getting wxruby working. (I''ll submit the ''spell'' as soon as it works unattended.) Thanks for the help. Will wxruby work with dynamic libraries? I''ll catch a bit of flack if I don''t at least attempt to resolve this. Dale> cheers > alex > > > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development > >
Alex Fenton
2008-Jan-02 23:38 UTC
[wxruby-development] dynamic/static etc [was: Bug #16760]
Dale Dale E. Edmons wrote:> Distro supplied, sort of. SourceMage GNU/Linux is source > based and you attend to the compilation of *every* package > by answering a lot of options--even if you don''t know *all* the > right answers. ;) >OK ... that must be some question''n''answer session when building wxWidgets... ...> One "tweek" would be to ensure that dynamic linking works. >It''s something we''ve been discussing recently and would like to do. I think the Linux build of wxruby2 used to be dynamically linked, way back. I''ll have a dig around in SVN and see if we can identify the change and get this to be a working option. This''ll be after the next release; please do add a feature request for this to track it.> Also, Source distro''s "depend" on released tarballs compiling > or a patch being available from the download site. I think > these would be the biggest help. Not having to search for a > fix if a tarball is broken helps.Yep. We should have a 1.9.3 release shortly. But these tarballs are still beta so we''re still identifying and fixing bugs. A lot of them deal with the range of platforms that wxRuby runs on (windows/linux/mac, self-compile/rubygems), so feedback about problems on particular configurations is really helpful. thanks alex
Dale E. Edmons
2008-Jan-03 12:04 UTC
[wxruby-development] dynamic/static etc [was: Bug #16760]
Alex Fenton wrote:> Dale > > Dale E. Edmons wrote: > >> Distro supplied, sort of. SourceMage GNU/Linux is source >> based and you attend to the compilation of *every* package >> by answering a lot of options--even if you don''t know *all* the >> right answers. ;) >> >> > OK ... that must be some question''n''answer session when building > wxWidgets... >Yes. Not quite like compiling it yourself, but better than a distro cookie-cutter bin.> ... > > >> One "tweek" would be to ensure that dynamic linking works. >> >> > > It''s something we''ve been discussing recently and would like to do. I > think the Linux build of wxruby2 used to be dynamically linked, way > back. I''ll have a dig around in SVN and see if we can identify the > change and get this to be a working option. This''ll be after the next > release; please do add a feature request for this to track it. >Okay, that''d be great. rake/rakelinux.rb has the following if it helps: $link_wx_statically = true>> Also, Source distro''s "depend" on released tarballs compiling >> or a patch being available from the download site. I think >> these would be the biggest help. Not having to search for a >> fix if a tarball is broken helps. >> > Yep. We should have a 1.9.3 release shortly. But these tarballs are > still beta so we''re still identifying and fixing bugs. A lot of them > deal with the range of platforms that wxRuby runs on (windows/linux/mac, > self-compile/rubygems), so feedback about problems on particular > configurations is really helpful. >1) A broken rakefile (rake/rakewx.rb) doesn''t not qualify as a platform issue. IMHO, that should have been patched immediately and wxruby-1.9.2-rc1.tar.bz2 should have been released. It is unrealistic to expect all tarballs to be perfect, but it is unfair to potential users to leave a *bomb* right in harms way. 2) I''ll be happy to keep trying as I''m really interested in getting a working version of wxruby. (Don''t ask me why, but ruby has it''s own appeal and I just really want it to work.) I''m running SourceMage GNU/Linux and will be happy to do any and all testing of tarballs at least until a working version is available. (Maybe much more if the result is *way cool*.) 3) In the mean-time, I''ve had to resort to learning wxPython. I can already grok it a little, but ruby has *much* more appeal. Thank you very much for your time. Dale> thanks > alex > > > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development > >
Dale E. Edmons
2008-Jan-03 13:49 UTC
[wxruby-development] dynamic/static etc [was: Bug #16760]
Alex, Wohoo! I got wxruby-1.9.2.tar.gz running with dynamic. I''m testing the patch right now to verify it''s validity. Here''s what I did: 1) Applied "patch" on closed bug #16718 (rake/rakewx.rb:101) 2) edited rake/rakelinux.rb to set the static test to false *and* moved the conditional if statement to enclose just the static line near the end 3) Copied svn/wxruby2/lib/wx/*.rb to wxruby-1.9.2/lib/wx/ 4) ran: rake, rake install 5) ran a sample and it gave me a GUI! 6) Created and tested/testing patch 7) Did Snoopy dance around the desk (Though #7 is not strictly required is it a great CV exercise.) Sorry, about taking so much time but I''m just learning ruby and this is my first experience with rake. (I''m pretty certain Luck played a critical role.) I''ve included the patch (rake just finished on the patched tarball). (.... rake install, running: sample/aui ruby aui.rb, yipee! Yes, it still works. Pressing send.) Hopefully you will test it an upload it to the download page so others won''t trip on their own shoe-strings like I did. Enjoy. Dale E. Edmons (aka linuxfan on #sourcemage) demaillists_at_comcast_dot-net -------------- next part -------------- A non-text attachment was scrubbed... Name: wxruby-1.9.2-smgl.patch Type: text/x-patch Size: 27881 bytes Desc: not available Url : http://rubyforge.org/pipermail/wxruby-development/attachments/20080103/80a5499c/attachment-0001.bin
Alex Fenton
2008-Jan-03 21:41 UTC
[wxruby-development] dynamic/static etc [was: Bug #16760]
Dale E. Edmons wrote:> Alex, > > Wohoo! I got wxruby-1.9.2.tar.gz running with dynamic. I''m testing the > patch right now to verify it''s validity.Great. Thanks very much for the contribution. I''ll try and merge it shortly, in advance of the next release. I''ll try to get it working for both Linux and OS X, as 10.5 comes with a recent version of wxWidgets pre-installed. I''ll also modify it so that it tests for a specified or default setup of wx (on *nix systems, there can be multiple parallel libraries installed, and managed via wx-confnig). I''ll drop a note round once the rake changes are in so HEAD can be tested on different systems before 1.9.3 thanks again alex
Dale E. Edmons
2008-Jan-04 12:14 UTC
[wxruby-development] dynamic/static etc [was: Bug #16760]
Alex, Anything you need me to test, feel free to e-mail me. I don''t have this on a watch list, so throw a brick or something. ;) Dale Alex Fenton wrote:> Dale E. Edmons wrote: > >> Alex, >> >> Wohoo! I got wxruby-1.9.2.tar.gz running with dynamic. I''m testing the >> patch right now to verify it''s validity. >> > > Great. Thanks very much for the contribution. I''ll try and merge it > shortly, in advance of the next release. I''ll try to get it working for > both Linux and OS X, as 10.5 comes with a recent version of wxWidgets > pre-installed. > > I''ll also modify it so that it tests for a specified or default setup of > wx (on *nix systems, there can be multiple parallel libraries installed, > and managed via wx-confnig). > > I''ll drop a note round once the rake changes are in so HEAD can be > tested on different systems before 1.9.3 > > thanks again > alex > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development > >