Skip to content

Compiling OpenFOAM

See either:

For information on running OpenFOAM, see: OpenFOAM

OpenFOAM.org compilation docs: https://openfoam.org/download/source/

Generally Useful Tips

Qt

  • build it separately, and install in the prefix rather than relying on OpenFOAM's build scripts
  • if a make fails, just delete the entire Qt source directory and start over

Other "third party" packages

  • unlike Qt, cannot be installed in the prefix
    • specifying "system" will look for packages in /usr ...
  • so, must do the build using OpenFOAM build scripts, with source tarballs expanded into ThirdParty-6