Obtaining Linux Static Libraries for Cross-Compiling Simulink Coder
4 views (last 30 days)
Show older comments
I've built a Windows DLL for my Simulink simulation, and it works great. However, I need to create a Linux shared library the same way. When I generate the code using PackNGo and move it to Linux, upon compile I receive many unresolved links. These appear to point to physmod libraries that are present on my Windows machine, but for which I do not have the equivalent Linux libraries. How may I obtain the equivalent libraries for Linux? These libraries are:
C:\PROGRA~1\MATLAB\R2019a\toolbox\physmod\sm\ssci\lib\win64\SM083E~1.LIB
C:\PROGRA~1\MATLAB\R2019a\toolbox\physmod\sm\core\lib\win64\sm_vcx64.lib
C:\PROGRA~1\MATLAB\R2019a\toolbox\physmod\pm_math\lib\win64\PMBBE6~1.LIB
C:\PROGRA~1\MATLAB\R2019a\toolbox\physmod\simscape\engine\sli\lib\win64\SS1A7D~1.LIB
C:\PROGRA~1\MATLAB\R2019a\toolbox\physmod\simscape\engine\core\lib\win64\SS8E8F~1.LIB
C:\PROGRA~1\MATLAB\R2019a\toolbox\physmod\NETWOR~1\lib\win64\ne_vcx64.lib
C:\PROGRA~1\MATLAB\R2019a\toolbox\physmod\common\math\core\lib\win64\mc_vcx64.lib
C:\PROGRA~1\MATLAB\R2019a\toolbox\physmod\common\external\library\lib\win64\ex_vcx64.lib
C:\PROGRA~1\MATLAB\R2019a\toolbox\physmod\common\FOUNDA~1\core\lib\win64\pm_vcx64.lib
Thank you!
1 Comment
Vasco Lenzi
on 31 Aug 2020
Just to clarify: did you try to generate the code for Linux from a Windows installation? Have you tried using the workflow you are using for Windows but for Linux using MATLAB installed on a Linux installation?
We do support MATLAB running on some Linux distro:
Answers (0)
See Also
Categories
Find more on Simulink Coder 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!