Forum: Ruby-Gnome 2 Which versions of GTK, Glib, ATK etc to use?

4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2012-12-23 07:28
Hi guys,

With so many different versions of GTK, GLIB Pango etc... all about,
could anyone tell me which versions are supported and which not?

Or where to look for this information?

If this would take you too much time, perhaps you could tell me which
versions YOU use and which work?

I have not been using ruby-gnome since perhaps 2 years, but I really
want a GUI again with ruby, and ruby-gnome used to be the best
GUI by far (ruby-qt is dead, FXRUBY is dead, ruby-tk is ugly, and
shoes is no longer the same after _why left)

And, how do you actually install ruby-gnome? Do you use the gem
version, or the official tarball?
0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 Eric C. (eric_c)
on 2012-12-24 06:55
Hi:

I think if you install the bindings, all the gtk stuff installs
automatically:

gem install gtk2
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2012-12-28 06:54
When doing the above command you said:

gcc -I.
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I. -I/Programs/Ruby/1.8.7p370/lib/ruby/1.8/i686-linux -I.
-I/Programs/Ruby/1.8.7p370/lib/ruby/site_ruby/1.8/i686-linux
-I/Programs/Ruby/1.8.7p370/lib/ruby/vendor_ruby/1.8/i686-linux
-DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE
-DHAVE_NODE_ATTRASGN -DHAVE_GDK_PIXBUF_GDK_PIXBUF_IO_H
-D_FILE_OFFSET_BITS=64  -fPIC -fomit-frame-pointer -pipe -fPIC -pthread
-fno-strict-overflow -O1  -fomit-frame-pointer -pipe -fPIC -pthread
-fno-strict-overflow -O1 -Wall -Waggregate-return -Wcast-align -Wextra
-Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn
-Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked
-Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum
-Wundef -Wunsafe-loop-optimizations -Wwrite-strings -pthread
-I/Programs/Gdkpixbuf/2.26.5/include/gdk-pixbuf-2.0
-I/Programs/Glib/2.35.3/include/glib-2.0
-I/Programs/Glib/2.35.3/lib/glib-2.0/include
-I/Programs/Libpng/1.5.12/include/libpng15  -c rbgdk-pixbufanimation.c
gcc -I.
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2
-I. -I/Programs/Ruby/1.8.7p370/lib/ruby/1.8/i686-linux -I.
-I/Programs/Ruby/1.8.7p370/lib/ruby/site_ruby/1.8/i686-linux
-I/Programs/Ruby/1.8.7p370/lib/ruby/vendor_ruby/1.8/i686-linux
-DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE
-DHAVE_NODE_ATTRASGN -DHAVE_GDK_PIXBUF_GDK_PIXBUF_IO_H
-D_FILE_OFFSET_BITS=64  -fPIC -fomit-frame-pointer -pipe -fPIC -pthread
-fno-strict-overflow -O1  -fomit-frame-pointer -pipe -fPIC -pthread
-fno-strict-overflow -O1 -Wall -Waggregate-return -Wcast-align -Wextra
-Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn
-Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked
-Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum
-Wundef -Wunsafe-loop-optimizations -Wwrite-strings -pthread
-I/Programs/Gdkpixbuf/2.26.5/include/gdk-pixbuf-2.0
-I/Programs/Glib/2.35.3/include/glib-2.0
-I/Programs/Glib/2.35.3/lib/glib-2.0/include
-I/Programs/Libpng/1.5.12/include/libpng15  -c rbgdk-pixbuf.c
rbgdk-pixbuf.c: In function 'Init_gdk_pixbuf2':
rbgdk-pixbuf.c:731:1: error: 'rg_set_option' undeclared (first use in
this function)
rbgdk-pixbuf.c:731:1: note: each undeclared identifier is reported only
once for each function it appears in
rbgdk-pixbuf.c: At top level:
rbgdk-pixbuf.c:628:1: warning: 'rb_set_option' defined but not used
[-Wunused-function]
make: *** [rbgdk-pixbuf.o] Error 1


Gem files will remain installed in
/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/gdk_pixbuf2-1.1.8 for
inspection.
Results logged to
/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/gdk_pixbuf2-1.1.8/ext/gdk_pixbuf2/gem_make.out



I know, I used old Ruby version, but if I use the more recent version of
ruby, I am sure I will still get errors.

The problem is, I simply do not know what versions are reliable to use.

This has been my problem with ruby-gnome for the last 2 years by now, I
just can not get things to work reliably anymore. :\
B078cb4f4fb473c7a54d1fc36d10c70e?d=identicon&s=25 Regis d'Aubarede (raubarede)
on 2012-12-29 01:49
Here a session which install gtk2/ruby-gtk on a Mint/KDE
(ruby/gtk2 is installed via Ruiby)

> uname -a
Linux bb-VirtualBox 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08
UTC 2012 i686 i686 i686 GNU/Linux

> sudo apt-get install build-essential
> sudo aptitude install ruby1.9.1-dev
> sudo apt-get install gtksourceview
> sudo gem install gtksourceview2
> sudo gem install Ruiby
> ruiby button ~Hello~ do exit! 0 end
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.