problem on converting m files to exe files

Hello I am using matlab version R2009b.
I also use visual studio 2010 as a compiler. I have a bunch of m files & fig files. I want to convert them into exe files. I have an Homepage which i used as a main file. But when i click on the build button i get the following error.................
mkdir 'C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\distrib'
mkdir 'C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src'
mcc -F C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3.prj
MATLAB:I18n:InconsistentLocale - The system locale setting, English (India)_India.1252, is different from the user locale setting, English (United States)_United States.1252.
mcc -o 'Untitled3' -W 'WinMain:Untitled3' -d 'C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src' -T 'link:exe' -v 'C:\Users\sudip\Documents\MATLAB\saiyed\heatmap_examples.m'
Compiler version: 4.11 (R2009b)
Processing C:\Program Files\MATLAB\R2009b\toolbox\stats\mcc.enc
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
2 item(s) added.
Generating MATLAB path for the compiled application...
Created 42 path items.
Begin validation of MEX files: Sun Jan 15 23:25:08 2012
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\@sobolset\private\DNToMatrix.mexw64'.
No conflicting M-file found.
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\@sobolset\private\MatrixToDN.mexw64'.
No conflicting M-file found.
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\@sobolset\private\computeDN.mexw64'.
No conflicting M-file found.
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\@sobolset\private\convertToDouble.mexw64'.
No conflicting M-file found.
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\@sobolset\private\matrixBitXor.mexw64'.
No conflicting M-file found.
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\@sobolset\private\sobolIndexed.mexw64'.
No conflicting M-file found.
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\@sobolset\private\sobolNet.mexw64'.
No conflicting M-file found.
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\@sobolset\private\sobolPoint.mexw64'.
No conflicting M-file found.
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\@sobolset\private\sobolSequence.mexw64'.
No conflicting M-file found.
Validating 'C:\Program Files\MATLAB\R2009b\toolbox\stats\private\statsizechk.mexw64'.
Found M-file 'C:\Program Files\MATLAB\R2009b\toolbox\stats\private\statsizechk.m'.
MEX file
'C:\Program Files\MATLAB\R2009b\toolbox\stats\private\statsizechk.mexw64'
is valid. It contains 'mexFunction.'
End validation of MEX files: Sun Jan 15 23:25:08 2012
Parsing file "C:\Users\sudip\Documents\MATLAB\saiyed\heatmap_examples.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2009b\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2009b\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Deleting 10 temporary MEX authorization files.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_21509_1368.auth'.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_20680_1368.auth'.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_25580_1368.auth'.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_12953_1368.auth'.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_4633_1368.auth'.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_18988_1368.auth'.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_7453_1368.auth'.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_2212_1368.auth'.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_29680_1368.auth'.
Removing: 'C:\Users\sudip\AppData\Local\Temp\mathworks_tmp_1368_22420_1368.auth'.
Generating file "C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src\Untitled3_main.c".
Generating file "C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src\Untitled3_delay_load.c".
Generating file "C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src\readme.txt".
Generating file "C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src\Untitled3_mcc_component_data.c".
Executing command: mbuild -O -v -output "Untitled3" -I"C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src" "C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src\Untitled3_main.c" "C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src\Untitled3_delay_load.c" "C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src\Untitled3_mcc_component_data.c" -link exe -env MCR_DELAYLOAD=/delayload:mclmcrrt711.dll -env MCR_DELAYLIB=delayimp.lib -outdir "C:\Users\sudip\Documents\MATLAB\saiyed\Untitled3\src"
This is mbuild Copyright 1984-2006 The MathWorks, Inc.
-> Default options filename found in C:\Users\sudip\AppData\Roaming\MathWorks\MATLAB\R2009b
----------------------------------------------------------------
-> Options file = C:\Users\sudip\AppData\Roaming\MathWorks\MATLAB\R2009b\compopts.bat
-> COMPILER = cl
-> Compiler flags:
COMPFLAGS = -MD -c -Zp8 -GR -W3 -EHsc- -Zc:wchar_t- -nologo /D_CRT_SECURE_NO_DEPRECATE
OPTIMFLAGS = -O2 -DNDEBUG
DEBUGFLAGS = -Z7
arguments = -IC:\USERS\SUDIP\DOCUME~1\MATLAB\SAIYED\UNTITL~3\SRC
Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS = /MACHINE:AMD64 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /LIBPATH:"C:\PROGRA~1\MATLAB\R2009b\extern\lib\win64\microsoft" /nologo /manifest /manifestfile:"C:\USERS\SUDIP\DOCUME~1\MATLAB\SAIYED\UNTITL~3\SRC\Untitled3.msvc.manifest" mclmcrrt.lib delayimp.lib /delayload:mclmcrrt711.dll
LINKFLAGSPOST =
Name directive = "/out:C:\USERS\SUDIP\DOCUME~1\MATLAB\SAIYED\UNTITL~3\SRC\Untitled3.exe"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo "C:\USERS\SUDIP\DOCUME~1\MATLAB\SAIYED\UNTITL~3\SRC\.res"
-> Resource Linker =
----------------------------------------------------------------
Could not find the compiler "cl" on the DOS path.
Use mbuild -setup to configure your environment properly.
C:\PROGRA~1\MATLAB\R2009B\BIN\MEX.PL: Error: Unable to locate compiler.
Error: An error occurred while shelling out to mbuild (error code = 2).
Unable to build executable.
I cant understand what happen. plz help me. I am in deep trouble. Thank u in advance

