Creating a Linux application by the MATLAB compiler

45 次查看(过去 30 天)
I am using MATLAB on a Windows 64 machine, and producing a Windows application by the MATLAB application compiler.
I need to run the application on a Linux machine. How can I do it?

回答(1 个)

Walter Roberson
Walter Roberson 2020-8-30
  • I have seen a small number of people post indicating that if you use the Windows 10 Linux layer and you hack at it long enough, you can get the Linux version of MATLAB installed under Windows 10. This leads to the possibility that with enough hacking you could get use that Linux version running inside Windows to generate a Linux executable; OR
  • Dual-boot your machine. Your license is valid no matter which OS you are using, so go ahead and install Linux as well on your machine, and use your existing license to generate a Linux executable; OR
  • The compilation tool-chain system in MATLAB is in theory flexible enough that you should (in theory) be able to install compilers such as gcc and cross-compile for Linux; OR
  • Install Vine (or similar) on the Linux machine and run the Windows executable under emulation.
If you need advanced features such as the Parallel Computing toolbox, whether for parallel or for GPU, then I would expect that you would have a lot of trouble, except under the dual-boot possibility.
  2 个评论
Stephen Wong
Stephen Wong 2022-4-1
编辑:Stephen Wong 2022-4-1
Regarding bullet point 3, the Matlab compilation tool-chain system actually isn't able to compile any Linux because it calls Make which Matlab cannot point or set a path to even if you somehow installed it on Windows.
Dual booting and using WSL on Windows 10/11 defeats the purpose of having one instance of Matlab installed as the the primary working computer.
Matlab really needs to fix this. It's 2022.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by