2017-11-25 117 views

回答

0

不幸的是,目前,你的问题的答案是否定的。在Matlab中,您无法实现可执行文件的交叉编译。 Matlab Compiler严格依赖于机器环境。

基本规则是,为了构建可在操作系统X下运行的可执行文件,它必须是操作系统X下的编译器。

因此,您需要在Windows机器上安装Matlab Compiler以创建可在Windows下运行的可执行文件。最重要的是,Windows代表了一种特殊情况,您必须考虑3264位版本之间的区别。欲了解更多相关信息,请阅读这些线程:

  1. https://it.mathworks.com/matlabcentral/answers/4649-deploy-for-windows-32-bit-from-a-64-bit-computer
  2. https://it.mathworks.com/matlabcentral/answers/217297-32-bit-exe-compilation-using-matlab-64-installed
  3. https://it.mathworks.com/matlabcentral/answers/60904-compile-executable-for-64-bit-system