Three days ago I updated my Ubuntu Lucid to a Maverick box and got to
know that this bug: Bug #632984 “libwx_gtk2u_media-2.8.so.0 missing from libwxgtk2.8...” : Bugs : wxwidgets2.8 package : Ubuntu makes
it impossible to compile wxRuby. I then tried to compile wxWidgets
myself, and it seemed to work, but today I started serious developing -
I got plenty of segmentation faults.
I decided to follow the guidelines at the wxRuby wiki ( http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets ) exactly, but it didn’t work out[1] either, I’m still getting segfaults
when using more complex controls than the StaticText widget. For example
running the minimal.rb sample from the wxRuby gem and clicking the
“File” menu results in this: http://pastie.org/1229483
So, what is the correct way to comile wxWidgets on Ubuntu in order to
make it work with wxRuby?
Vale,
Marvin
[1]Btw. the step “cd contrib/stc” is not possible, that has to be “cd
contrib/src/stc” or just “cd contrib” (which builds all contributions
and was what I did).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
exactly, but it didn’t work out[1] either, I’m still getting segfaults
contrib/src/stc" or just “cd contrib” (which builds all contributions
and was what I did).
Anyone ever compiled wxWidgets and got it to work with wxRuby?
Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
This stupid thing prevents me from continuing developing. Do I really
have to go back to Ubuntu Lucid to get wxWidgets/wxRuby to work?!
Vale,
Marvin
OK guys, I’m one step nearer to the goal of a usable wxRuby on Ubuntu
Maverick… I decided to give the distro packages another try and
thought the the missing libwx_gtk2u_media-2.8.so.0 shared object file
should only affect the MediaCtrl. I tried to exclude MediaCtrl from
compilation via the WXRUBY_EXCLUDE variable, but I got to know that the
INSTALL file contains a fatal typo: After looking through wxRuby’s
Rakefiles I found the variable is actually named WXRUBY_EXCLUDED (note
the letter D at the end). So I tried
$ export WXRUBY_EXCLUDED=MediaCtrl
$ rake
and it compiled successfully! So I continued:
$ strip -x lib/wxruby2.so
$ rake gem
But nope:
(…)
Cannot build a package without a version being specified
Create a version by running rake with WXRUBY_VERSION=x.x.x
(…)
Uh! What’s that? Following the backtrace, I found it was line 22 in
rakepackage.rb which caused the error. I changed it from
spec.version = WXRUBY_VERSION
to
spec.version = WXRUBY_VERSION.dup
and finally, I got my gem file!
$ rake gem WXRUBY_VERSION=2.0.1
(in /home/quintus/Downloads/wxruby-2.0.1)
Enabling DYNAMIC build
Enabling RELEASE build
Enabling UNICODE build
The following wxWidgets features are not available and will be skipped:
MediaCtrl
MediaCtrl
MediaEvent
PrinterDC
Successfully built RubyGem
Name: wxruby-ruby19
Version: 2.0.1
File: wxruby-ruby19-2.0.1-x86_64-linux.gem
It’s interesting that MediaCtrl shows up twice in the list of skipped
features. Without the WXRUBY_EXCLUDED variable set, it appeared once,
but nevertheless wxRuby failed to compile saying
libwx_gtk2u_media-2.8.so couldn’t be found. I had to explicitely exclude
the MediaCtrl class to get rid of that dependency.
Now I continued with installation of the gem (which went just fine; I
even removed my previous wxruby-ruby19 gem to avoid conflicts) and tried
to run the minimal sample:
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension
libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Aborted
ARRRGH. Everything for the cat, as we Germans say (“Alles fr die
Katz’”), i.e. all my efforts for nothing. Does someone probably have ANY
idea?
Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/