Building openfast using cmake using cygwin on windows

lenovo p15v@LAPTOP-G6FCICA9 ~/OpenFAST/build
$ cmake …
– The CXX compiler identification is GNU 11.2.0
– The C compiler identification is GNU 11.2.0
– The Fortran compiler identification is GNU 11.2.0
– Check for working CXX compiler: /usr/bin/c++.exe
– Check for working CXX compiler: /usr/bin/c++.exe - works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - failed
– Detecting CXX compile features
– Detecting CXX compile features - done
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc - works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - failed
– Detecting C compile features
– Detecting C compile features - done
– Check for working Fortran compiler: /usr/bin/gfortran.exe
– Check for working Fortran compiler: /usr/bin/gfortran.exe - works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - failed
– Checking whether /usr/bin/gfortran.exe supports Fortran 90
– Checking whether /usr/bin/gfortran.exe supports Fortran 90 - yes
– Performing Test HAS_FORTRAN2008
– Performing Test HAS_FORTRAN2008 - Success
– Enabling Fortran 2008 features
– Looking for Fortran sgemm
– Looking for Fortran sgemm - not found
– Looking for pthread.h
– Looking for pthread.h - found
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
– Found Threads: TRUE
– Looking for Fortran sgemm
– Looking for Fortran sgemm - not found
– Could NOT find BLAS (missing: BLAS_LIBRARIES)
– LAPACK requires BLAS
– A library with LAPACK API not found. Please specify library location.
CMake Error at CMakeLists.txt:145 (message):
Unable to find BLAS and LAPACK

How do I successfully build openfast using cmake and cygwin on windows? I get the above errors. Please advise.

Kashyap.Subham,

It looks like CMake wasn’t able to find an LAPACK library, do you have one installed in your cygwin environment? OpenFAST is using CMakes FindLAPACK function to look for the library. If you have one installed, you can specify which one to look for by setting the BLA_VENDOR property as described at BLAS Vendors.