Save GUI as .exe file

조회 수: 2 (최근 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에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by