[libxml-devel] Release and Windows Gem

Charlie Savage cfis at savagexi.com
Fri Feb 8 14:51:24 EST 2008



> Rather then a one-off script, care to help me automate that
> functionality in Reap? 

Took a quick look, does it have any support for building c extensions?

The problem you'll run into is that you can't use extconf.rb on Windows 
with MinGW because all the CONFIG settings are based on VC++ and not on 
MingW.  Ruby needs something like Python's DistUtils, which support for 
using various different compiles.

So, you have to roll your own solution (I don't know of any good one 
sadly).  My approach with ruby-prof is to have a rakefile that I run 
from a msys prompt that invokes gcc.  You could of course just use Make 
instead.

I've just reached an early beta status with
> this project, and these two features are on the upcoming todo list:
> binary platform packages and mingw Windows cross compile.

I wouldn't bother with the cross-compile (if you mean build Windows 
libraries on Linux or some other OS). First you'll need access to the 
VC++ ruby libraries.  Second I can't see how that will work anymore in 
the latest version of Ruby Gems (which seems to require building on the 
same OS and what you deploy to, at least for Windows).

Long story short - you have to roll a custom solution for MinGw and 
create a separate GEM for win32.   I'd love if there is a better way, 
but I've never found one.

Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://rubyforge.org/pipermail/libxml-devel/attachments/20080208/e5ac1223/attachment-0001.bin 


More information about the libxml-devel mailing list