Antworten (1)

Walter Roberson
Walter Roberson am 18 Jan. 2012

1 Stimme

Visual Studio 2010 is not a supported compiler for MATLAB R2009b 64 bit. See http://www.mathworks.com/support/compilers/R2009b/win64.html
Also, be sure to install the SDK and 64 bit tools as noted in point 6 at the bottom of that page.

8 Kommentare

SUDIP PODDAR
SUDIP PODDAR am 20 Jan. 2012
Thanks for your valuable suggestion. After installing VS 2008, SDK 2008 & .Net 3.5 I got the following message in matlab R2009b
mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? mbuild -setup
Select a compiler:
[1] Microsoft Visual C++ 2008 Express in C:\Program Files (x86)\Microsoft Visual Studio 9.0
[0] None
Compiler: 1
Please verify your choices:
Compiler: Microsoft Visual C++ 2008 Express
Location: C:\Program Files (x86)\Microsoft Visual Studio 9.0
Are these correct [y]/n? y
***************************************************************************
Warning: Applications/components generated using Microsoft Visual Studio
2008 require that the Microsoft Visual Studio 2008 run-time
libraries be available on the computer used for deployment.
To redistribute your applications/components, be sure that the
deployment machine has these run-time libraries.
*****************************************************************************
Trying to update options file: C:\Users\sudip\AppData\Roaming\MathWorks\MATLAB\R2009b\compopts.bat
From template: C:\PROGRA~1\MATLAB\R2009b\bin\win64\mbuildopts\msvc90freecompp.bat
However package is created. I have one main file in matlab directory as well as lots of supported files & i have another directory which contains lot of files. I want to use both of these directory files While building a project & package . How i will do that. plz help me. Thanks a lot. Maximum files are created using guide.
Kaustubha Govind
Kaustubha Govind am 20 Jan. 2012
You can add the additional files under "Additional Files" in deploytool.
SUDIP PODDAR
SUDIP PODDAR am 23 Jan. 2012
The problem is not solved.So i place all the files under same directory. I have 2 gui figure which consist of inbuild matlab function. and i have another gui figure which consist of function created by user, they are not inbuild. These 3 figure run well under matlab directory. Now when i convert it to exe files , the figure consist of function created by user gives runtime error , but other two run well. I cant understand what happens. plz help me. Thanks for your support.
SUDIP PODDAR
SUDIP PODDAR am 29 Jan. 2012
how can i build exe files that is independent of the processor type. thank you for your support.
Walter Roberson
Walter Roberson am 29 Jan. 2012
You cannot build .exe files that are independent of the processor type. Machine languages are always processor-specific.
SUDIP PODDAR
SUDIP PODDAR am 29 Jan. 2012
ok. but plz give me the solution of the previous problem. plz help me
Walter Roberson
Walter Roberson am 29 Jan. 2012
patient: Doctor, It hurts when I go like this.
doctor: Don't do that.
SUDIP PODDAR
SUDIP PODDAR am 29 Jan. 2012
means that i have 3 figure window. out of this 2 fig window is placed under matlab directorey & another is placed in a directory under matlab directory. The main matlab fig is under matlab directory. But when i create exe files it is created. when i run the exe file all the fig under matlab directory is running well but the fig window which is in a directory under matlab directory is giving some error. I also add all fig window to additional files. but it gives error. plz help me.

Melden Sie sich an, um zu kommentieren.

Kategorien

Produkte

Tags

Gefragt:

am 18 Jan. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by