how can i convert my mfile to .exe

3 views (last 30 days)
tabassum
tabassum on 29 Nov 2012
i have tried the following code-
mcc -m convertfile
but the following massage is showed
To get started, select MATLAB Help or Demos from the Help menu.
Warning: No matching builtin function available for C:\MATLAB7\toolbox\simulink\simulink\set_param.bi
Select a compiler:
[1] Lcc C version 2.4 in C:\MATLAB7\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: [2]
mbuild: No compiler selected. No action taken.
C:\MATLAB7\BIN\WIN32\MEX.PL: Error: No compiler options file could be found to compile source code. Please run "mbuild -setup" to rectify.
??? Error using ==> mbuild
Unable to complete successfully
??? Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable (specify the -v option for more information).
>> mcc -m -I /filles/C:\MATLAB7\work -d /files/Desktop convertfile
To get started, select MATLAB Help or Demos from the Help menu.
Warning: (PM): Directory access failure: /filles/C:\MATLAB7\work.
Warning: No matching builtin function available for C:\MATLAB7\toolbox\simulink\simulink\set_param.bi
------------------------------------------------------------------------
Segmentation violation detected at Wed Nov 28 12:23:35 2012
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.0.0.19920 (R14)
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 15 Stepping 13, GenuineIntel
Virtual Machine: Java 1.4.2 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
(mixed mode)
Default Charset: ibm-5348_P100-1997
Register State:
EAX = 00cd4fec EBX = 000f0015
ECX = 0fec5020 EDX = 00000004
ESI = 00000000 EDI = 00cddfb8
EBP = 00cd54d8 ESP = 00cd54c4
EIP = 78714ceb FLG = 00010246
Stack Trace:
[0] libut.dll:void __cdecl ut_clear_protected_items(struct _error_context *)(0x00cddfb8, 0x00cd54f8 "MATLAB:com_err_unable_to_open_fi..", 983061, 0x00cd5d1c) + 43 bytes
[1] libut.dll:_ut_verror(0x00cddfb8, 983061, 0x00cd5d1c, 0x00cd5ee0 "ì^Í") + 55 bytes
[2] libut.dll:_ut_error(0x00cddfb8, 983061, 0x291afb78 "/files/Desktop\convertfile_main...", 0x0155fa58 "No such file or directory") + 20 bytes
[3] compiler.dll:_com_generate_main_file(0x00cd6ca4 "ØßÍ", 0x00cd5ff8 "dcÍ", 0x29db0298, 0x00cd6ca4 "ØßÍ") + 213 bytes
[4] compiler.dll:_com_generate_main_wrapper(0x00cd6ca4 "ØßÍ", 0x00cd625c, 0x00cd6ca4 "ØßÍ", 0) + 31 bytes
[5] compiler.dll:void __cdecl generate_wrapper_file(struct _compiler_context *,struct _Mfile_record_list *)(0x00cd63a4 "deploy", 0x00cd6ca4 "ØßÍ", 0x00cdb534, 0) + 520 bytes
[6] compiler.dll:void __cdecl M2CCpp(struct _compiler_context *)(0x00cd6ca4 "ØßÍ", 0x00cd6c44 "À¶Í", 0x29db4507, 0x00cd6ca4 "ØßÍ") + 3893 bytes
[7] compiler.dll:void __cdecl M2Target(struct _compiler_context *)(0x00cd6ca4 "ØßÍ", 0x00cdb534, 0x00cddfd8 "¸ßÍ", 0x00cde77c) + 41 bytes
[8] compiler.dll:void __cdecl run_compiler_common(struct _compiler_context *,struct _compiler_settings *,int (__cdecl*)(char const *),char,void (__cdecl*)(void *,bool,enum LICENSE_TYPE,char const *,void * *,void * *),void *)(0x00cddfd8 "¸ßÍ", 0x00cdb534, 0x0b5e16c6, 39) + 1463 bytes
[9] compiler.dll:_compiler(0x00cdb534, 0x0b5e16c6, 39, 7) + 276 bytes
[10] mcc.dll:_try_compile(0x00cddfb8, 0x00cdd768 "ØßÍ", 0x00cdb750 "h×Í", 0) + 58 bytes
[11] libut.dll:_ut_try_catch_id(0x00cddfb8, 0x00cdd768 "ØßÍ", 0x0b5e12a0, 0x0b5e12e0) + 100 bytes
[12] mcc.dll:_mexFunction(7, 0x00cde71c, 6, 0x00cde77c) + 677 bytes
[13] libmex.dll:_mexRunMexFile(0, 0x00cde71c, 6, 0x00cde77c) + 71 bytes
[14] libmex.dll:public: virtual void __thiscall Mfh_mex::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00cde71c, 6, 0x00cde77c) + 157 bytes
[15] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00cde71c, 6, 0x00cde77c) + 273 bytes
[16] m_interpreter.dll:_inDispatchFromStack(512, 0x29897924 "mcc", 0, 6) + 891 bytes
[17] m_interpreter.dll:enum opcodes __cdecl inDispatchCall(char const *,int,int,int,int *,int *)(0x29897924 "mcc", 512, 0, 6) + 111 bytes
[18] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *)(2, 0, 0, 0) + 2411 bytes
[19] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *)(2, 0, 0, 0) + 272 bytes
[20] m_interpreter.dll:_inInterPcode(2, 0x7876f2d8, 0, 0) + 69 bytes
[21] m_interpreter.dll:enum inExecutionStatus __cdecl in_local_call_eval_function(int *,struct _pcodeheader *,int *,struct mxArray_tag * * const,enum inDebugCheck)(0x00cdf2c8, 0x00cdf3bc, 2, 0x0f9c3010 "mcc -m -I /filles/C:\MATLAB7\wor..") + 162 bytes
[22] m_interpreter.dll:$L72592(0x7876f2d8, 0x0f9c3010 "mcc -m -I /filles/C:\MATLAB7\wor..", 64, 0) + 196 bytes
[23] m_interpreter.dll:enum inExecutionStatus __cdecl inEvalCmdWithLocalReturnandtype(char const *,int *,enum inDebugCheck)(0, 2, 1, 0x00cdf44c "ôôÍ") + 86 bytes
[24] m_interpreter.dll:_inEvalCmdNoEnd(0x0f9c3010 "mcc -m -I /filles/C:\MATLAB7\wor..", 0x00cdf4e4, 0x00cdf4a0, 0x014c1dd8) + 16 bytes
[25] bridge.dll:_mnParser(0x7c80b741, 0x014c1dd8, 0, 0) + 431 bytes
[26] mcr.dll:public: void __thiscall mcrInstance::mnParser(void)(337210, 0x4d5c3a43, 0x414c5441, 0x625c3742) + 87 bytes
[27] MATLAB.exe:0x00401d2f(4194304, 0, 337210, 0x014c1dd8)
[28] MATLAB.exe:0x00403e45(0x80000001, 0x0185f180, 0x7ffd5000, 0x805512fa)
[29] KERNEL32.dll:0x7c817077(0x00403cc0 "jth(U@", 0, 0, 0)
Please follow these steps in reporting this problem to The MathWorks so
that we have the best chance of correcting it:
1. Send this crash report to segv@mathworks.com for automated analysis.
For your convenience, this information has been recorded in:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\matlab_crash_dump.256
2. Also, if the problem is reproducible, send the crash report to
support@mathworks.com along with:
- A specific list of steps that will reproduce the problem
- Any M, MEX, MDL or other files required to reproduce the problem
- Any error messages displayed to the command window
A technical support engineer will contact you with further information.
Thank you for your assistance. Please save your workspace and restart
MATLAB before continuing your
what can i do know?
p.s. my original code is a GUI file used for interfacing with parallel port. and i am currently using matlab 7
  5 Comments
John Petersen
John Petersen on 29 Nov 2012
Directory access failure: /filles/C:\MATLAB7\work
Fix your path.
Kaustubha Govind
Kaustubha Govind on 30 Nov 2012
Even if you're able to fix this issue with John and Walter's recommendations, I would recommend that you report this as a bug to MathWorks Tech Support because simply running the mcc command should never cause a SegV.

Sign in to comment.

Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!