No EXE file appears when building

Hello!

I am trying to obtain the EXE file by building it from the source code. The end goal is to be able to get a version with a modified IfW_UserWind.f90.

I have all the prerequisites specified on the site. After cloning the repository, I am following those steps in the Intel Command prompt:

mkdir build
cd build

cmake .. -G “Visual Studio 17 2022” -A x64 -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release

cmake --build . --config Release

2. Installing OpenFAST — OpenFAST v4.1.2 documentation says that the result should be in openfast/build/glue-codes/Release/openfast.exe, but the Release folder is empty for me.

Am I missing a step? How can I obtain the EXE file?

Bets regards,

Tudor

When I tried to run the provided commands, the configure and build failed. Typically, Windows users open the solution at vs-build\FAST\FAST.sln with Visual Studio instead of working with CMake, so the other options aren’t as well tested. I recommend using that solution for project development.

If you want to continue with CMake, I just tested the following commands and verified that they generate an OpenFAST executable at build\glue-codes\openfast\openfast.exe.

cmake .. -G “Ninja” -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release

cmake --build .

This doesn’t work with BUILD_SHARED_LIBS=ON, can you explain why you’re using this option. Also, please include the output of the commands, especially if they include error messages.

Thanks,

Derek Slaughter

Dear Derek,

I tried the lines you recommended, and I got a working openfast.exe.

Thank you for your answer!

Best regards,

Tudor Istrate