Creating a Linux application by the MATLAB compiler

조회 수: 45 (최근 30일)
Motti Mushkin
Motti Mushkin 2020년 8월 30일
댓글: Walter Roberson 2022년 4월 1일
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