Issue installing gtk2 on windows

Hello,

Since the last version of gtk (gtk2 1.2.1 nd gtk3),
we have a lot of trouble for installing/running
gtk application under windows.

Here a exemple, forcing gtk installation whith version 1.1.9:

gem install gtk2 -v 1.1.9
gem install gtksourceview2 -v 1.1.3

C:\Ruby193\lib\ruby\gems\1.9.1\gems>ls -1
Installing RDoc documentation for gtksourceview2-1.1.3-x86-mingw32…

C:\Ruby193\lib\ruby\gems\1.9.1\gems>ls -1
Ruiby-0.54.0
ang-9.13.0
atk-1.2.1-x86-mingw32
cairo-1.12.3-x86-mingw32
gdk_pixbuf2-1.2.1-x86-mingw32
glib2-1.2.1-x86-mingw32
gosu-0.7.45-x86-mingw32
gtk2-1.1.9-x86-mingw32
gtksourceview2-1.1.3-x86-mingw32
pango-1.2.1-x86-mingw32
pkg-config-1.1.4
rake-0.9.2.2
rdoc-3.9.5

It-s seem that gtk2 old version is dependant on
new version of sub-library : glib2 1.2.1 …

As gtk3 is no compatible with gtk2 api, and gtk2 1.2.1
seem unstable (many scrach), we do not know how to install
stable windows version of gtk2…

Stack dump :

C:/Ruby193/lib/ruby/gems/1.9.1/gems/Ruiby-0.54.0/lib/ruiby.rb:94: [BUG]
Segmentation fault
ruby 1.9.3p385 (2013-02-06) [i386-mingw32]

– Control frame information

c:0005 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC :main
c:0004 p:0147 s:0010 b:0010 l:001b90 d:001b90 METHOD
C:/Ruby193/lib/ruby/gems/1.9.1/gems/Ruiby-0.54
c:0003 p:0061 s:0006 b:0006 l:000024 d:00259c EVAL table.rb:59
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000024 d:000024 TOP

– Ruby level backtrace information

table.rb:59:in <main>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/Ruiby-0.54.0/lib/ruiby.rb:94:instart’
C:/Ruby193/lib/ruby/gems/1.9.1/gems/Ruiby-0.54.0/lib/ruiby.rb:94:in
`main’

– C level backtrace information

C:\Windows\SysWOW64\ntdll.dll(ZwWaitForSingleObject+0x15) [0x7775f8b1]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObjectEx+0x43)
[0x756c1194]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObject+0x12) [0x756c1148]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_vm_bugreport+0xf9) [0x62e5c69d]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_name_err_mesg_new+0x17a)
[0x62d3a856]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_bug+0x2f) [0x62d3b533]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_check_safe_str+0x1a4) [0x62dee738]
[0x004011e6]
C:\Windows\syswow64\kernel32.dll(GetProfileStringW+0x12aa3) [0x7570003f]
C:\Windows\SysWOW64\ntdll.dll(RtlKnownExceptionFilter+0xb7) [0x777b74df]

– Other runtime information

  • Loaded script: table.rb

  • Loaded features:

    0 enumerator.so
    1 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/encdb.so
    2 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/iso_8859_1.so
    3 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/trans/transdb.so
    4 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    . . . . .

This works :
(ruiby is there for testing)

call gem uninstall glib2 -qI
call gem uninstall atk -qI
call gem uninstall gdk_pixbuf2 -qI
call gem uninstall cairo -qI
call gem uninstall pango -qI
call gem uninstall gtk2 -qI
call gem uninstall gtksourceview2 -qI
call gem uninstall Ruiby -qI

call gem install glib2 -v 1.2.0 --no-ri --no-rdoc
call gem install atk -v 1.2.0 --no-ri --no-rdoc
call gem install gdk_pixbuf2 -v 1.2.0 --no-ri --no-rdoc
call gem install cairo -v 1.10.2 --no-ri --no-rdoc
call gem install pango -v 1.2.0 --no-ri --no-rdoc

echo Install gtk2…
call gem install gtk2 -v 1.1.5 --no-ri --no-rdoc
echo Install SousrceView3…
call gem install gtksourceview2 -v 1.1.5 --no-ri --no-rdoc
echo Install Ruiby…
call gem install Ruiby -v 0.55.0 --no-ri --no-rdoc

ruiby_demo

So, I am a poor lomesome windows cowboy…