Deploytool Error
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to compile a GUI using deploytool and I keep getting the following log and error:
Warning: Duplicate directory name: /private/tmp/../../Users/brad/Research/Data/Kinematics_GUI.
Warning: Duplicate directory name: /Users/brad/Research/Data/Kinematics_GUI.
mcc -o 'Cat_GUI' -W 'main' -d '/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src' -T 'link:exe' -v '/Users/brad/Research/Data/Kinematics_GUI/Kinematics_GUI.m'
Compiler version: 4.10 (R2009a)
Processing /Users/brad/Research/Data/Kinematics_GUI/Kinematics_GUI.fig
Processing /Applications/MATLAB_R2009a.app/toolbox/signal/mcc.enc
Processing /Users/brad/Research/Data/Kinematics_GUI/slider_test.fig
Processing /Users/brad/Research/Data/Kinematics_GUI/Swing_Stance_GUI.fig
Processing /Applications/MATLAB_R2009a.app/toolbox/matlab/guide/guideopts.fig
Processing /Users/brad/Research/Data/Kinematics_GUI/Time_Normalization_GUI.fig
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file /Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
0 item(s) added.
Generating MATLAB path for the compiled application...
Created 40 path items.
Begin validation of MEX files: Tue Aug 30 15:44:48 2011
End validation of MEX files: Tue Aug 30 15:44:48 2011
Parsing file "/Users/brad/Research/Data/Kinematics_GUI/Kinematics_GUI.m"
(Referenced from: "Compiler Command Line").
Parsing file "/Applications/MATLAB_R2009a.app/toolbox/compiler/deploy/deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "/Applications/MATLAB_R2009a.app/toolbox/compiler/deploy/printdlg.m"
(Referenced from: "Compiler Command Line").
Deleting 0 temporary MEX authorization files.
Generating file "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/Cat_GUI_main.c".
Generating file "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/run_Cat_GUI.sh".
Generating file "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/readme.txt".
Generating file "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/Cat_GUI_mcc_component_data.c".
Executing command: mbuild -O -v -output "Cat_GUI" -I"/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src" "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/Cat_GUI_main.c" "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/Cat_GUI_mcc_component_data.c" -link exe -outdir "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src"
/Applications/MATLAB_R2009a.app/bin/mbuild: line 1862: gcc-4.0: command not found
/Applications/MATLAB_R2009a.app/bin/mbuild: line 1841: gcc-4.0: command not found
----------------------------------------------------------------
-> mbuildopts.sh sourced from directory (DIR = $HOME/.matlab/$REL_VERSION)
FILE = /Users/brad/.matlab/R2009a/mbuildopts.sh
----------------------------------------------------------------
-> TMW_ROOT = /Applications/MATLAB_R2009a.app
-> CC = gcc-4.0
-> CC flags:
CFLAGS = -fno-common -no-cpp-precomp -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I/Applications/MATLAB_R2009a.app/extern/include -DUNIX -DX11
CDEBUGFLAGS = -g
COPTIMFLAGS = -O2 -DNDEBUG
CLIBS = -L/Applications/MATLAB_R2009a.app/bin/maci -lmwmclmcrrt
arguments =
-> LD = gcc-4.0
-> Link flags:
LDFLAGS = -Wl,-twolevel_namespace -undefined error -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -bind_at_load
LDDEBUGFLAGS = -g
LDOPTIMFLAGS = -O
arguments =
----------------------------------------------------------------
-> gcc-4.0 -c "-I/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src" -fno-common -no-cpp-precomp -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I/Applications/MATLAB_R2009a.app/extern/include -DUNIX -DX11 -O2 -DNDEBUG "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/Cat_GUI_main.c" -o "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/Cat_GUI_main".o
/Applications/MATLAB_R2009a.app/bin/mbuild: line 1711: gcc-4.0: command not found
mbuild: compile of ' "/Users/brad/Research/Data/Kinematics_GUI/Cat_GUI/src/Cat_GUI_main.c"' failed.
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 (0x1).
There were errors during compilation process
Any Ideas on where to start? Thank you for the help
0 Kommentare
Antworten (2)
Walter Roberson
am 30 Aug. 2011
gcc-4.0 is not on your system path, but it is set as your compiler.
Did you run
mbuild -setup
to select your compiler?
Lucas García
am 30 Aug. 2011
Let's see if this solves the problem:
3 Kommentare
Lucas García
am 31 Aug. 2011
Hi Brad, the "ln" command has to be executed in the terminal window, not MATLAB command window. Hope that helps.
Siehe auch
Kategorien
Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!