Mac matlab installation, mcr installer for linux?

4 Ansichten (letzte 30 Tage)
Iros Barozzi
Iros Barozzi am 16 Mai 2011
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 16 Mai 2011
You need to build your code on a machine with the same OS type as the target it will run on.

Weitere Antworten (1)

Iros Barozzi
Iros Barozzi am 16 Mai 2011
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 Kommentar
Walter Roberson
Walter Roberson am 16 Mai 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by