How can I create Standalone execute file from MATLAB GUI code

2 visualizzazioni (ultimi 30 giorni)
Hi,
I want to know how I can create Standalone execute file from my MATLAB GUI code. I have MATLAB compiler, so I already try it, but the execute files are always working on the PC which is installed MATLAB. However, I want it works everywhere (either MATLAB is intalled or not, either the Win OS is X64 or X32).
mbuilt -setup mcc -m mainmfile
I tried these command, and I tried deploytool also. However, these execute files weren't working on another PC, it is just working well on my PC. How can I create Standalone execute file from MATLAB GUI code. Thanks.

Risposte (2)

Andreas Goser
Andreas Goser il 28 Set 2011
I am not sure if only your question was not carefully crafted (e.g. mbuilt instead of mbuild), or if this is exactly what you did in MATLAB. In general, this looks OK, first the setup command mcc -setup and then creating the executable with mcc -m.
Maybe, it is already in those small differences. If not, please explain what "weren't working is exactly".
One factor also maybe, that you try to run your executable on a different OS and architecture that you built it. When you create on Win64, it will not run on Mac, or on Win32.

Aurelien Queffurust
Aurelien Queffurust il 28 Set 2011
You say "it is just working well on my PC. " Did you install MCR on the other machines?
See these steps: Deploying the Application

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by