Build GNU MCSim models on Windows.
- Rtools (version 3.5, 4.0, or 4.2; installed in default location)
-
Download this repo and unzip to
Documents(My Documentson older Windows systems). -
Rename the directory (remove the
-mastersuffix).
Follow these steps to test the build environment using the butadiene example model provided:
-
Start a command prompt and change directory to
Documents\MCSimViaRtools. -
Execute the build batch file:
C:\Users\...\Documents\MCSimViaRtools>model2exe.bat
- Test the resulting executable:
C:\Users\...\Documents\MCSimViaRtools>.\out\butadiene.exe .\target\butadiene.in .\out\butadiene.out
Either use the target directory:
-
Drop a
.modelfile into thetargetdirectory. -
Run
model2exe.bat.
or specify your .model file as an argument to model2exe.bat:
model2exe.bat <path to .model file>
In the former case, the resulting executable will be created in the out folder. In the latter case, the resulting executable will be created in the same directory as the .model file.