Xeon said:
Hi,
Anybody ever compiled sqlite-ruby with MingW for Windows? Or does
anybody have a precompiled binaries for windows and willing to share?
I can't help specifically because I use the Borland 5.5 (free) compiler.
Just to clarify; you would like a VC compiled sqlite-ruby binary to go
with one of the SQLite "Precompiled Binaries For Windows" from:
http://www.hwaci.com/sw/sqlite/download.html
I think that would be very helpful to "one-click" users.
PS: Does compiling extensions with one compiler (e.g. MingW) means
that the Ruby interpreter must also be compiled with the same compiler
(i.e. can it be used with VC built Ruby binaries)? and why?
The extension-building system wasn't designed with this in mind, but it
is evolving as more people want to do this.
If you built Ruby yourself, you can expect that extensions will build
with little effort.
Using MinGW should be less of a problem than I have with Borland
because (IIUC) gnu is more compatible with VC.
If you don't mind taking risks, could you try it and let us know ?
extconf.rb is likely to recognise your build as mswin and then try
to find "nmake" (VC's "make" utility) - gnu's is "make".
I'm sure you can override this but you may need to ask someone else.
extconf.rb --with-make-prog=make ???
Try running the exconf.rb for sqlite-ruby and look over the mkmf.log .
If a Makefile was created, see if things such as directory paths look OK.
Check:
CC = ??? (compiler)
LDSHARED = ??? (linker ?)
CFLAGS = ??? (compiler options - OK for gnu ?)
blah, blah, etc.
Hope that's of help, but it's just open-forum rambling so that
others can disagree and point you in the proper direction.
Good luck,
:daz