<rvnues@tesco.net>
2008-Jan-30 12:19 UTC
Re: libgstreamer, slackware => libgconf.......???
Hoi, Mario and Alex, Thanks for your ideas and I''ll be able to get ahead with them. I dunno whether I am the only sole on linux planet wihout gconf or libgstreamer.... but I used the gem system of installing wxruby, which is a great tool. Of course I can give it a try to compile wxRuby myself (and hopefully not running into other dependencies when omitting Wx::MediaCtrl ) but, by accidentally stumbling on your discussion about modularisation on http://rubyforge.org/pipermail/wxruby-development/2007-June/000790.html , the ideas in here might provide a long-term solution to the problems I encountered. Please do not start changing things for my sake (I was only trying wxRuby out as part of discovering ruby. I''ve made stuff with Java and am looking for a friendlier programming environment) and probably can get enough done with 1.9.2 before needing to upgrade... Please keep f ocused on the main direction of wxRuby. rob> The wxRuby 1.9.3 binaries added Wx::MediaCtrl, which requires > libgstreamer on Linux. You can either: > > 1) Fufil this dependency by installing libgstreamer > > or > > 2) Build your own wxRuby. Wx::MediaCtrl is an optional component, and if > you''re compiling your own wxRuby and it''s not found to be supported, > it''ll be skipped without error. > > hth > alexMario Steele wrote:> gconf, is actually not a gnome library, per say, as it''s more generalized storage library, that Gnome popularized. I''ve seen gconf used in many console apps (As I''ve recently started messing with SourceMage GNU/Linux, which is a full blown source based distro). > > As for portability, I will talk with alex, to see if we can possibly put up a specialized version of wxruby for linux, that does not have these dependencies, as to reduce dependencies that are not needed. I think OpenGL is another one that may require an additional dependency, but it shouldn''t be that large of one, since most Modern Distro''s come with OpenGL. > > I will get back with you, and let you know what me and Alex discuss about this problem. > > L8ers, > Mario Steele > > On 1/29/08, rob wrote: > > Hi Mario, > > I did install gstreamer in the end to see what happened and now running of wxruby apps hangs because of the lack of gconf (libgconf-2.so.4) which is a gnome library. > > > /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86-linux/lib/wxruby2.so: libgconf-2.so.4: > > cannot open shared object file: No such file or directory - > > /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86-linux/lib/wxruby2.so (LoadError) > > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' > > ... etc > > I dunno, but the whole thing looks to me as if for the latest wxruby versions suddenly unneeded depencencies have been smuggled in from the build-system that has all this stuff on it. Why does a gui wrapper program needs coupling to a media streaming library or a system to store user-preferences??? ("GStreamer is a library that allows the construction of graphs of media-handling components, ranging from simple Ogg/Vorbis playback to complex audio"), ("GConf is a system for storing application preferences. It is intended for user preferences"). Also nothing of such new dependencies can be found in the ChangeLog (for 1.9.3, the ''oldest'' version that does not run properly). I hope one can sort this at the wxruby end. Until then I will have to use 1.9.2, or try the Java libaries (SWT orSwing) via Jruby.> > Cause the question with all these dependencies becomes: how can one really ship a portable application????? > > Thanks for any suggestions, > > rob >
Alex Fenton
2008-Jan-31 07:17 UTC
[wxruby-users] libgstreamer, slackware => libgconf.......???
rvnues at tesco.net wrote:> I dunno whether I am the only sole on linux planet wihout gconf or libgstreamer....You''re certainly not the only one. It''s not installed by default on Ubuntu, although straightforward with the package manager.> by accidentally stumbling on your discussion about modularisation on http://rubyforge.org/pipermail/wxruby-development/2007-June/000790.html , the ideas in here might provide a long-term solution to the problems I encountered. >I got a proof of concept working last night making one trivial class (ToggleButton) a separately loaded compiled feature. It''s definitely do-able, but would require a substantial restructure which I''m not sure we''re up for doing right now.> Mario Steele wrote: > >> As for portability, I will talk with alex, to see if we can possibly put up a specialized version of wxruby for linux, that does not have these dependencies, as to reduce dependencies that are not needed.I think this is a real concern. On the one hand, we want a consistent set of features across the binaries for different platforms. One the other, we want easy installation everywhere. It might be worth looking again at wxruby-lite as an interim which would be smaller and have no external dependencies anywhere. alex
rvnues at tesco.net
2008-Jan-31 23:12 UTC
[wxruby-users] libgstreamer, slackware => libgconf.......???
Hi Mario, I tried to persevere a bit, i.e. tried to compile gconf .... Slackware does support a couple of libraries linked to the gtk/gnome-world but not officially: I found install scripts for GCconf and Orbit2 on Slackbuilds.org but after having these bits in my system I ran (with irb: require ''rubygems'' => ok; require ''wx'' => error) into lacking dependency libgstinterfaces-0.10.... which I hope is part of the gst-plugins-base but I could not get that one compiled without liboil...... all done now... o.k. last test before I walk my dog: cd /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86-linux/samples/bigdemo ruby bigdemo.rb It runs ! And of course I found something odd... using sizers and clicking on the close button of the gtk-window (thus not via a button within the wxwidgets frame) the program crashes with: (wxruby:12285): Gtk-CRITICAL **: gtk_window_realize_icon: assertion `info->icon_pixmap == NULL'' failed bigdemo.rb:438: [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i486-linux] Anyway, so far so good. Now I have to see whether with a minimal gstreamer install I can get this stuff done as well...... so required dependencies (for slackware pre12.1): ORBit2 GCconf gstreamer (libgstreamer) liboil gst-plugins-base rob