Platform dependency of matlab compiled python library

Matlab functions compiled into python package on a windows machine is not initializable in Linux environment.
This issue happens only when toolbox dependencies are included in the package (eg. rainflow)
Is there an option to compile from a windows machine for a linux environment?
Is there any other solution other than installing matlab in linux to do the compilation?
Log error as below:
SystemError: "Application not supported on Linux due to platform dependencies. Intended platforms include: Windows. For more information, please contact the application author."

1 Comment

It would be great to know this answer or if there is a way to check which parts of my code are incompatible.

Sign in to comment.

Answers (1)

Is there an option to compile from a windows machine for a linux environment?
I have seen claims that if you are willing to put in the work, you can install the Linux for Windows package and run the Linux version of MATLAB inside that, and configure that to use Linux toolchains.
This is not a supported environment, and apparently it is a bit frustrating to set up properly.
There is no option to use the Windows version of MATLAB to compile for Linux -- other than in the sense that these days you can use MATLAB Coder to target Raspberry Pi.

Categories

Find more on MATLAB Compiler SDK in Help Center and File Exchange

Asked:

on 9 Mar 2022

Edited:

on 17 Aug 2023

Community Treasure Hunt

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

Start Hunting!