Mac matlab installation, mcr installer for linux?

Hi all,
I installed Matlab Compiler on my mac and I would like to run my code on a Linux CentOS machine. To do that, I need the proper MCR bin to install the runtime library while in the indicated folder I can just find the MCR dmg image for Mac. Any suggestion?
Thanks, Iros

 Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de Mayo de 2011

0 votos

You need to build your code on a machine with the same OS type as the target it will run on.

Más respuestas (1)

Iros Barozzi
Iros Barozzi el 16 de Mayo de 2011

0 votos

Thanks for your reply.
Generally speaking, is there any way to build the code in a manner that it can be run on every platform without any Matlab installed on the target machine?

1 comentario

Walter Roberson
Walter Roberson el 16 de Mayo de 2011
MATLAB does not need to be installed on the target machine but the MCR version corresponding to the MATLAB version does.
However, the executable that gets built by mcc or deploytool is specific to the operating system that it was built on. The limit of cross-compilation is that 2011b added the ability to build Windows 32 versions when running Windows 64. Other than that, cross-compilation is not supported.
I am not clear on what the executable _does_, but at the very least it is responsible for unpacking the CTF bundle, and is responsible for some decryption (the compiled files get AES encrypted). It either launches an Threaded Interpreted routine built in to MCR or else itself has the Threaded Interpreted routine and merely makes library calls to MCR. I am not certain whether MCR itself is platform independent or platform specific; I suspect it must be platform specific.

Iniciar sesión para comentar.

Categorías

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by