This PR is a partial solution to building feff85exafs on Windows.
The bulk of this PR is modifications to the SConstruct files to make the logic more properly cross-platform. In the current state, everything still works on linux.
Compiling the fortran, including json-fortran, works and yields executables which run. Using the onepath and feffpath dlls, the programs in wrappers\fortran and wrappers\C compile, run to completion, and appear to generate the correct output. Yay!
I am completely stumped about how to compile the python wrapper I made using SWIG. I have no idea how to convince python to use gcc. I am giving up on that for the moment. Clearly the best thing to do would be to retire my wrapper in favor of Matt's, which uses ctypes rather than swig.
I also have not yet attempted to run the unit tests on Windows.
This PR is a partial solution to building feff85exafs on Windows.
The bulk of this PR is modifications to the SConstruct files to make the logic more properly cross-platform. In the current state, everything still works on linux.
Compiling the fortran, including json-fortran, works and yields executables which run. Using the
onepath
andfeffpath
dlls, the programs inwrappers\fortran
andwrappers\C
compile, run to completion, and appear to generate the correct output. Yay!Doing all that required using gfortran 4.9, which I got from http://sourceforge.net/projects/mingwbuilds/
I am completely stumped about how to compile the python wrapper I made using SWIG. I have no idea how to convince python to use gcc. I am giving up on that for the moment. Clearly the best thing to do would be to retire my wrapper in favor of Matt's, which uses ctypes rather than swig.
I also have not yet attempted to run the unit tests on Windows.