Difference between revisions of "GENIE WindowsCompilation"

From SourceWiki
Jump to navigation Jump to search
Line 27: Line 27:
 
| Python
 
| Python
 
| 2.3.3+
 
| 2.3.3+
| Available in CygWin. Must be installed spearately for MinGW.
+
| Available in CygWin. Must be installed separately for MinGW.
 
|-
 
|-
 
| rowspan="5"| Native Microsoft
 
| rowspan="5"| Native Microsoft
Line 67: Line 67:
 
|  
 
|  
 
|}
 
|}
 +
 +
===Installing a Linux Emulator===
 +
In order to execute the GENIE build process on a Windows platform it is necessary to install a Linux emulator that can process the GNU make files. There are two popular Linux emulation tools for Windows; Cygwin and MinGW. Cygwin provides a comprehensive Linux emulation layer for Windows and can be used to build, execute and manage GENIE. MinGW (Minimalist GNU for Windows) provides a limited set of tools that are sufficient to build GENIE but cannot be used to configure the model for execution. We therefore recommend the Cygwin route but provide details of MinGW for completeness.
 +
 +
====Cygwin installation====
 +
 +
====MinGW installation====
 +
MinGW [http://www.mingw.org/ http://www.mingw.org/] provides a build environment capable to generating Windows executables that do not rely on 3rd party dlls.
  
 
===Building NetCDF===
 
===Building NetCDF===
 +
 +
====Native Microsoft Compilers====
 +
 +
====GNU Compilers====
  
 
===Local Setup===
 
===Local Setup===

Revision as of 14:24, 17 March 2008

Building GENIE on Windows Platforms

The GENIE makefiles have been modified to enable a command line compilation of the framework under Windows using Linux emulation software.

Prerequisites

The build system is known to work with the following software:

Tool Software Versions Notes
Linux emulation CygWin 1.5.12-1  
MinGW (MSYS) 1.0.10 Build only. There is no bash shell available so genie_example.job cannot be executed.
Third party libraries NetCDF 3.5.0, 3.6.0, 3.6.1, 3.6.2 Pre-built dll from UCAR can be used with the native microsoft compilers. We recommend building the NetCDF library locally.
Python 2.3.3+ Available in CygWin. Must be installed separately for MinGW.
Native Microsoft Fortran Compiler Compaq Visual Fortran 6.6C  
Intel Visual Fortran 9.1, 10.0, 10.1  
C/C++ Compiler / Linker Microsoft Visual Studio .NET 2003 7.1.3088  
Microsoft Platform SDK for Server 2003 R2  
Microsoft Visual Studio 2005 8.0.50727.762  
GNU Compilers Fortran Compiler GNU g95 0.91  
C/C++ Compiler / Linker GNU gcc 4.0.3  
GNU ld 2.16.91  

Installing a Linux Emulator

In order to execute the GENIE build process on a Windows platform it is necessary to install a Linux emulator that can process the GNU make files. There are two popular Linux emulation tools for Windows; Cygwin and MinGW. Cygwin provides a comprehensive Linux emulation layer for Windows and can be used to build, execute and manage GENIE. MinGW (Minimalist GNU for Windows) provides a limited set of tools that are sufficient to build GENIE but cannot be used to configure the model for execution. We therefore recommend the Cygwin route but provide details of MinGW for completeness.

Cygwin installation

MinGW installation

MinGW http://www.mingw.org/ provides a build environment capable to generating Windows executables that do not rely on 3rd party dlls.

Building NetCDF

Native Microsoft Compilers

GNU Compilers

Local Setup