problem on converting m files to exe files
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponses (1)
Walter Roberson
le 18 Jan 2012
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 commentaires
Voir également
Catégories
En savoir plus sur MATLAB Compiler dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!