Changeset 830


Ignore:
Timestamp:
Nov 30, 2014, 7:30:37 PM (6 years ago)
Author:
sommeria
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/compile.m

    r809 r830  
    2525
    2626function compile (FctName,SubfctPath)
     27hh=[];% handles of message display window
    2728if isempty(which('mcc'))
    2829    msgbox_uvmat('ERROR','no Matlab compiler toolbox mcc installed')
     
    4243    SubfctPath=['-I ' SubfctPath];%string indicating the option of including the path SubfctPath
    4344end
    44 disp(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m'])
     45
    4546try
     47    disp(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m'])
    4648    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]
    4749    system(['mv -f ' FctName ' bin/']);%move the binary file FctName to the subdir /bin
     
    5052    system(['chmod +x ' FctName '.sh']); % set the cmd file to 'executable'
    5153catch ME
    52     msgbox_uvmat('ERROR',ME.message);
     54    hh=msgbox_uvmat('ERROR',ME.message);
    5355end
    5456display('** END **')
     57if ~isempty(hh)
    5558delete(hh)
     59end
    5660
    5761
    58 
Note: See TracChangeset for help on using the changeset viewer.