Re: Error when using mcc command



OK, now try running the mbuild command explicitly, both from within MATLAB
and at a DOS prompt. Note that

In MATLAB:
cd C:\Program Files\WiiLAB\WiiLAB_Matlab\test progs
mbuild -O -v -output test test_main.c test_mcc_component_data.c -link
exe

At DOS prompt:

C:/> cd "C:\Program Files\WiiLAB\WiiLAB_Matlab\test progs"
C:/> mbuild -O -v -output "test" "test_main.c"
"test_mcc_component_data.c" -link exe

I think the problem is that DOS can't find MBUILD on your path. The error
messages generated by the two tests above should help confirm (or disprove)
that.

"Marshall Hudson" <hudsonmc@xxxxxxxxxxxxxxx> wrote in message
news:gma9nq$2ht$1@xxxxxxxxxxxxxxxxxxxxx
Absolutely. Here is the verbose output. Thank you very much for the quick
reply.

mcc -mv test
Compiler version: 4.8 (R2008a)
Processing C:\Program Files\MATLAB\R2008a\toolbox\matlab\mcc.enc
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file mccExcludedFiles.log 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: Tue Feb 03 15:31:43 2009
Validating 'C:\Program
Files\MATLAB\R2008a\toolbox\compiler\deploy\clc.mexw32'.
Found M-file 'C:\Program
Files\MATLAB\R2008a\toolbox\compiler\deploy\clc.m'.
MEX file
'C:\Program Files\MATLAB\R2008a\toolbox\compiler\deploy\clc.mexw32'
is valid. It contains 'mexFunction.'
Validating 'C:\Program
Files\MATLAB\R2008a\toolbox\compiler\deploy\deploywhich.mexw32'.
No conflicting M-file found.
Validating 'C:\Program
Files\MATLAB\R2008a\toolbox\compiler\deploy\readline.mexw32'.
No conflicting M-file found.
End validation of MEX files: Tue Feb 03 15:31:44 2009
Deleting 3 temporary MEX authorization files.
Removing:
'C:\DOCUME~1\hudsonmc\LOCALS~1\Temp\mathworks_tmp_8768_16372_8768.auth'.
Removing:
'C:\DOCUME~1\hudsonmc\LOCALS~1\Temp\mathworks_tmp_8768_13800_8768.auth'.
Removing:
'C:\DOCUME~1\hudsonmc\LOCALS~1\Temp\mathworks_tmp_8768_9813_8768.auth'.
Parsing file "C:\Program Files\WiiLAB\WiiLAB_Matlab\test progs\test.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program
Files\MATLAB\R2008a\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program
Files\MATLAB\R2008a\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Generating file "test_main.c".
Generating file "C:\Program Files\WiiLAB\WiiLAB_Matlab\test
progs\readme.txt".
Generating file "test_mcc_component_data.c".
Executing command: mbuild -O -v -output "test" "test_main.c"
"test_mcc_component_data.c" -link exe
'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.


.



Relevant Pages

  • Re: Deploytool problems
    ... Im trying to use the matlab compiler deploy tool in revision 2008b. ... First i had a problem getting mbuild to run but i sorted that by changing the order of the environmental variables, however i now get this issue: ... Also i have checked i have the cmd command in the system32 windows folder and that it works using the run command in windows XP. ...
    (comp.soft-sys.matlab)
  • C++ shared library
    ... I am trying to build a C++ shared library on Windows with the ... following command: ... But I get this error in MATLAB 6.5.1: ... An error occurred while shelling out to mbuild (error code ...
    (comp.soft-sys.matlab)
  • Re: Compiler problem
    ... Yes, I installed VS2005 in my machine, However, I can not find VS2005 compiler in MATLAB with mbuild -setup command, and the deploytool has problem too. ...
    (comp.soft-sys.matlab)
  • Matlab 2007; Visual Studio 2008
    ... However the mbuild -setup command cannot find this compiler, perhaps because it was made AFTER the Matlab release. ...
    (comp.soft-sys.matlab)
  • Re: Matlab -- Venting, Plus Miscellaneous Questions
    ... There are no command lines. ... Matlab is obviously intensively command-driven -- which means, ... print or online documentation. ... calculations, but symbolic calculations keep showing some ridiculous ...
    (sci.math.symbolic)