MinGW means Minimalist GNU for Windows. It is a minimalist development environment for native Microsoft Windows applications (see http://www.mingw.org/).
MinGW is used in Capsis to generate executables from Fortran, C, C++, … source files to be run on Windows operating systems. These executables are used in some Capsis modules. It is for example the case with the genotype_generator.f90 Fortran source file which corresponding executable is called by the Luberon2 module.
MinGW can be installed by using the following steps:
Downloadstab at the top of the page or go directly to https://osdn.net/projects/mingw/releases/.
Installationat the top of the window, then click on
Apply Changesand at least click on
Applybutton on the opening window.
Closebutton and close the MinGW Installation Manager window.
Remark: if some dll files are not found during packages download process, they can be found here : https://sourceforge.net/projects/mingw/files/OldFiles/ contained in .tar.xz files that can be uncompressed. The missing dll files have to be copied in the bin sub directory of the installed MinGW directory.
In order the system knows where to find the executables contained in the installed MinGW directory, you have to modify the Path system environment variable. To do that (example on Windows 7):
Configuration panelthen on
Sytem and securityand at least on
Advanced system parameters.
Modifybutton. Add at the beginning of the Path variable the path to the bin sub directory of the installed MinGW directory (for example C:\MinGW\bin) ended with a “;” (; is the separator of the different paths stored in the Path environment variable) and click on the
OKbutton to close the Environment variable window and again on
OKbutton to close the
Instructions for compiling the genotype_generator.f90 source file (Fortran 90 code called from Luberon2 module) using the gfortran executable stored in the bin sub directory from the MinGW installed directory (example: C:\MinGW\bin) are:
cmdin the Search programs and files section).
gfortran genotype_generator.f90 -o genotype_generator.exe