Difference between revisions of "Building on Windows"

From GridPACK
Jump to: navigation, search
(Created page with "= GridPACK on Windows = Building GridPACK on Windows is not for the faint of heart. == System Preparation == The following are available as native Windows applications and...")
 
Line 1: Line 1:
= GridPACK on Windows =
 
  
 
Building GridPACK on Windows is not for the faint of heart.  
 
Building GridPACK on Windows is not for the faint of heart.  
  
== System Preparation ==
+
= System Preparation =
  
 
The following are available as native Windows applications and can just be installed in the normal Windows way:
 
The following are available as native Windows applications and can just be installed in the normal Windows way:
 
* [https://www.visualstudio.com Visual C++] in some form.
 
* [https://www.visualstudio.com Visual C++] in some form.
** The "free" ones, Express and Community, should work.
+
** The "free" ones, Visual Studio Express and Community, should work.
* [https://www.microsoft.com/en-us/download/details.aspx?id=8279 Windows SDK] appropriate to the OS.
+
* [https://www.microsoft.com/en-us/download/details.aspx?id=8279 Windows SDK] <br/> Usually, this is just installed with Visual Studio
* [https://cmake.org/download/ CMake]
+
* [https://cmake.org/download/ CMake] is required
* A minimal [https://cygwin.com/ Cygwin] installation <br/> Cygwin is required to build, and test for, PETSc.  If the system has a Cygwin installation that is being used, it would probably be best to make another installation for GridPACK installation exclusively.
+
* A minimal [https://cygwin.com/ Cygwin] installation is necessary. <br/> Cygwin is required to build, and test for, [https://www.mcs.anl.gov/petsc/ PETSc].  If the system has a Cygwin installation that is being used, it would probably be best to make another installation for GridPACK installation exclusively.
** Do not install a compiler set.
+
** Minimum required packages:
** Do not install CMake.
+
*** Base
 +
*** Python
 
** Rename <tt>/usr/bin/link.exe</tt> so it does not interfere with Windows <tt>LINK.EXE</tt>  
 
** Rename <tt>/usr/bin/link.exe</tt> so it does not interfere with Windows <tt>LINK.EXE</tt>  
** Required packages:
+
** If you want to use a Cygwin shell to build and/or debug GridPACK applications:
*** Python
+
*** Do not install a compiler set.
 +
*** Do not install CMake.
 
* [https://msdn.microsoft.com/en-us/library/windows/desktop/bb524831%28v=vs.85%29.aspx Microsoft MPI] <br/> This appears to be the only modern implementation available for Windows.  In the past, the OpenMPI and MPICH implementation were available for Windows, but no more.
 
* [https://msdn.microsoft.com/en-us/library/windows/desktop/bb524831%28v=vs.85%29.aspx Microsoft MPI] <br/> This appears to be the only modern implementation available for Windows.  In the past, the OpenMPI and MPICH implementation were available for Windows, but no more.
 +
* (optional) [https://www.microsoft.com/en-us/download/details.aspx?id=48215 MS-MPI Debugger Extension] is useful for debugging problem with parallel programs.

Revision as of 22:07, 29 September 2016

Building GridPACK on Windows is not for the faint of heart.

System Preparation

The following are available as native Windows applications and can just be installed in the normal Windows way:

  • Visual C++ in some form.
    • The "free" ones, Visual Studio Express and Community, should work.
  • Windows SDK
    Usually, this is just installed with Visual Studio
  • CMake is required
  • A minimal Cygwin installation is necessary.
    Cygwin is required to build, and test for, PETSc. If the system has a Cygwin installation that is being used, it would probably be best to make another installation for GridPACK installation exclusively.
    • Minimum required packages:
      • Base
      • Python
    • Rename /usr/bin/link.exe so it does not interfere with Windows LINK.EXE
    • If you want to use a Cygwin shell to build and/or debug GridPACK applications:
      • Do not install a compiler set.
      • Do not install CMake.
  • Microsoft MPI
    This appears to be the only modern implementation available for Windows. In the past, the OpenMPI and MPICH implementation were available for Windows, but no more.
  • (optional) MS-MPI Debugger Extension is useful for debugging problem with parallel programs.