I''m trying to test on platforms other than Windows, starting with my Fedora Core 5 box. I''m getting this error when trying to run the Hello World script (http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World): undefined symbol: gtk_widget_is_composited - /usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86- linux/lib/wxruby2.so (LoadError) This happens with both the wxRuby 1.9.4 and 1.9.2 gems. I''m not really looking to build from source; I want the gem to auto-download and "just work" for users of my full application. Hopefully I''m just missing something that can be downloaded via a package manager, which I can include in installation instructions. Can anyone advise? -Jay McGavren http://jay.mcgavren.com/zyps
Alex Fenton
2008-Jan-25 22:17 UTC
[wxruby-users] "undefined symbol" with wxRuby gem on Fedora Core 5...
Hi Jay Jay McGavren wrote:> I''m trying to test on platforms other than Windows, starting with my > Fedora Core 5 box. I''m getting this error when trying to run the > Hello World script > (http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World): > > undefined symbol: gtk_widget_is_composited - > /usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86- > linux/lib/wxruby2.so (LoadError) >Thanks for the report. I''m pretty sure this will be because the version of GTK on the (Ubuntu 7.10) machine that I build wxWidgets and the wxRuby gem on is newer than that on the machine you''re trying to install on. It looks like that method is referenced in one place in the wxWidgets source and conditionally compiled for version 2.10 of GTK. Could you see what version of GTK2 is provided with your distro please?> This happens with both the wxRuby 1.9.4 and 1.9.2 gems. I''m not > really looking to build from source; I want the gem to auto-download > and "just work" for users of my full application. Hopefully I''m just > missing something that can be downloaded via a package manager, which > I can include in installation instructions. Can anyone advise? >First step would be to see if there is an upgrade to the latest GTK2.10 available from your repo. That would verify that''s the issue. More generally, for the binary gems we aim for the commonest platforms - hence Windows XP, Ubuntu, and OS X 10.4. But if we can make the gems more compatible with little compromise on features, we will, as Sean did to make the 1.9.4 release work on OS X 10.4 as well as 10.5. I''ll seek some advice on whether I can compile wxWidgets in a more backwards-compatible way re GTK, although some of the stuff that''s being used to do conditional compilation is actually direct from GTK. cheers alex
Jay McGavren
2008-Jan-29 19:23 UTC
[wxruby-users] "undefined symbol" with wxRuby gem on Fedora Core 5...
Alex Fenton wrote:> Jay McGavren wrote: > > Fedora Core 5 box. I''m getting this error when trying to > run the > > Hello World script > > (http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World): > > > > undefined symbol: gtk_widget_is_composited - > > /usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86- > > linux/lib/wxruby2.so (LoadError) > > > Thanks for the report. > > I''m pretty sure this will be because the version of GTK on > the (Ubuntu 7.10) machine that I build wxWidgets and the > wxRuby gem on is newer than that on the machine you''re > trying to install on. It looks like that method is > referenced in one place in the wxWidgets source and > conditionally compiled for version 2.10 of GTK. > > Could you see what version of GTK2 is provided with your > distro please?OK, yeah, I''m at 2.8.20, and can''t even update from the FC5 repositories (I''d have to go to at least FC6). I installed FC5 off a co-worker''s CD, and didn''t realize just how outdated it was. I think I''ll do a fresh install of FC8 and test there (as well as with Ubuntu). Unless I''m not the only one running such an outdated distro, it''d be silly to support something so old. Thanks for looking into it, though! -Jay McGavren http://jay.mcgavren.com/zyps