0

Is it possible to use MATLAB on macOS to build a mex file for running on linux (with the .mexa64 extension)? Suppose that I have an appropriate compiler such as GCC. How would I do this? I couldn't find any useful arguments in mex.

I understand building for a different platform would require a full toolchain, but I'm wondering if MATLAB has one already under the hood.

Community
  • 1
  • 1
buzjwa
  • 2,632
  • 2
  • 24
  • 37
  • 1
    MATLAB has nothing under the hood. To compile something you need a different compiler, so that different compiler is the one that must be able to do the job, AFAIK. – Ander Biguri Mar 07 '17 at 15:57
  • 1
    Not exactly what you are looking for but [this](https://github.com/rejuvyesh/homepage/blob/master/posts/2013-12-13-cross-compile-matlab-mex-files-on-linux.md) might be helpful. – mpaskov Mar 07 '17 at 16:04

0 Answers0