Hello,

Thank you for your answer.
I installed MSYS and was able to run the makefile this time.
I however get a weird error which makes every lib fail to link :

c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot locate -lruby-cairo
collect2: ld returned 1 exit status

Is there some other ruby-* binding I need to find and compile (for instance, ruby-cairo) ?

Does anyone here know who built the last Windows automatic installer for ruby-gtk2 ? It could be helpful for me to see what was performed by the installer (in case someone knows where to find the source code) and I may even be able to update it to the current version (which could be helpful for my further developments as well as for others).

Thanks for your help,

best regards

Stefano Grioni

Le 29.06.2010 01:12, Mario Steele a écrit :
The best way to use it, is to use the MSYS package from MinGW, which includes a BASH system.  You will also need to set Environment variables, as well as headers and libs for GTK so that MinGW, and Ruby-GTK can find it.

hth,

Mario

On Mon, Jun 28, 2010 at 12:59 PM, niklas | brueckenschlaeger <niklas@brueckenschlaeger.de> wrote:
I don't know too much about mingw, but the code between @( and ) is
actually shell script, so maybe mingw's make tries to evaluate it in
cmd.exe? do you have some bash port, such as cygwin to try from there?

 -- niklas


On Mon, 2010-06-28 at 17:24 +0200, Stefano Grioni wrote:
> Hello,
>
> Sure thing.
> - I installed Ruby for Windows ( v 1.8.7 )
> - I installed MinGW
> - I installed  Glade3 (with GTK+) for Windows from the Glade website
> - I downloaded GTK2-Ruby v 0.19.4
> - I run the extconf.rb , which worked quite fine
> - When I try to make the project here is what I get :
>
> C:\ruby-gtk2-0.19.4>C:\MinGW\bin\mingw32-make.exe
> if was unexpected.
> mingw32-make: *** [all] Error 255
>
> Here is the all target (with the aliasesdeclarations on the top ):
>
> TOPSRCDIR = C:/ruby-gtk2-0.19.4
> SUBDIRS = glib gdkpixbuf pango atk gtk
> COMMAND = C:/Ruby/bin/ruby.exe C:/ruby-gtk2-0.19.4/exec_make.rb
> RM = rm -rf
>
> all:
>      @(                    \
>        succeeded='';                \
>        failed='';                \
>        for dir in $(SUBDIRS); do        \
>          (cd $$dir; $(MAKE) all);            \
>          if [ $$? -eq 0 ]; then        \
>            succeeded="$$succeeded $$dir";    \
>          else                \
>            failed="$$failed $$dir";        \
>          fi;                    \
>        done;                    \
>        if [ "$$succeeded" = "" ]; then    \
>          succeeded="NONE";            \
>        fi;                    \
>        if [ "$$failed" = "" ]; then        \
>          failed="NONE";            \
>        fi;                    \
>        echo;                    \
>        echo "-----";                \
>        echo "SUCCEEDED: $$succeeded";    \
>        echo "FAILED: $$failed";        \
>        echo "-----";                \
>        echo "Done.";                \
>      )
>
>
> Thanks a lot for your help!
>
> Best
>
> Stefano
>
> Le 28.06.2010 16:50, niklas | brueckenschlaeger a écrit :
> > can you give a little more details on what steps you took to try
> > compilation and why it fails?
> >
> >   -- niklas
> >
> > On Mon, 2010-06-28 at 15:58 +0200, Stefano Grioni wrote:
> >
> >> Hello,
> >>
> >> I am currently developing a little app which needs to be cross-plateform
> >> (Linux, Windows ans maybe MacOSX later). I used Glade3 and GTK Builder
> >> to design its interface on my Linux system and it works well.
> >> If I am not mistaken (please correct me if so) , the latest version of
> >> ruby2-gnome for windows is 2.0.16, which does not support GTK Builder.
> >> Is there a newer installer version?
> >> I tried to recompile it from the latest sources by the generated
> >> MakeFiles seems to have some few troubles. Is there any official written
> >> procedure for compiling them on Windows ?
> >> I am wondering if it doesn't fail because I am not compiling it using
> >> MSYS, but straight from the cmd.exe . Do you think it could come from that?
> >>
> >> Thank for your answer,
> >>
> >> Best regards.
> >>
> >> ------------------------------------------------------------------------------
> >> This SF.net email is sponsored by Sprint
> >> What will you do first with EVO, the first 4G phone?
> >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> >> _______________________________________________
> >> ruby-gnome2-devel-en mailing list
> >> ruby-gnome2-devel-en@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en
> >>
> >
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> ruby-gnome2-devel-en mailing list
> ruby-gnome2-devel-en@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
ruby-gnome2-devel-en mailing list
ruby-gnome2-devel-en@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en




--
Mario Steele
Lieutenant 3 - Geo 99
XO - STO IFT Fleet
Chief Engineer - Second Life
http://www.iftcommand.com