How to create a linux shared object from matlab code (Matlab 2015b)
이전 댓글 표시
Hello everyone,
I want to connect matlab written functions into our vehicle control unit. The control unit is a myRio 1900 which gets programmed with Labview. Until now I managed to create .dll files from my function by using the matlab coder. I could use the .dll running the labview code on windows.
But for now I am missing the last step as the myRio is running under Ni Realtime linux I cant use the .dll file anymore. I would need a linux shared object. Therefore I want to ask if and how I can create the .so file from matlab. It would be really benificial for the application if there werent to many steps involved as the process will get repeated quite frequently.
I found this question which exlained it for some older version but couldnt replicate the result. Apperently the usage of mcc has changed.
Currently I am using: Win 7 64bit Profesional, Matlab 2015b 32bit formula Student Licence (is there a way to create 32bit dlls from a 64bit Matlab?)
I appreciate any help!
Best Regards, Stephan
채택된 답변
추가 답변 (1개)
Walter Roberson
2016년 7월 10일
0 개 추천
It is not that mcc has changed (though it has) but rather that you are trying to "cross-compile", creating a Linux library from MS Windows. MATLAB Coder should be able to do that if you configure the correct toolchain; unfortunately I do not know what the correct toolchain is (especially not for a realtime Linux.)
For example, MATLAB Coder is invoked by Simulink to build models for deployment on Arduino, which uses Linux, so it must be possible to configure. I have not had reason to do that myself (I do not have any Linux hardware.)
카테고리
도움말 센터 및 File Exchange에서 ARM Cortex-A Processors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!