Matlab Coder Windows -> Linux cross-compilation
48 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alexsander Shafir
am 18 Jan. 2020
Kommentiert: Ryan Livingston
am 19 Jan. 2020
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?
0 Kommentare
Akzeptierte Antwort
Ryan Livingston
am 19 Jan. 2020
Bearbeitet: Ryan Livingston
am 19 Jan. 2020
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.
0 Kommentare
Weitere Antworten (1)
Alexsander Shafir
am 19 Jan. 2020
1 Kommentar
Ryan Livingston
am 19 Jan. 2020
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
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!