Changeset 830
- Timestamp:
- Nov 30, 2014, 7:30:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/compile.m
r809 r830 25 25 26 26 function compile (FctName,SubfctPath) 27 hh=[];% handles of message display window 27 28 if isempty(which('mcc')) 28 29 msgbox_uvmat('ERROR','no Matlab compiler toolbox mcc installed') … … 42 43 SubfctPath=['-I ' SubfctPath];%string indicating the option of including the path SubfctPath 43 44 end 44 disp(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m']) 45 45 46 try 47 disp(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m']) 46 48 eval(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m'])% compile the source file [FctName .m], which produces a binary file FctName and a cmd file [run_' FctName '.sh] 47 49 system(['mv -f ' FctName ' bin/']);%move the binary file FctName to the subdir /bin … … 50 52 system(['chmod +x ' FctName '.sh']); % set the cmd file to 'executable' 51 53 catch ME 52 msgbox_uvmat('ERROR',ME.message);54 hh=msgbox_uvmat('ERROR',ME.message); 53 55 end 54 56 display('** END **') 57 if ~isempty(hh) 55 58 delete(hh) 59 end 56 60 57 61 58
Note: See TracChangeset
for help on using the changeset viewer.