2.4.3.1. Building OpenFAST on Windows with Visual Studio
These instructions are specifically for the standalone Visual Studio project at openfast/vs-build. Separate CMake documentation is provided for Windows users at Section 2.4.7.
2.4.3.1.1. Prerequisites
A version of Visual Studio (VS).
NOTE: not all VS Studio versions are supported by the Intel compilers. In general, the Fortran compiler must be newer than Visual Studio. A list of Intel Fortran compatible VS versions and specific installation notes are found here.
Currently VS 2019 Community Edition, VS 2022 Professional, and VS 2022 Community Edition have been tested with OpenFAST. Download VS 2022 Community here.
When installing Visual Studio, select the
Desktop development with C++underWorkloads.Note: The included C/C++ project files for MAP++ and the Registry are compatible with VS 2019, but will upgrade seemlessly to a newer version of VS.
Intel Fortran Compiler
We recommend compiling with the IFX compiler from Intel. This is included in the
Intel Fortran Essentialsinstallation package. Currently tested with version 2025.3You can download
Intel Fortran Essentialshere. Note: do not install theoneAPI HPC ToolkitOnly install Intel Fortran after you have completed your Visual Studio installation. Note that Intel Fortran must be compatible with your version of Visual Studio. See here for compatibility tables.
Git for Windows
Download and install git for Windows.
Python 3.x for Windows (for regression/unit testing)
2.4.3.1.2. Compiling OpenFAST
Open
A command prompt, orgit bashshell from theStartmenuCreate a directory where you will clone OpenFAST repository (change
codeto your preferred name)mkdir code cd code
Clone the OpenFAST repository
git clone https://github.com/openfast/openfast.git
This will create a directory called openfast within the code
directory.
Using Windows Explorer, navigate to the directory
openfast\vs-build\FASTand double-click on theFAST.slnVisual Studio solution file. This will open Visual Studio with the FAST solution and its associated projects.
NOTE: If you are using Visual Studio 2015 or newer, you will be asked to upgrade
both the Fast_Registry.vcxproj and the MAP_dll.vcxproj files to a newer
format. Go ahead and accept the upgrade on those files.
Select the desired Solution Configuration, such as
Release, and the desired Solution Platform, such asx64by using the drop down boxes located below the menubar.Build the solution using the
Build->Build Solutionmenu option.If the solution built without errors, the executable will be located under the
openfast\build\binfolder.