I am attempting to run a standalone Unix executable generated from Simulink coder using the rsim.tlc target folder. I am using the Simulink coder to convert Simulink code to c code. When I run the executable on a computer without Matlab I get the following error: dyld: Library not loaded: @rpath/libmat.dylib Referenced from: /Users/MrX/Downloads/./myprogram Reason: image not found zsh: abort ./myprogram
I have tried to add the following files to the directory I am running the executable from : libmat.dylib and libmx.dylib but that does not seem to resolve the issue. Does anyone know how to solve this error?