필터 지우기
필터 지우기

How to reproduce Application Compiler with mcc?

조회 수: 13 (최근 30일)
KAE
KAE 2017년 7월 17일
편집: KAE 2017년 7월 20일
I have used both the Application Compiler and mcc to make a standalone exe executable from a mfile. However the Application Compiler makes additional files and directories that mcc does not. I would like to set up mcc to run exactly like the default implementation of Application Compiler. Is there a flag or other straightforward way to do this?
Here is the mcc call I am using,
mcc -e myMfile.m -a splashScreen.tif -a someLibrary.dll -a someOtherLibrary.dll
which only creates one myMfile.exe in the same directory. However the Application Compiler creates a project subdirectory with further subdirectories (for_redistribution, for_redistribution_files_only, for_testing) populated with files.
If there is no straightforward solution, I will stick with Application Compiler.

채택된 답변

Faiz Gouri
Faiz Gouri 2017년 7월 20일
mcc compiles matlab files into executable and Application Compiler app does the same thing along with packaging the files. Application compiler also creates a web installer additionally.
You perform the same functions using either the compiler apps or the mcc command-line interface.
You can always refer the corresponding mcc command in 'PackagingLog.html' when you are compiling through Application Compiler.
The interactive menus and dialogs used in the compiler apps build mcc commands that are customized to your specification. As such, your MATLAB® code is processed the same way as if you were compiling it using mcc.
Compiler app advantages include: You perform related deployment tasks with a single intuitive interface. You maintain related information in a convenient project file. Your project state persists between sessions. You load previously stored compiler projects from a prepopulated menu. Package applications for distribution.
  댓글 수: 1
KAE
KAE 2017년 7월 20일
편집: KAE 2017년 7월 20일
Very helpful to learn that I call pull up the mcc command out of the log. That's exactly what I was looking for, since I keep re-compiling the same program and associated files and this lets me avoid using the App menu each time.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Standalone Applications에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by