Splitting code generation and building MEX into two steps
조회 수: 4 (최근 30일)
이전 댓글 표시
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
Infinite_king
2024년 4월 16일
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!