Effacer les filtres
Effacer les filtres

Can you compile a MATLAB Linux exe using the Windows 10 Linux Subsystem? If so, how?

5 vues (au cours des 30 derniers jours)
Francis Vasquez
Francis Vasquez le 19 Fév 2019
Réponse apportée : Swastik le 21 Juin 2024
I work on a Windows machine but need to produce Linux executable files. I know that compiling an exe on a Windows machine will give you a Windows exe and compiling a Linux machine will produce a Linux exe, but I was wondering if there is a workaround for this using the Windows 10 Linux Subsystem.

Réponses (1)

Swastik
Swastik le 21 Juin 2024
To address your needs, I recommend leveraging the MATLAB Coder to transform your MATLAB function into C code. This approach will allow you to generate C code directly from your MATLAB code, facilitating a seamless transition to a compiled application or library that can be further processed with gcc in the Windows Subsystem for Linux (WSL).
For comprehensive instructions on how to generate C code from your MATLAB code using the MATLAB Coder project interface, please refer to this detailed documentation:
Hope this helps.

Catégories

En savoir plus sur C Shared Library Integration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by