Reputation: 6498
I'm using Matlab R2016a. I'm following this video to compile my Matlab guide program as standalone application. However I can only see options to compile it for a Linux platform. Is it also possible to compile it for Windows using the Linux version of Matlab?
Upvotes: 1
Views: 120
Reputation: 23685
Sadly, at present, the answer to your question is no. In Matlab you cannot achieve cross compilation of executables. The Matlab Compiler
is strictly tied to the machine environment.
The basic rule is that in order to build an executable that can run under operating system X
, it must be compiler under operating system X
.
Therefore, you need to install the Matlab Compiler
on a Windows machine to create an executable that can run under Windows. On the top of that, Windows represents a special case in which you have to consider the difference between 32
and 64
bit versions. For more infos, read these threads:
Upvotes: 0