Save GUI as .exe file

2 visualizaciones (últimos 30 días)
Wei-Chih Juang
Wei-Chih Juang el 7 de Mayo de 2014
Comentada: BSantos el 9 de Mayo de 2014
I am now using Matlab 7.6(R2008a) and have built up a programmatic GUI.
I have tried exactly the same way as this video but kept failing with following error message:
*No supported SDK or compiler was found on this computer. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2012a/win64.html
Error: An error occurred while shelling out to mbuild (error code = 1). Unable to build executable. ??? Error using ==> mcc Error executing mcc, return status = 1.*
I then installed "Microsoft Visual C++ 2008" and "Windows SDK for Windows Server 2008 and .NET Framework 3.5", but it still shows the same Error massage.
Is there any step I missed? What can I do to rectify this?

Respuestas (1)

BSantos
BSantos el 7 de Mayo de 2014
Do you have Matlab Compiler installed?
You need so, in order to convert a GUI to a .exe
  2 comentarios
Wei-Chih Juang
Wei-Chih Juang el 8 de Mayo de 2014
Thanks for reply!
I am not sure if the "Matlab Compiler" is installed or not(I thought it was built inside), so I find the installer by "MCR" command and installed it. Run the "Deploytool" with the same process, and get the same Error...
( BTW, before and after I did the step above, I do have checked the "mbuild -setup" to choose the compiler before compiling, there is only one selection:
[1] Microsoft Visual C++ 2008 in C:\Program Files (x86)\Microsoft Visual Studio 9.0
[0] None
and I chose [1] as my compiler )
Really don't know how to deal with this... Someone please help me!!!
BSantos
BSantos el 9 de Mayo de 2014
When you run the ver command, you should get a list of Toolboxes and perhaps Compiler, that are installed. The MATLAB Compiler requires a separate license, so it's not included on your regular MATLAB.
If you see MATLAB Compiler in that list, then you should be able to convert your GUI into a .exe by running Deploytool.
I hope this helps...

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by