Does the OS of the machine I compile on need to match the OS of the machine I intend to run on?

3 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Mar 2021
Edited: MathWorks Support Team on 10 Mar 2021
A compiled MATLAB binary can only be run on machines which match the architecture of the machine that originally compiled the binary. However, the specific version doesn't matter as long as that version is supported by MATLAB. For example, if you compile on 64-bit Windows 7, you can run the deployed binary on Windows 10, but not on 32-bit Windows 7, MacOS, or Linux.
Note that MATLAB Compiler Runtime must be installed to run a compiled MATLAB binary. The version of MCR must match the release of MATLAB that compiled the binary. For MATLAB R2012a and later, this can be downloaded here:
For more information on MATLAB system requirements and supported platforms, see the MATLAB system requirements archive:

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!