Obtaining Linux Static Libraries for Cross-Compiling Simulink Coder

4 views (last 30 days)
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
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:

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!