Search code examples
linuxmatlab

Compile matlab code from osx to run on linux


I want to know if it's possible to compile code on OSX Lion with Matlab's Compiler Runtime(MCR), and create a command line tool that runs on Linux. I realise that this is not possible on the Windows->Linux paradigm, but is it also the case between OSX and Linux?

If it is possible, what are the necessary steps, and will I need to install the Linux MCR on the Linux machine to run the application?


Solution

  • Sorry it's not possible. To build Linux binaries you will need a Linux installation of Matlab and Matlab Compiler and build the binaries there.