Hello, I''m having problems using the widgets Wx::Http*, such as Wx::HtmlWindow, Wx::HtmlEasyPrinting, etc.. The error I got is "uninitialized constant Wx::HtmlWindow". The code is correct since I''m trying to execute samples in the html/ directory. All other samples work. I can''t even see that widgets doing require ''wxruby''; ObjectSpace.each_object(Class) {|c| p c if c.name =~ /Wx/} I see all the widgets but the html* ones. Is this a problem of mine or the html widgets aren''t still bound to Ruby? I''m using WxRuby 0.6.0 on GNU/Linux (compiled on my pc) Thanks, Domenico
Domenico De Felice wrote:> Hello, > I''m having problems using the widgets Wx::Http*, such as > Wx::HtmlWindow, Wx::HtmlEasyPrinting, etc.. > The error I got is "uninitialized constant Wx::HtmlWindow".> I''m using WxRuby 0.6.0 on GNU/Linux (compiled on my pc)Hi, I forget why, but the html classes are specifically omitted from Linux builds of wxruby 0.6. You can try enabling them to see if whatever problem caused us to disable them has perhaps been fixed. In extconf.rb, you should see this section: if /linux/ =~ RUBY_PLATFORM or /freebsd/ =~ RUBY_PLATFORM CONFIG[''CC''] = `wx-config --cxx` CONFIG[''LDSHARED''].gsub!("gcc",`wx-config --cxx`.strip) $CFLAGS += " `wx-config --cxxflags`" $LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script " ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| $objs.delete(str) end if ($use_xrc) $LDFLAGS += " -lwx_gtk2_xrc-2.4 " end Just comment out the $objs.delete(str) line (and perhaps the line above and the line below also). Then re-run extconf.rb and attempt the make. I doubt it will work, but if you report the problems we can try to figure out whether it is solveable or not. Kevin
On 7/26/05, Kevin Smith <wxruby@qualitycode.com> wrote:> Hi,[...]> Just comment out the $objs.delete(str) line (and perhaps the line above > and the line below also). Then re-run extconf.rb and attempt the make. I > doubt it will work, but if you report the problems we can try to figure > out whether it is solveable or not.Uhm.. strangely it works :-) It seems to work without any problems (except the fact it cant find the image handler when a html widget try to render an image, but that is not a problem for me) I think that lines should be deleted since they aren''t useful (at least in my case) Thank you for the help and for the wxruby bindings :-) Domenico PS: what about creating a .deb package? ;-)