MSYS2 can be downloaded here. The following packages must be installed:
Then, follow this steps to compile:
Download the sources, open MSYS2-Mingw-w64 terminal and enter directory FortranUtilities. Then create a build directory and enter that directory:
mkdir build
cd build
Prepare compilation files. To use default options and compiler on your system type:
cmake ..
Optionally you can select an install directory by typing:
cmake .. -DCMAKE_INSTALL_PREFIX=/installation/path/
By default, cmake will use ninja. If you want to use make type:
cmake .. -G "Unix Makefiles"
Compile typing:
ninja
or
make
Install:
ninja install
make install
Binaries for Gfortran and G++ can be downloaded here.
Download the sources, open a Windows command prompt and enter directory FortranUtilities. Then create a build directory and enter that directory:
mkdir build
cd build
Prepare compilation files. If cmake, gfortran, gcc and g++ are in your PATH, to use default options on your system type:
cmake .. -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -G "Unix Makefiles"
If any of the tools if not in your PATH, you must type the full path for it.
Optionally you can select an install directory by typing:
cmake .. -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=C:\FortranUtilities
Compile typing:
make
Install:
make install