Simulink does not recognize .lib file

Hello :wave:

I am trying to run a nmpc on the speedgoat using acados and Simulink. I read through a lot of previous posts and they all mentioned that I should include the library files “acados.lib” “blasfeo.lib” and “hpipm.lib” in the Custom Code Libraries in the model settings. However, after I included them, there is always this error message when I build the slx file:

E:/acados/acados/lib/acados.lib: error adding symbols: file format not recognized

I don’t know what I missed and I really need some help. Any suggestion is very much appreciated.

Best regards
Shawn

Hey Shawn, you will need to cross-compile the libraries for the target system, the speedgoat hardware. The libs you are calling right now are compiled for your host system, I guess your x64 PC. You can see the embedded workflow on the acados website how to do that for dSPACE systems, it can be a bit tricky. Br, Alex