Installation/Windows/Outdated/Cross Compiling OpenFOAM 1.7 in Linux For Windows with MinGW
Under construction...
The parent page of this page is Tip Cross Compiling OpenFOAM in Linux For Windows with MinGW - please visit it for more information.
Contents
- 1 Introduction
- 2 Get OpenFOAM packages
- 3 Things needed for properly cross-compiling OpenFOAM 1.6
- 4 Using a specific gcc version for building the wmake binaries (Optional)
- 5 Applying patches
- 6 Getting Windows version of MPICH2 into the ThirdParty-1.6 folder in Linux
- 7 Tweaking environment options
- 8 Build the cross compiler
- 9 Cross-Compile OpenFOAM in Linux for Windows
- 10 Copying the files to your Windows installation
- 11 Creating a compact help file for the code documentation
- 12 Notes on what doesn't work and why
- 12.1 motorBike case and foamToVTK in Windows
- 12.2 libscotch is limited in Windows
- 12.3 Symbolic links in the tutorials
- 12.4 Open MPI in Windows
- 12.5 Cross-compiled version mingw-w64 takes longer to start applications
- 12.6 Some tutorials don't work in Windows
- 12.7 Tutorial scripts don't work in Windows
- 12.8 DOS_Mode.bat won't allow choosing which version to use
- 13 Notes on added functionalities with these patches
- 13.1 chtMultiRegionFoam and chtMultiRegionSimpleFoam slightly different in Windows
- 13.2 foamToVTK binary VTK files now functional in Windows
- 13.3 Building ccm26ToFoam
- 13.4 Keeping track of symbolic links in tutorials
- 13.5 Changes in settings.sh
- 13.6 Building locally with multiple cores
- 13.7 Building mingw cross-compilers
- 13.8 Getting MPICH2 automatically in Linux
- 13.9 Compiling HTML files into CHM and QCH/QHC
- 13.10 Creating new patches
- 13.11 Profiling OpenFOAM applications with mingw cross-compiled version
- 13.12 Backing up development folders
- 13.13 Smart library loading
- 14 History
1 Introduction
This is an exhaustive step by step guide on how to fully cross-compile OpenFOAM 1.7.0 in Linux for Windows, for both 32 and 64 bits architectures (from and to), using the patches available here. NOTE: for cross-compiling in Cygwin for Windows, see the section Using Cygwin for cross-compiling OpenFOAM.
These patches are a continuation of the ones for OpenFOAM 1.6.0 (see Cross Compiling OpenFOAM 1.6 in Linux For Windows with MinGW). These are now based on Symscape's "v11" patch for OpenFOAM 1.6.x available here. For a brief description on the differences between the patches on this page and the ones on Symscape's page, see the Introduction chapter page on the parent page.
With this guide and available patches, you should be able to cross-compile the whole and complete OpenFOAM libraries and applications, using MPICH2 instead of Open MPI for parallel computing. Currently you can cross-compile using mingw-w64 for both 32 and 64 bit versions. These enable you to build OpenFOAM 1.7.0 for Windows 32 and 64 bit versions, from Linux 32 and 64bit architectures. See the chapter Notes on what doesn't work and why, for information on things that don't work properly. NOTE: The old build scripts from the 1.6 version are still available on these patches, although not tested yet, and should also allow you to build with mingw32. For more information about them, see the 1.6 patch version page, chapter Building the cross-compiler.
Versions these patches apply to:
Other versions and common information to all MinGW cross-compiled versions is available in the page Tip Cross Compiling OpenFOAM in Linux For Windows with MinGW.
Support for this page is available at OpenFOAM's forum here.
2 Get OpenFOAM packages
TODO...
3 Things needed for properly cross-compiling OpenFOAM 1.6
TODO...
4 Using a specific gcc version for building the wmake binaries (Optional)
TODO...
5 Applying patches
TODO...
6 Getting Windows version of MPICH2 into the ThirdParty-1.6 folder in Linux
TODO...
7 Tweaking environment options
TODO...
8 Build the cross compiler
TODO...
9 Cross-Compile OpenFOAM in Linux for Windows
TODO... NOTE: don't forget about the Allwmake script now available at the tutorials folder...
10 Copying the files to your Windows installation
TODO...
11 Creating a compact help file for the code documentation
TODO...
11.1 Creating a Compiled HTML (CHM) file for the code documentation
11.2 Creating a Qt QCH/QHC files for the code documentation
12 Notes on what doesn't work and why
TODO...
12.1 motorBike case and foamToVTK in Windows
12.2 libscotch is limited in Windows
12.3 Symbolic links in the tutorials
12.4 Open MPI in Windows
12.5 Cross-compiled version mingw-w64 takes longer to start applications
12.6 Some tutorials don't work in Windows
12.7 Tutorial scripts don't work in Windows
12.8 DOS_Mode.bat won't allow choosing which version to use
13 Notes on added functionalities with these patches
13.1 chtMultiRegionFoam and chtMultiRegionSimpleFoam slightly different in Windows
13.2 foamToVTK binary VTK files now functional in Windows
13.3 Building ccm26ToFoam
13.4 Keeping track of symbolic links in tutorials
13.5 Changes in settings.sh
13.6 Building locally with multiple cores
13.7 Building mingw cross-compilers
13.8 Getting MPICH2 automatically in Linux
13.9 Compiling HTML files into CHM and QCH/QHC
13.10 Creating new patches
13.11 Profiling OpenFOAM applications with mingw cross-compiled version
13.12 Backing up development folders
13.13 Smart library loading
14 History
Wyldckat 15:48, 22 July 2010 (UTC) - Page created... content will be inserted periodically over the next hours...