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

3 ビュー (過去 30 日間)
Ben
Ben 2015 年 6 月 30 日
編集済み: Will Grant 2016 年 1 月 5 日
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 Center および File ExchangeC Shared Library Integration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by