Save GUI as .exe file

2 views (last 30 days)
Wei-Chih Juang
Wei-Chih Juang on 7 May 2014
Commented: BSantos on 9 May 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?

Answers (1)

BSantos
BSantos on 7 May 2014
Do you have Matlab Compiler installed?
You need so, in order to convert a GUI to a .exe
  2 Comments
Wei-Chih Juang
Wei-Chih Juang on 8 May 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 on 9 May 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...

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!