How to embed MCR in Matlab Compiler using "mcc"?

6 次查看(过去 30 天)
I know that using the deploy tool you can select "Add MCR" then "Embed the MCR in the package". However, is there a way to do this using the command "mcc" instead of deploy tool.
Where I work QA likes us to create a sort of "make" file that has the mcc command string. So we can attach it in our configuration management software. So using mcc is preferred over deploy tool.
Thanks for any help!

采纳的回答

Harsheel
Harsheel 2015-7-1
Unfortunately, currently there is no way to embed the MCR with the mcc command. The mcc command was designed to be a low-level command like gcc and deploytool was designed to be a high-level command that provided additional capabilities.
  1 个评论
Ben
Ben 2015-7-1
That is what I thought ... but hoped I was just missing it somewhere in the documentation. Not that big of a deal really it just would have been 1 less S/W configuration step.

请先登录,再进行评论。

更多回答(1 个)

Will Grant
Will Grant 2016-1-5
编辑:Will Grant 2016-1-5
I use Bamboo as a build server and currently build our matlab c++ library target using deploytool. Configuration is done in the deploytool gui as normal, then I just call a very simple matlab function containing this code as the build step on Bamboo:
!deploytool -build "path/to/your/deploytool/project/file.prj"
You would probably want to use the -package argument instead of -build. Package will make the installer which should bundle the mcr if you have selected to do so in the deploytool gui. Also, using the ! forces deploytool to be blocking, so execution waits for the library to be built. Useful for our purposes and build system logic.
I know you mentioned your group likes to use mcc, but since the deploytool .prj file is just an xml file describing all the options and files to include it would be simple enough to use this as your point of configuration management. I check the .prj file into our git repo as it's the contents of that file that really decide how the build system runs.
This seems perfectly consistent with using external text-based / repo / whatever build config management your group may want to use.

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by