Here are a couple of problems that I’ve found with the recent Windows
gems (1.0.0) that occur if you want to compile against the Gtk/GLib
system underneath it.
Pkg-config is missing
You can download it from http://www.gtk.org/download/win32.php and
place it under glib2-1.0.0-x86-mingw32/vendor/local/bin and use it,
but it should be present already.
fontconfig.pc and freetype.pc are missing
These files were present in gtk2 0.90.5, but are now not distributed
anymore. Since libfontconfig.dll and freetype6.dll are included under
cairo 1.10.0, the .pc files should really go there.
The value of prefix in the .pc files are wrong
I don’t know how to fix this. (Well, I know how to fix it for myself,
but not in the distribution.)
In [email protected]
“[ruby-gnome2-devel-en] Problems with the Windows gems” on Tue, 6 Sep
2011 14:51:05 +0200,
Nikolai W. [email protected] wrote:
Here are a couple of problems that Ive found with the recent Windows
gems (1.0.0) that occur if you want to compile against the Gtk/GLib
system underneath it.
Does it mean that you want to build GTK+ (not ruby-gtk2) on
Windows with binaries and development files bundled with
ruby-gtk2 gems?
Ruby-GNOME2 related gems aren’t created for it. It is
created just for using not building.
Pkg-config is missing
You can download it from http://www.gtk.org/download/win32.php and
place it under glib2-1.0.0-x86-mingw32/vendor/local/bin and use it,
but it should be present already.
We should add ‘pkg-config’ command to pkg-config gem.
pkg-config gem just depends on Ruby. It’s portable for
Rubyist. (But it will not be portable for no Rubyist. :-p)
fontconfig.pc and freetype.pc are missing
These files were present in gtk2 0.90.5, but are now not distributed
anymore. Since libfontconfig.dll and freetype6.dll are included under
cairo 1.10.0, the .pc files should really go there.
They will be included in the next cairo gem release but the
next release isn’t planed yet…
The value of prefix in the .pc files are wrong
I dont know how to fix this. (Well, I know how to fix it for myself,
but not in the distribution.)
You can use --define-variable option in pkg-config command:
pkg-config --define-variable prefix=C:\tmp --cflags --libs gtk±2.0
You can use --override-variables option in pkg-config gem:
ruby extconf.rb --with-override-variables prefix=C:\tmp
Thanks,
kou
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.