FAST_Sfunc in mac m1

Hi
I am trying to build FAST_SFunc.mexmaca64 on my mac m1.
I am using Matlab 2024a
The OpenFAST 3.5.2 I have built using
cmake … -DBUILD_OPENFAST_SIMULINK_API=ON
make

The OpenFAST installation is working fine to be executed through Terminal.
However, now I want to use it as an FAST_SFunc with Matlab 2024a.
However, when I am trying to execute create_FAST_SFunc.m, I am getting the error ‘openfastlib_mex’ not found.
Kindly guide me on how to proceed.

Thanks

Regards
Muhammad Sharjil

Muhammad,

When building FAST_SFunc on the M1 Mac with CMake and -DBUILD_OPENFAST_SIMULINK_API=ON, you don’t need to run create_FAST_SFunc.m. If make completes successfully, you should find FAST_SFunc.mexmaca64 in the build/glue-codes/simulink directory. Please let me know if it’s not there and we can troubleshoot as that would be a different issue.

1 Like

Hi
I found it in the build/glue-codes/simulink directory. Its working the same as on windows pc. Thanks a lot.

Regards
Muhammad Sharjil