Hi,
I'm trying to make an .exe file form my GUI. I use
deploytool
it opens a window where the only option I have is 'Package' no 'Build' option. After choosing needed files I click 'Package' and I end up with 3 folders (none of them contains .ctf file). I run my .exe, it looks good, edit text and popup menu work, but push button (which should generate the plot) does not. And now I have no idea where the problem is, is it the missing 'build' option ? Do I need any other complier than Matlab Compiler to make .exe? The command:
mbuild -setup
says that I do not have any Compiler installed (but Matlab Complier works)
I use Matlab R2013b, mcr installed.
Please help, Dominika

 Respuesta aceptada

Friedrich
Friedrich el 17 de Abr. de 2014
Editada: Friedrich el 17 de Abr. de 2014

1 voto

Hi,
  1. When generating an .exe you do not need to install an aditional Compiler (new feature since R2010b). So its fine that mbuild does not find a compiler but the MATLAB Compiler is able to generate an exe
  2. Your overall workflow seems correct for what you like to achieve. So don't worry about that
  3. Most likely the compiled application does not work because of some error in your code. Please recompile your application BUT uncheck the checkbox "Do not requiere Windows Command Shell (console) for execution" in the Additional Runtime Settings in the Application Compiler UI. After that compile it and run the generated .exe from a Windows console (cmd) to be able to see any errors if there are any.

3 comentarios

Image Analyst
Image Analyst el 17 de Abr. de 2014
So does one not even need to run mbuild anymore? And it they did run it and didn't have a third party installer, it would be nice to tell the user what you said and that everything is going to be okay, instead of leaving the user uncertain.
Friedrich
Friedrich el 17 de Abr. de 2014
This feature is documented. See the release notes for MATLAB Compiler R2010b:
"mbuild -setup No Longer Needed Before Compiling Standalone Targets
You no longer need to specify a third-party compiler with mbuild -setup when building a standalone target. This is the case for both standalones and Windows standalones (standalone applications that suppress the DOS command window when running)."
Dominika
Dominika el 17 de Abr. de 2014
Thanks for the answer Freidrich. You were right. The problem is the symbolic toolbox in my code, which is not supported by Matlab Complier

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 17 de Abr. de 2014

0 votos

What compiler do you have installed? Do you have Microsoft Visual Studio? You paid a huge amount for the compiler, so if you know you have a compiler installed and mbuild can't find it, call the Mathworks.

Categorías

Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 17 de Abr. de 2014

Comentada:

el 17 de Abr. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by