I am having a huge amount of problems building this on windows.
I admit that I am not following the directions on the website
because I would like to have something newer than 2.10.
I got the 2.22 bundle from gtk.org. Maybe it’s not supported?
Anyway, my first problem was that I needed to set the
PKG_CONFIG_PATH environment variable so that ruby-gnome2
could find my GTK installation. It took me a long time to
figure that out, so it would be nice to have a note in the
documentation.
But then I ran into the problem that the mkmf-gnome2.rb
script doesn’t set the CFLAGS from pkg-config. I’m not
sure why because Kou’s pkg-config script makes it quite
easy.
But then finally, some GTK variables can’t be found.
It seems like 2.22 isn’t supported yet. But I can’t find
anything on the website saying what version is supported.
I don’t believe it is 2.10 because that is more than 2
years old.
I would really, really like to build this so I can finally
release my application on windows. Any help is
appreciated.
I am having a huge amount of problems building this on windows.
I admit that I am not following the directions on the website
because I would like to have something newer than 2.10.
I got the 2.22 bundle from gtk.org. Maybe it’s not supported?
GTK+ 2.22 is supported.
Anyway, my first problem was that I needed to set the
PKG_CONFIG_PATH environment variable so that ruby-gnome2
could find my GTK installation. It took me a long time to
figure that out, so it would be nice to have a note in the
documentation.
But then I ran into the problem that the mkmf-gnome2.rb
script doesn’t set the CFLAGS from pkg-config. I’m not
sure why because Kou’s pkg-config script makes it quite
easy.
Did you and pkg-config.rb find GTK+ *.pc?
But then finally, some GTK variables can’t be found.
It seems like 2.22 isn’t supported yet. But I can’t find
anything on the website saying what version is supported.
I don’t believe it is 2.10 because that is more than 2
years old.
We can install Ruby/GTK2 binary with GTK+ 2.22 binaries by
gem:
gem install gtk2
The gem was built with MinGW on my Debian GNU/Linux. (It’s
cross compile.)
OK. I will try again tomorrow. I am using mingw right now.
If I can get it to work I will write some instructions.
But then I ran into the problem that the mkmf-gnome2.rb
script doesn’t set the CFLAGS from pkg-config. I’m not
sure why because Kou’s pkg-config script makes it quite
easy.
Did you and pkg-config.rb find GTK+ *.pc?
Yes. Once I set the PKG_CONFIG_PATH there was no
problem. But the mkmf-gnome2.rb script doesn’t seem
to use the config information. I added some code like:
It is possible I misunderstood something and it is handled
somewhere else. But I couldn’t get it to work without doing
this.
We can install Ruby/GTK2 binary with GTK+ 2.22 binaries by
gem:
gem install gtk2
The gem was built with MinGW on my Debian GNU/Linux. (It’s
cross compile.)
Ahh. That’s VERY good I didn’t realize it. I will use that.
But I will try to get everything built and then update the
documentation.
My first language is English, so it’s will be easy for me once I
understand
what to do.