Failure to include DLLs when compiling Simulink.
6 views (last 30 days)
Show older comments
Hi,
We are trying to compile a standalone Simulink application using the RTW build function in the Simulink Coder. The problem is that some of the required DLLs are not being included in the Matlab Compiler Runtime collection. Consequently, when you run the standalone Simulation application on a machine that does not have Matlab installed, (but does have the compiler run time installed), you get an error saying that the DLL is unavailable.
The DLLs that are missing are: libmwsl_fileio.dll, libfreetype.dll, sl_types.dll, sl_services.dll & libfixedpoint.dll.
Any ideas?
0 Comments
Answers (1)
Desiree
on 25 Aug 2011
I assume that you were building an executable from your model with the Rapid Simulation Target. The reason you receive the errors is that there are dependencies to DLLs from your MATLAB/Simulink installation (you find these under matlabroot\bin\arch). Due to licensing restrictions you cannot create standalone versions of your Simulink model which are not dependent on some libraries of the installation. Those libraries are also not included in the MCR.
The only way to go completely standalone (to a system without MATLAB/Simulink installation) is to create a DLL from your model by using the Shared Library Target of Embedded Coder (ert_shrlib.tlc). This generated DLL can then be used in an external C application, but also from MATLAB.
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!