Windows Stand Alone Application from GUI.

1 view (last 30 days)
Zaheer
Zaheer on 27 Jan 2014
Hi all,
I have created a Matlab GUI and a few associated function m-files. Would really appreciate help asap with this as its important for me at work and I am quite new at deploying programs using Matlab.
I am trying to deploy the project as a stand alone application but I am getting an error. I am using Matlab R2008a. This is how I created the Windows Standalone Application (WSA).
1) I type in 'mbuild -setup' in the command prompt and follow instructions as shown below:
>> mbuild -setup Please choose your compiler for building standalone MATLAB applications: Would you like mbuild to locate installed compilers [y]/n? y Select a compiler: [1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2008a\sys\lcc [0] None Compiler: 1 Please verify your choices: Compiler: Lcc-win32 C 2.4.1 Location: C:\PROGRA~1\MATLAB\R2008a\sys\lcc Are these correct [y]/n? y Trying to update options file: C:\Documents and Settings\ProductionProgrammer\Application Data\MathWorks\MATLAB\R2008a\compopts.bat From template: C:\PROGRA~1\MATLAB\R2008a\bin\win32\mbuildopts\lcccompp.bat Done . . . >>
2) Select >File>New>Deployment Project>Windows Standalone Application
3) I select and drag my main m-file code into 'Main function'. For 'Other files', I selected all the .fig file and all the m-files files which do the calculations.
4) Click on the 'Build the project button'. It takes a few minutes to output the following error to the deploy tool output: Build output( 2014-01-22 15:59:28). mcc -F 'C:\Documents and Settings\ProductionProgrammer\Desktop\zaheer\MCM - With cut capability v2\FinalConversionModule\Untitled11.prj'
.
.
.
Executing command: mbuild "@C:\DOCUME~1\PRODUC~1\LOCALS~1\Temp\mathworks_tmp_3428_17648" 'mbuild' is not recognized as an internal or external command, operable program or batch file. 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. There were errors during compilation process.
I will appreciate if some one can tell me the correct procedure to build WSA and resolve this
I am using Matlab R2008a.
Thanks.

Answers (0)

Categories

Find more on MATLAB Compiler 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!