Hi Im testing wxRuby. I have a problem when ruby try to load the load wx. Im newbie to ruby, maybe a make a simple mistake : Best regards. Install wxRuby-------------------------------------------------------------- pedro@la-vaca-azul:~$ sudo gem install wxruby2-preview Need to update 2 gems from http://gems.rubyforge.org .. complete Select which gem to install for your platform (i486-linux) 1. wxruby2-preview 0.0.38 (i686-linux) 2. wxruby2-preview 0.0.38 (powerpc-darwin7.9.0) 3. wxruby2-preview 0.0.38 (i686-darwin8.4.1) 4. wxruby2-preview 0.0.38 (i386-mswin32) 5. wxruby2-preview 0.0.37 (powerpc-darwin7.9.0) 6. wxruby2-preview 0.0.37 (i686-darwin8.4.1) 7. wxruby2-preview 0.0.36 (powerpc-darwin7.9.0) 8. wxruby2-preview 0.0.36 (i386-mswin32) 9. wxruby2-preview 0.0.36 (i686-darwin8.4.1) 10. wxruby2-preview 0.0.36 (i486-linux) 11. wxruby2-preview 0.0.35 (i686-darwin8.4.1) 12. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0) 13. wxruby2-preview 0.0.35 (i486-linux) 14. Cancel installation> 10Successfully installed wxruby2-preview-0.0.36-i486-linux Executing my class ---------------------------------------------------------- pedro@la-vaca-azul:~/work/rad/gui/wx$ ls hello_world.rb pedro@la-vaca-azul:~/work/rad/gui/wx$ ruby hello_world.rb hello_world.rb:1:in `require'': no such file to load -- wx (LoadError) from hello_world.rb:1 Load alone and irb ------------------------------------------------ pedro@la-vaca-azul:~/work/rad/gui/wx$ ruby -rubygems -e "require ''wxruby2''" pedro@la-vaca-azul:~/work/rad/gui/wx$ irb irb(main):001:0> require ''wxruby2'' LoadError: no such file to load -- wxruby2 from (irb):1:in `require'' from (irb):1 apt-get search libgtk apt-cache search libgtk libglib1.2 - The GLib library of C routines libgtk1.2 - The GIMP Toolkit set of widgets for X libgtk1.2-common - Common files for the GTK+ library libgtk1.2-dbg - Debugging files for the GIMP Toolkit libgtk1.2-dev - Development files for the GIMP Toolkit libgtk1.2-doc - Documentation for the GIMP Toolkit libgtk2-perl - Perl interface to the 2.x series of the Gimp Toolkit library libgtk2-perl-doc - Perl interface to the Gtk 2.x series (documentation files) libgtk2.0-cil - CLI binding for the GTK+ toolkit 2.10 libgtk2.0-0 - The GTK+ graphical user interface library libgtk2.0-0-dbg - The GTK+ libraries and debugging symbols libgtk2.0-bin - The programs for the GTK+ graphical user interface library libgtk2.0-common - Common files for the GTK+ graphical user interface library libgtk2.0-dev - Development files for the GTK+ library libgtk2.0-doc - Documentation for the GTK+ graphical user interface library libgtk+2.0-directfb-dev - gtk+2.0 implementation for the frame buffer, development files libgtk+2.0-directfb0 - gtk+2.0 implementation for the frame buffer libgtk2-ruby - GTK+ bindings for the Ruby language -- ------------------------------------- Pedro Del Gallego Vida Email : pedro.delgallego@gmail.com IM Jabber : pedro.delgallego@jabber.org Telefono VoIP : pedro.delgallego in Skype.
On 1/3/07, Pedro Del Gallego <pedro.delgallego at gmail.com> wrote:> Hi > > Im testing wxRuby. I have a problem when ruby try to load the load wx. > > Im newbie to ruby, maybe a make a simple mistake : > > Best regards. > > Install wxRuby-------------------------------------------------------------- > pedro at la-vaca-azul:~$ sudo gem install wxruby2-preview > Need to update 2 gems from http://gems.rubyforge.org > > > Executing my class ---------------------------------------------------------- > pedro at la-vaca-azul:~/work/rad/gui/wx$ ls > hello_world.rb > pedro at la-vaca-azul:~/work/rad/gui/wx$ ruby hello_world.rb > hello_world.rb:1:in `require'': no such file to load -- wx (LoadError) > from hello_world.rb:1 > > Load alone and irb ------------------------------------------------ > pedro at la-vaca-azul:~/work/rad/gui/wx$ ruby -rubygems -e "require ''wxruby2''" > pedro at la-vaca-azul:~/work/rad/gui/wx$ irb > irb(main):001:0> require ''wxruby2'' > LoadError: no such file to load -- wxruby2 > from (irb):1:in `require'' > from (irb):1 >Hello, Here is a example require from bigdemo. begin require ''wx'' rescue LoadError => no_wx_err begin require ''rubygems'' require ''wx'' rescue LoadError raise no_wx_err end end
Hi Pedro Thanks for your interest in wxruby.> Select which gem to install for your platform (i486-linux) ><snip>> Successfully installed wxruby2-preview-0.0.36-i486-linux >This is quite an old version now - are you able to use the i686-linux version 0.0.38 gem? If not, please say and we will see if we can provide newer i486-linux gem.> Executing my class ---------------------------------------------------------- > pedro at la-vaca-azul:~/work/rad/gui/wx$ ls > hello_world.rb > pedro at la-vaca-azul:~/work/rad/gui/wx$ ruby hello_world.rb >As Ville is suggesting, you don''t seem to be requiring rubygems here before you load wxruby. Does it work if you do ruby -rubygems hello_world.rb> pedro at la-vaca-azul:~/work/rad/gui/wx$ ruby -rubygems -e "require ''wxruby2''" >Here you have loaded rubygems and it seems to work. Alex
I was having the same issue on my linux machine. Requiring rubygems fixed the problem, but only for the 486 version. If I try to run the 686 version, I get glibc errors. I am fairly new to linux, so I may not have things setup correctly. Brian Alex Fenton wrote: Hi Pedro Thanks for your interest in wxruby. Select which gem to install for your platform (i486-linux) Successfully installed wxruby2-preview-0.0.36-i486-linux version 0.0.38 gem? If not, please say and we will see if we can provide newer i486-linux gem. Executing my class ---------------------------------------------------------- pedro@la-vaca-azul:~/work/rad/gui/wx$ ls hello_world.rb pedro@la-vaca-azul:~/work/rad/gui/wx$ ruby hello_world.rb before you load wxruby. Does it work if you do ruby -rubygems hello_world.rb pedro@la-vaca-azul:~/work/rad/gui/wx$ ruby -rubygems -e "require ''wxruby2''" Alex _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
hi, If i use the 486 version and Requiring rubygems fixed the problem for me too.> This is quite an old version now - are you able to use the i686-linux > version 0.0.38 gem? If not, please say and we will see if we can provide > newer i486-linux gem.Yes im able to use it. but i have a more strange error on this version i change to the wx-preview to i686-linux then i have this fail (Like Brian said): ruby asd.rb : $ ruby asd.rb (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)'' failed (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (process:6736): Gtk-CRITICAL **: gtk_rc_get_style: assertion `GTK_IS_WIDGET (widget)'' failed (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)'' failed (process:6736): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)'' failed (process:6736): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)'' failed (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (process:6736): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)'' failed (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)'' failed (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)'' failed (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6736): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)'' failed /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'': no such file to load -- wx_sugar/all (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from asd.rb:3 pedro at la-vaca-azul:~/work/rad/gui/wx$ ruby asd.rb (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)'' failed (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (process:6760): Gtk-CRITICAL **: gtk_rc_get_style: assertion `GTK_IS_WIDGET (widget)'' failed (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)'' failed (process:6760): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)'' failed (process:6760): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)'' failed (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (process:6760): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)'' failed (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)'' failed (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)'' failed (process:6760): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6760): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)'' failed pedro at la-vaca-azul:~/work/rad/gui/wx$ clear; pedro at la-vaca-azul:~/work/rad/gui/wx$ ruby asd.rb (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)'' failed (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (process:6763): Gtk-CRITICAL **: gtk_rc_get_style: assertion `GTK_IS_WIDGET (widget)'' failed (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)'' failed (process:6763): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)'' failed (process:6763): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)'' failed (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (process:6763): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)'' failed (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)'' failed (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)'' failed (process:6763): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:6763): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)'' failed -- ------------------------------------- Pedro Del Gallego Vida Email : pedro.delgallego at gmail.com IM Jabber : pedro.delgallego at jabber.org Telefono VoIP : pedro.delgallego in Skype.
I''m working through some examples (and translating python), so I''m not sure if I''m doing something wrong or what... When I try image = Wx::Image.new(''cover.jpg'', Wx::BITMAP_TYPE_JPEG) I get an error box with "No image handler for type 17 defined.". I get a similar error for .gif files. (this is using wxRuby 0.6.0 on Ubuntu linux with ruby 1.8.4, if that makes any difference) Brian
Brian C Broom wrote:> I was having the same issue on my linux machine. Requiring rubygems > fixed the problem, but only for the 486 version. If I try to run the > 686 version, I get glibc errors. I am fairly new to linux, so I may > not have things setup correctly.It''s very unlikely to be your set up - I think just that the newer 0.0.38 library is not built in a way that''s compatible with your system. Could you mention the distro you''re using please?. If any of the dev team (Kevin?) are able to provide an i486 gem for 0.0.38, please let me know. Or any info on how to build a backwards-compatible gem. thanks alex
Hi Brian Thanks for the report.> image = Wx::Image.new(''cover.jpg'', Wx::BITMAP_TYPE_JPEG) >This looks correct. Are you sure you''re in the same directory as ''cover.jpg'' when you make this call?> I get an error box with "No image handler for type 17 defined.". I get > a similar error for .gif files. >Did you build your own WxWidgets or use the one that comes with the distro? It may be that the WxWidgets you''re using doesn''t have jpeg support built in. We might be able to tell if you post the output of wx-config --libs> (this is using wxRuby 0.6.0 on Ubuntu linux with ruby 1.8.4, if that > makes any difference)I''m afraid we''re very unlikely to investigate or fix any issues reported with wxruby 0.6.0; it''s now considered superceded by wxruby2. If you can reproduce the problem with current wxruby2-preview we will be happy to help. The binary builds offered on rubyforge should guarantee jpeg support. cheers alex
Pedro Del Gallego wrote:> i change to the wx-preview to i686-linux then i have this fail (Like > Brian said): >You have a couple of different errors and warnings mixed together here:> $ ruby asd.rb > > (process:6736): GLib-GObject-CRITICAL **: gtype.c:2240: initialization > assertion failed, use IA__g_type_init() prior to this function >...> (process:6736): GLib-GObject-CRITICAL **: g_type_add_interface_static: > assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed >...> (process:6736): Gtk-CRITICAL **: gtk_rc_get_style: assertion > `GTK_IS_WIDGET (widget)'' failedThese warnings messages are a known bug - but seem to be harmless. See: http://rubyforge.org/tracker/index.php?func=detail&aid=6633&group_id=35&atid=218 I have just tracked down the source of these annoying messages so it should be fixed in the next release.> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'': no such file to load -- wx_sugar/all > (LoadError) > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from asd.rb:3 >This is a fatal ruby error - you are trying to require the ''wx_sugar'' library, but it appears you haven''t installed it. To fix this, install it: sudo gem install wx_ruby cheers alex
These errors were with the distro version of wxWindows (2.6, I think). I loaded some other libwx* bits, with the same result. I also compiled from source for 2.8, also with the same error. $ wx-config --libs -L/usr/local/lib -pthread -lwx_gtk2_aui-2.8 -lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8 running under wxruby2-preview 0.0.36 (the latest one I can install) gives the same error, and some console output App.cpp new Director 0x81f57e4 Calling wxEntry, this=0x81f5780 Our Initialize was called Their Initialize returned 1 OnInitGui before OnInitGui after Image.cpp new Director 0x826c270 Frame.cpp new Director 0x826c6b4 warning box shows "No image handler for type 17 defined", clicking ok exits the program. any ideas? Brian Alex Fenton wrote:> Hi Brian > > Thanks for the report. > >> image = Wx::Image.new(''cover.jpg'', Wx::BITMAP_TYPE_JPEG) >> >> > This looks correct. Are you sure you''re in the same directory as > ''cover.jpg'' when you make this call? > >> I get an error box with "No image handler for type 17 defined.". I get >> a similar error for .gif files. >> >> > Did you build your own WxWidgets or use the one that comes with the > distro? It may be that the WxWidgets you''re using doesn''t have jpeg > support built in. We might be able to tell if you post the output of > wx-config --libs > >> (this is using wxRuby 0.6.0 on Ubuntu linux with ruby 1.8.4, if that >> makes any difference) >> > I''m afraid we''re very unlikely to investigate or fix any issues reported > with wxruby 0.6.0; it''s now considered superceded by wxruby2. > > If you can reproduce the problem with current wxruby2-preview we will be > happy to help. The binary builds offered on rubyforge should guarantee > jpeg support. > > cheers > alex > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > >
Brian C Broom wrote:> These errors were with the distro version of wxWindows (2.6, I think). I > loaded some other libwx* bits, with the same result. I also compiled > from source for 2.8, also with the same error. >The wx-config info you shows suggests wxWidgets was not compiled with built-in jpeg support - otherwise I would expect it to include -lwx_jpeg or similar. Note that at the moment wxruby2 doesn''t work with the recently released 2.8.0 - we will be looking to update, probably after 2.8.1 comes out.> running under wxruby2-preview 0.0.36 (the latest one I can install) > gives the same error, and some console output >This is an old alpha release; I''m sorry we can''t help using that. Since there is no current binary for your platform, you''ll need to build from source. 1) first - build and install wxWidgets *2.6.3*, using the options given here: http://wxruby.rubyforge.org/wiki/wiki.pl?Release_HowTo 2) Then build wxruby2 http://wxruby.rubyforge.org/wiki/wiki.pl?Installation We''ll be happy to help with build problems or bugs reported against that set-up. cheers alex
Ok, I''ve managed to install these (wasn''t too hard, but had to update SWIG also). Wx-config is reporting the correct version, and now lists the image libs. I''m not convinced that the wxRuby I built from source is being used, and not the gem. Is there an easy way to see which version is being loaded? I guess I could gem uninstall (probally should anyway) to make sure I''m getting the correct things. After this, I get the long list of (process:27701): GLib-GObject-CRITICAL **: gtype.c:2215: initialization assertion failed, use IA__g_type_init() prior to this function (process:27701): GLib-GObject-CRITICAL **: gtype.c:2215: initialization assertion failed, use IA__g_type_init() prior to this function (process:27701): GLib-GObject-CRITICAL **: gtype.c:2215: initialization assertion failed, use IA__g_type_init() prior to this function (process:27701): GLib-GObject-CRITICAL **: gtype.c:2215: initialization assertion failed, use IA__g_type_init() prior to this function (process:27701): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'' failed (etc...) that was reported by someone else. Thanks so much for your help. I guess I''ll keep on the lookout for the next version. Brian Alex Fenton wrote:> Brian C Broom wrote: > >> These errors were with the distro version of wxWindows (2.6, I think). I >> loaded some other libwx* bits, with the same result. I also compiled >> from source for 2.8, also with the same error. >> >> > The wx-config info you shows suggests wxWidgets was not compiled with > built-in jpeg support - otherwise I would expect it to include -lwx_jpeg > or similar. > > Note that at the moment wxruby2 doesn''t work with the recently released > 2.8.0 - we will be looking to update, probably after 2.8.1 comes out. > >> running under wxruby2-preview 0.0.36 (the latest one I can install) >> gives the same error, and some console output >> >> > This is an old alpha release; I''m sorry we can''t help using that. Since > there is no current binary for your platform, you''ll need to build from > source. > > 1) first - build and install wxWidgets *2.6.3*, using the options given > here: > http://wxruby.rubyforge.org/wiki/wiki.pl?Release_HowTo > > 2) Then build wxruby2 > http://wxruby.rubyforge.org/wiki/wiki.pl?Installation > > We''ll be happy to help with build problems or bugs reported against that > set-up. > > cheers > alex > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > >