Invalid Mex File Error MacOS


I’m using the Matlab Interface on MacOs.
I followed the installation process , which goes smoothly, however when I try to run simulink example I get

found compiled acados MEX interface
Error using acados_ocp
Invalid MEX-file

then i get:
Library not loaded: ‘@rpath/libacados.dylib’

The Matlab version I’m working on is the latest one, Matlab 2022b. I tried installing acids for a second time and I’m doing every step of the installation, but the problem persists. The macOs version is Monterrey 12.6.

Thanks a lot,

Hm, I don’t know what is going on there.
@aghezz1 did you also test Simulink on your Mac? or just normal Matlab?

Hi Lourdes,

For me the getting started example in Simulink works fine.
I am running on a Mac with Intel processor, Monterey 12.3.1 and Matlab 2021b.
Does the plain Matlab example work for you?