2.3.2. Building OpenFAST on Windows with CMake and Cygwin 64-bit¶
WARNING: This build process takes a significantly long amount of time. If GNU tools are not required, it is recommended that Windows users see one of the following sections:
- Download binaries
- CMake with Visual Studio for Windows
- Building OpenFAST on Windows with Visual Studio.
220.127.116.11. Installing prerequisites¶
Download and install Cygwin 64-bit. You will need to
Run as Administratorto complete the installation process.
Install from internet
- Choose the default install location
- Choose the default package download location
- Choose a download site
- See next step for
select packages. Alternately, you can skip this step and run
setup-x86_64.exeanytime later to select and install required software.
Select packages necessary for compiling
binarypackages and not the source option.
Categoryview, we will be installing packages from
Develmark the following packages for installation
Mathmark the following packages for installation
To run the test suite, install these optional packages from
Nextand accept all additional packages that the setup process requests to install to satisfy dependencies
It is recommended that you reboot the machine after installing
Cygwinand all the necessary packages.
18.104.22.168. Compiling OpenFAST¶
From here, pick up from the Linux with CMake instructions at CMake with Make for Linux/macOS.
22.214.171.124. Other tips¶
If you would like to run
cmdterminal, then you must add the
%PATH%variable in environment setting. Replace
<USERNAME>with your account name on Windows system.
It is suggested to compile with optimization level 2 for Cygwin. Do this by changing the build mode in the cmake command
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo