2.8.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:
2.8.2.1. Installing prerequisites
Download and install Cygwin 64-bit. You will need to
Run as Administratorto complete the installation process.Choose
Install from internetChoose the default install location
Choose the default package download location
Choose
Direct connectionChoose a download site
See next step for
select packages. Alternately, you can skip this step and runsetup-x86_64.exeanytime later to select and install required software.
Select packages necessary for compiling
OpenFAST. Choosebinarypackages and not the source option.Choose
Categoryview, we will be installing packages fromDevelandMathFrom
Develmark the following packages for installationcmakecmake-doccmake-guicygwin-develgcc-coregcc-fortrangcc-g++gitmakemakedepend
From
Mathmark the following packages for installationliblapack-devellibopenblas
To run the test suite, install these optional packages from
Python:python3Python3-numpy
Click
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.
2.8.2.2. Compiling OpenFAST
From here, pick up from the Linux with CMake instructions at CMake with Make for Linux/macOS.
2.8.2.3. Other tips
If you would like to run
openfast.exefrom thecmdterminal, then you must add theC:\cygwin64\lib\lapackandC:\cygwin64\home\<USERNAME>\software\binto your%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