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)
Show older comments
MathWorks Support Team
on 3 May 2016
Edited: MathWorks Support Team
on 10 Mar 2021
If I use MATLAB Compiler to compile MATLAB code, does the OS I target have to be the same as the one I compiled on?
Accepted Answer
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:
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!