MATLAB: Deploying a standalone application that uses a shared library

application compilercallibcoderdllEmbedded CoderguiguidelibraryloadlibraryMATLABMATLAB Compilerprototypeshared librarysimulinksimulink coderstandalone

Hello,
I am trying to create a standalone Matlab application that uses a Simulink model. For this purpose, I compiled the Simulink model into a .dll file using this french tutorial. This worked pretty well and in Matlab I can use all the functions of the model.
The next step would be to compile the entire Matlab programm into a standalone application. Simply using the application compiler doesn't work and I read that the function loadlibrary is not supported in standalone applications. The GUI works, but when I try to calculate something with the model, nothing happens.
What would the correct way of doing this be? I read something about maybe 'prototype files'.
Thanks in advance!

Best Answer

Nevermind, I ended up following these instructions. I was confused at first, because the loadlibrary function with the mfilename addition wasn't creating any new prototype file, but I ended up just using the old .m header, only this time I also included the newly generated thunk .dll as a required file. After that, everything worked as expected and I did not have to change anything inside my actual code.
Related Question