zholos / qml

math library for kdb+
http://althenia.net/qml
Other
65 stars 33 forks source link

Compiling on Windows using MSYS / gfortran #4

Closed lcota closed 9 years ago

lcota commented 9 years ago

gfortran does not pass the compile checks - how do you build this on windows?

image

zholos commented 9 years ago

You can build it with Cygwin tools and the MinGW compilers. Install Cygwin and the packages listed on the wiki page: Compiling on Windows.

I'm looking into using MSYS tools.

lcota commented 9 years ago

Thanks - I'll have a go with mingw64 when I can set that up. On Wed, Dec 10, 2014 at 10:38 AM Andrey Zholos notifications@github.com wrote:

You can build it with Cygwin tools and the MinGW compilers. Install Cygwin and the packages listed on the wiki page: Compiling on Windows http://../wiki/Compiling-on-Windows.

I'm looking into using MSYS tools.

— Reply to this email directly or view it on GitHub https://github.com/zholos/qml/issues/4#issuecomment-66470004.

zholos commented 9 years ago

Looks like the original issue was that gfortran was not installed at all. I made the messages clearer in this situation, but if something similar happens you can check conftest.out and conftest.err for details.

I made some changes to the qml build system to support MSYS and added relevant instructions to the wiki page.

The end result should be the same regardless of whether Cygwin or MSYS is used to run configure and make. The binaries are compiled with MinGW-w64 in either case.

lcota commented 9 years ago

Yes, that's correct - i had my path setup incorrectly. Now the error message is different.

image

zholos commented 9 years ago

Don't forget to update qml to 0.5.3 and you need to install MinGW-w64 (see bottom of Compiling on Windows) and set up the path to it. The detected compilers should be called i686-w64-mingw32-gcc and i686-w64-mingw32-gfortran.

lcota commented 9 years ago

thanks - will give this a shot and report back.