Hi, Is it possible to compile a matlab function to Linux shared library with Matlab running on Windows?

 채택된 답변

Titus Edelhofer
Titus Edelhofer 2011년 8월 4일

0 개 추천

Hi Yoni,
no, unfortunately it is not. The compiler always generates executables and libraries for the operating system type it runs on (only exception of a 32bit windows library running on 64bit windows).
Titus

댓글 수: 6

Yoni
Yoni 2011년 8월 4일
Thanks.
So a following question - Does Matlab license (currently running on windows) also covers Linux (instead of windows, and not in addition to) ?
Andreas Goser
Andreas Goser 2011년 8월 4일
This forum is intended for technical questions. For questions about license options, please ask your account manager at your MathWorks office or distributor. http://www.mathworks.com/company/worldwide/
Alex Gunagwera
Alex Gunagwera 2018년 10월 15일
hello, is this still the case?
Walter Roberson
Walter Roberson 2018년 10월 16일
Yes it still true. However some people have been testing the option of running the Linux version inside the Windows 10 Linux compatibility system. Some of them have made some progress, but it should still be considered quite experimental.
Martin Dowie
Martin Dowie 2020년 6월 23일
Hi - any further forward with this?
Walter Roberson
Walter Roberson 2020년 6월 23일
There is no support for using Windows to compile a Linux executable.
My expectation is that one of the following circumstances would be necessary for Mathworks to support such a feature:
  • Microsoft Windows revised itself greatly to become a "thin client" to programs running in the cloud, so Mathworks provided support for cross-compiling to help users transition to Linux; Or;
  • Microsoft made some major technology change that was a major impediment to running MATLAB on Windows, so Mathworks decided to get out of Windows support, transitioning to Linux; Or;
  • Free Software Foundation or other group wins a major anti-trust lawsuit against a big company in the USA on the grounds that the company failed to provide Linux executables corresponding to each Windows executable
I do not think it at all likely that any of these would come to pass. Microsoft is moving towards making Windows a subscription-based service instead of a purchase, but I do not think it is going to go thin-client.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

질문:

2011년 8월 4일

댓글:

2020년 6월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by