Failure to include DLLs when compiling Simulink.
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Desiree
2011-8-25
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!