MinGW means Minimalist GNU for Windows. It is a minimalist development environment for native Microsoft Windows applications (see https://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:
Downloads
tab at the top of the page or go directly to https://osdn.net/projects/mingw/releases/.Install
button.Continue
button.Continue
button.Installation
at the top of the window, then click on Apply Changes
and at least click on Apply
button on the opening window.Close
button 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 panel
then on Sytem and security
and at least on System
.Advanced system parameters
.Environment variables
button.Modify
button. 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 OK
button.OK
button to close the Environment variable window and again on OK
button to close the System properties
window.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:
cmd
in the Search programs and files section).gfortran genotype_generator.f90 -o genotype_generator.exe