Save GUI as .exe file

3 次查看(过去 30 天)
Wei-Chih Juang
Wei-Chih Juang 2014-5-7
评论: BSantos 2014-5-9
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?

回答(1 个)

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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 C Shared Library Integration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by