[17376] in Athena Bugs
sun4 8.3.19: matlab_v5.3
daemon@ATHENA.MIT.EDU (Michael Taylor)
Thu Nov 18 09:47:06 1999
Message-Id: <199911181446.JAA24637@catamaran.mit.edu>
To: bugs@MIT.EDU
Date: Thu, 18 Nov 1999 09:46:54 -0500
From: Michael Taylor <mtaylor@MIT.EDU>
System name: catamaran.mit.edu
Type and version: Ultra-5_10 8.3.19 (with mkserv)
Display type: ffb
Shell: /bin/athena/tcsh
Window manager: fvwm95
What were you trying to do?
Convert a Matlab M-file to C and build a stand-alone application of the function using compiler 2.0.
What's wrong:
The conversion to C works okay and the requisite files are generated. However, when the compiler calls the mbuild.m function to build the executable, I receive the following error:
Executing command: mbuild -O -v -output 'constmekftv' 'constmekftv.c' 'constmekftv_main.c' -link exe.
/mit/matlab_v5.3/distrib/bin/mbuild: Command not found.
??? 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).
Error in ==> /mit/matlab_v5.3/distrib/toolbox/compiler/mcc.mexsol
Following this error, I checked to see if mbuild.m was located in the directory where the program was looking for it and it was not. The file is located in /mit/matlab_v5.3/distrib/toolbox/compiler. I copied the file to my home directory and edited the path to make the program look for the mbuild function in my directory. Upon doing this, I received the following error:
Executing command: mbuild -O -v -output 'constmekftv' 'constmekftv.c' 'constmekftv_main.c' -link exe.
/afs/athena.mit.edu/user/m/t/mtaylor/thesis/kfexamples/mbuild: Command not found.
??? 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).
Error in ==> /mit/matlab_v5.3/distrib/toolbox/compiler/mcc.mexsol
This tells me that the program is searching in the correct directory, but still not finding the function. I can't tell if this is a code problem or not, because the only errors I get say that the command can't be located.
What should have happened:
The function should locate the mbuild.m function and build the executable.
Please describe any relevant documentation references:
MATLAB Compiler 2.0 Reference Guide available from the helpdesk.