Does MCR contain MCC?

7 views (last 30 days)
Jesse Knight
Jesse Knight on 13 Jul 2017
Commented: Walter Roberson on 13 Jul 2017
I have a script which I need to run remotely using a Docker image. For compatibility with another pre-compiled MATLAB application ( SPM ), I need to use a specific MATLAB version in the Docker, and also a different OS. Thing is, I don't have access to this OS / MATLAB version to pre-compile my own script with as well.
So my proposed solution was:
  1. download the MCR for the SPM application in the docker image
  2. upload SPM (so far this all works)
  3. upload the source files of my application to the docker image
  4. use mcc to compile my source within the docker image.
My questions:
  1. Is this possible?
  2. Where do I find mcc within the MCR (since it is not callable as usual)?
Thanks

Answers (1)

Walter Roberson
Walter Roberson on 13 Jul 2017
No, mcc is an external program that cannot be compiled for use with MCR.
If the other MATLAB version is not later than yours, then you could consider loading up a virtual machine with the OS being used, and installing the appropriate MATLAB (you can use any one that is not later than your authorized version) and doing the compiling on the virtual machine. http://osboxes.org has a number of useful virtual machines.
  2 Comments
Jesse Knight
Jesse Knight on 13 Jul 2017
Thanks. Unfortunately my current version is antecedent to the version I need to run remotely, so I cannot compile to or install a future version.
Walter Roberson
Walter Roberson on 13 Jul 2017
In that situation if you were able to activate mcc then you would be activating mcc for a later release than you are licensed for, and that would be a licensing problem.
So... you have a problem unless you can somehow convince whomever to make an earlier MATLAB available.
Let me think... perhaps if you installed a virtual machine, and compiled your code and SPM yourself, and made that combination available to the remote Docker image?

Sign in to comment.

Categories

Find more on Manage Products in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!