Matlab Coder Windows -> Linux cross-compilation

조회 수: 37 (최근 30일)
Alexsander Shafir
Alexsander Shafir 2020년 1월 18일
이동: Walter Roberson 2024년 7월 12일
Version: Matlab 2019b
Task: from Windows compile Linux static library (.a) to be used in Android application.
Current state: on Windows Matlab Coder allows generation of .lib, .dll only.
I saw there are threads for cross-compilation, does anyone made it work and can provide detailed instruction?

채택된 답변

Ryan Livingston
Ryan Livingston 2020년 1월 19일
편집: Ryan Livingston 2020년 1월 19일
Check out:
That links to a webinar which shows generating code for iOS and Android. Here, you're probably not going to cross-compile from Windows to Linux but generate code only and then use the Android NDK to compile that code outside of MATLAB Coder.
One of the main considerations is to set up the HardwareImplementation config property to match your Android device. With that, the generated code will be compilable by the Android NDK.
  댓글 수: 2
Alexsander Shafir
Alexsander Shafir 2020년 1월 19일
이동: Walter Roberson 2024년 7월 12일
Wow, thanks for quick and precise reply!
Btw, do you plan to add cross-compilation to Matlab Coder?
If so, when it may be released (approximately, of course) ?
Ryan Livingston
Ryan Livingston 2020년 1월 19일
이동: Walter Roberson 2024년 7월 12일
MATLAB Coder and Simulink Coder already support various forms of cross-compilation. To use that you'd select a different toolchain in the App or in the config object. Installing support packages can give you access to various other toolchains, like Raspberry Pi:
That page also has a Request new hardware support button in the bottom right that you can use.
You can also create and register your own custom toolchain:
to do further custom cross-compilation

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by