البته باید بگم که از اونجایی که سرور سایت با مشکل مواجه شده و اطلاعات این 2-3 هفته ی اخیر از بین رفته من مجبور شدم از دوباره این موضوع رو مطرح کنم ....دوستان گرامی در تاپیک های دیگر چندین روش برای تبدیل mfile به فایل exe عنوان کردند از جمله deploytool یا mcc -m که من نمی تونم از هیچ کدوم جواب بگیرم...من خطاهای متلب در رو زیر میذارم تا دوستان منو راهنمایی کنند
هنگام کار با deploytool پس از چند لحظه خطا میده بصورت زیر...
البته هنگام استفاده از دستور mcc -m هم خطای زیر را میدهد
اگر کسی راهنمایی کنه ممنون میشم..
هنگام کار با deploytool پس از چند لحظه خطا میده بصورت زیر...
Compiler version: 4.8 (R2008a)
Warning: Duplicate directory name: C:\Documents and
Settings\Strawberry.\My Documents\MATLAB.
mcc -o 'Untitled5' -W 'main' -d 'C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src' -T 'link:exe' -v 'C:\Documents and Settings\Strawberry.\My Documents\MATLAB\test_f.m'
Processing D:\matlab\toolbox\matlab\mcc.enc
Processing C:\Documents and Settings\Strawberry.\My Documents\MATLAB\test_f.fig
Processing D:\matlab\toolbox\matlab\guide\guideopts.fig
Processing D:\matlab\toolbox\matlab\winfun\actxcontrolselect. fig
Processing D:\matlab\toolbox\matlab\winfun\actxcontrolcreatep roperty.fig
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\mccExcludedFiles.lo g contains a list of functions excluded from the CTF archive.
1 item(s) added.
Generating MATLAB path for the compiled application...
Created 38 path items.
Begin validation of MEX files: Wed Jul 29 01
30 2009
Validating 'D:\matlab\toolbox\compiler\deploy\deploywhic h.mexw32'.
No conflicting M-file found.
Validating 'D:\matlab\toolbox\compiler\deploy\readline.m exw32'.
No conflicting M-file found.
End validation of MEX files: Wed Jul 29 01
30 2009
Deleting 2 temporary MEX authorization files.
Removing: 'C:\DOCUME~1\STRAWB~1.TAL\LOCALS~1\Temp\mathw orks_tmp_2736_20719_2736.auth'.
Removing: 'C:\DOCUME~1\STRAWB~1.TAL\LOCALS~1\Temp\mathw orks_tmp_2736_9570_2736.auth'.
Parsing file "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\test_f.m"
(Referenced from: "Compiler Command Line"
.
Parsing file "D:\matlab\toolbox\compiler\deploy\deployprin t.m"
(Referenced from: "Compiler Command Line"
.
Parsing file "D:\matlab\toolbox\compiler\deploy\printdlg.m "
(Referenced from: "Compiler Command Line"
.
Generating file "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_main.c&qu ot;.
Generating file "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\readme.txt".
Generating file "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_mcc_compo nent_data.c".
Executing command: mbuild -O -v -output "Untitled5" -I"C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src" "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_main.c&qu ot; "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_mcc_compo nent_data.c" -link exe -outdir "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src"
This is mbuild Copyright 1984-2006 The MathWorks, Inc.
-> Default options filename found in C:\Documents and Settings\Strawberry.\Application Data\MathWorks\MATLAB\R2008a
----------------------------------------------------------------
-> Options file = C:\Documents and Settings\Strawberry.\Application Data\MathWorks\MATLAB\R2008a\compopts.bat
-> COMPILER = cl
-> Compiler flags:
COMPFLAGS = -c -Zp8 -G5 -GX -W3 -nologo
OPTIMFLAGS = -O2 -DNDEBUG
DEBUGFLAGS = -Z7
arguments = "-IC:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src"
Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS = kernel32.lib user32.lib gdi32.lib advapi32.lib oleaut32.lib ole32.lib /LIBPATH:"D:\matlab\extern\lib\win32\microsoft " /nologo mclmcrrt.lib
LINKFLAGSPOST =
Name directive = "/out:C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5.exe"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\.res"
-> Resource Linker =
----------------------------------------------------------------
--> cl "-IC:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src" -c -Zp8 -G5 -GX -W3 -nologo /FoC:\DOCUME~1\STRAWB~1.TAL\LOCALS~1\Temp\mbuild_yV euvB\Untitled5_main.obj -ID:\matlab\extern\include -ID:\matlab\********\include -O2 -DNDEBUG "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_main.c&qu ot;
D:\MATLAB\BIN\MEX.PL: Error: Compile of 'C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_main.c� 39; failed.
Error: An error occurred while shelling out to mbuild (error code = 53).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
There were errors during compilation process.
Warning: Duplicate directory name: C:\Documents and
Settings\Strawberry.\My Documents\MATLAB.
mcc -o 'Untitled5' -W 'main' -d 'C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src' -T 'link:exe' -v 'C:\Documents and Settings\Strawberry.\My Documents\MATLAB\test_f.m'
Processing D:\matlab\toolbox\matlab\mcc.enc
Processing C:\Documents and Settings\Strawberry.\My Documents\MATLAB\test_f.fig
Processing D:\matlab\toolbox\matlab\guide\guideopts.fig
Processing D:\matlab\toolbox\matlab\winfun\actxcontrolselect. fig
Processing D:\matlab\toolbox\matlab\winfun\actxcontrolcreatep roperty.fig
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\mccExcludedFiles.lo g contains a list of functions excluded from the CTF archive.
1 item(s) added.
Generating MATLAB path for the compiled application...
Created 38 path items.
Begin validation of MEX files: Wed Jul 29 01

Validating 'D:\matlab\toolbox\compiler\deploy\deploywhic h.mexw32'.
No conflicting M-file found.
Validating 'D:\matlab\toolbox\compiler\deploy\readline.m exw32'.
No conflicting M-file found.
End validation of MEX files: Wed Jul 29 01

Deleting 2 temporary MEX authorization files.
Removing: 'C:\DOCUME~1\STRAWB~1.TAL\LOCALS~1\Temp\mathw orks_tmp_2736_20719_2736.auth'.
Removing: 'C:\DOCUME~1\STRAWB~1.TAL\LOCALS~1\Temp\mathw orks_tmp_2736_9570_2736.auth'.
Parsing file "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\test_f.m"
(Referenced from: "Compiler Command Line"

Parsing file "D:\matlab\toolbox\compiler\deploy\deployprin t.m"
(Referenced from: "Compiler Command Line"

Parsing file "D:\matlab\toolbox\compiler\deploy\printdlg.m "
(Referenced from: "Compiler Command Line"

Generating file "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_main.c&qu ot;.
Generating file "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\readme.txt".
Generating file "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_mcc_compo nent_data.c".
Executing command: mbuild -O -v -output "Untitled5" -I"C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src" "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_main.c&qu ot; "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_mcc_compo nent_data.c" -link exe -outdir "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src"
This is mbuild Copyright 1984-2006 The MathWorks, Inc.
-> Default options filename found in C:\Documents and Settings\Strawberry.\Application Data\MathWorks\MATLAB\R2008a
----------------------------------------------------------------
-> Options file = C:\Documents and Settings\Strawberry.\Application Data\MathWorks\MATLAB\R2008a\compopts.bat
-> COMPILER = cl
-> Compiler flags:
COMPFLAGS = -c -Zp8 -G5 -GX -W3 -nologo
OPTIMFLAGS = -O2 -DNDEBUG
DEBUGFLAGS = -Z7
arguments = "-IC:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src"
Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS = kernel32.lib user32.lib gdi32.lib advapi32.lib oleaut32.lib ole32.lib /LIBPATH:"D:\matlab\extern\lib\win32\microsoft " /nologo mclmcrrt.lib
LINKFLAGSPOST =
Name directive = "/out:C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5.exe"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\.res"
-> Resource Linker =
----------------------------------------------------------------
--> cl "-IC:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src" -c -Zp8 -G5 -GX -W3 -nologo /FoC:\DOCUME~1\STRAWB~1.TAL\LOCALS~1\Temp\mbuild_yV euvB\Untitled5_main.obj -ID:\matlab\extern\include -ID:\matlab\********\include -O2 -DNDEBUG "C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_main.c&qu ot;
D:\MATLAB\BIN\MEX.PL: Error: Compile of 'C:\Documents and Settings\Strawberry.\My Documents\MATLAB\Untitled5\src\Untitled5_main.c� 39; failed.
Error: An error occurred while shelling out to mbuild (error code = 53).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
There were errors during compilation process.
البته هنگام استفاده از دستور mcc -m هم خطای زیر را میدهد
mcc -md exe test_f.m
D:\MATLAB\BIN\MEX.PL: Error: Compile of 'exe\test_f_main.c' failed.
Error: An error occurred while shelling out to mbuild (error code = 53).
Unable to build executable (specify the -v option for more information).
??? Error using ==> mcc
Error executing mcc, return status = 1.
D:\MATLAB\BIN\MEX.PL: Error: Compile of 'exe\test_f_main.c' failed.
Error: An error occurred while shelling out to mbuild (error code = 53).
Unable to build executable (specify the -v option for more information).
??? Error using ==> mcc
Error executing mcc, return status = 1.
اگر کسی راهنمایی کنه ممنون میشم..
دیدگاه