Matlab Coder Windows -> Linux cross-compilation
40 views (last 30 days)
Alexsander Shafir on 18 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?
Ryan Livingston on 19 Jan 2020
Edited: Ryan Livingston on 19 Jan 2020
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.