I need a pointer on how to build jruby.exe from source using MinGW on
Windows 7 please.
The README says make should work if MinGW is installed. I installed
MinGW succesfully today using mingw-get-setup.exe and can compile sample
programs fine; g++ (GCC) is 4.8.1. However, the following two build
techniques were not successful:
Option 1: Using a MinGW msys.bat environment “/” lives in C:\MinGW, and
so if I copy
~\jruby-1.7.10 into my $HOME and run make from
~\jruby-launcher-1.0.19-java, the compilation fails with an error on an
include in winbase.h "error: previous declaration ‘BOOL
DllMain(HINSTANCE, DWORD, LPVOID)’ here… on DllMain.
Option 2: If I put C:\MINGW\BIN in my $PATH and run it from a Windows
cmd prompt in the
directory there is no make recognized of course, but if I do a “g++
jruby.cpp -o jruby.exe” then the compiler can’t find jni.h (which is in
my C:\Program Files (x86)\Java\jdk1.7.0_51\include directory.
Any pointers on how to accomplish this compilation from source are