Compile for Linux on a Windows machine

10 Ansichten (letzte 30 Tage)
Yoni
Yoni am 4 Aug. 2011
Kommentiert: Walter Roberson am 23 Jun. 2020
Hi, Is it possible to compile a matlab function to Linux shared library with Matlab running on Windows?

Akzeptierte Antwort

Titus Edelhofer
Titus Edelhofer am 4 Aug. 2011
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 Kommentare
Martin Dowie
Martin Dowie am 23 Jun. 2020
Hi - any further forward with this?
Walter Roberson
Walter Roberson am 23 Jun. 2020
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Compiler SDK finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by