Splitting code generation and building MEX into two steps

15 vues (au cours des 30 derniers jours)
Sri Raman A
Sri Raman A le 10 Avr 2024
Commenté : Infinite_king le 16 Avr 2024
Question primarily intended towards MATLAB staff, But answers from the helping community are welcome
I typically use codegen command with a mex config object to generate MEX file for distribution in my org. I also notice that the MATLAB versions used by different teams/individuals in my org be different (But all in Windows platform).
I can see that that there is an option in the codegen configuration object to only generate code (genCodeOnly) or also build the (mex) object by setting false or true.
Question 1) Why can't matlab allow only code generation using the latest version (say 2024a), and build a mex file using an older version (say 2018a) - In that case, I would reasonably expect (but not guaranteed) the MEX file generated in 2018a to work in all future releases, i.e why not allow me to split it into two different steps? If this is possible - How to do it?
Question 2) Lets say I generate only code using 2024a (and not a mex file), I can see that the mex option can already handle a release (-R2018a) option. How to use such option to only build mex on a previously generated code by codegen?
  9 commentaires
Sri Raman A
Sri Raman A le 16 Avr 2024
Does it mean that everyone in the org is expected to have MATLAB Coder license on top of the regular MATLAB license?
Infinite_king
Infinite_king le 16 Avr 2024
For the workaround that i provided, MATLAB coder is needed to compile the P-code to mex.
Contact Technical support, you may get better workaround :- https://www.mathworks.com/support/contact_us.html

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by