Equivalent command of "-M" at MCC in CODER GUI

조회 수: 1 (최근 30일)
Ohad Ross
Ohad Ross 2020년 1월 16일
답변: Ryan Livingston 2020년 1월 22일
I want to add a Product Version to a DLL I compile with Matlab Coder (I am using the GUI coder under matlab apps).
In the past, i've done that using "mcc ... -M FILENAME.res" command, not the GUI coder.
how can I do the same matlab coder gui?

답변 (2개)

Ryan Livingston
Ryan Livingston 2020년 1월 22일
There's no built-in way to pass a resource file to MATLAB Coder. You may be able to achieve this by adding the resource file as a linker argument using the addLinkFlags method of coder.updateBuildInfo:
Or by adding a PostCodegenCommand that calls addLinkFlags on the buildInfo argument:
Caveat: I've not personally used these approaches so I can't guarantee that they will work.

Dhananjay Kumar
Dhananjay Kumar 2020년 1월 22일
The purposes of mcc command and MATLAB Coder are little different .
I think you are looking for deploytool or Application Compiler .

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by