Hi,
there is indeed a syntax error in FieldTrip's read_tobii_tsv.m and you
will also notice that some files of the MCI toolbox are not compatible
with compilation. These functions are not used yet so you can simply
remove them from your SPM installation before compilation:
* delete file spm12/external/fieldtrip/fileio/private/read_tobii_tsv.m
* delete folder spm12/toolbox/mci/
That said, if you want to add a set of your own functions to SPM, you
only need a single compilation: just copy all of your functions within
the SPM directory (or any subdirectory) and run spm_make_standalone.m.
If your code only consists of a script calling SPM and MATLAB functions,
you can directly directly use the standalone version of SPM we provide
(see spm_standalone.m for syntax).
Best regards,
Guillaume.
On 21/03/16 21:09, SUBSCRIBE SPM Anonymous wrote:
> Hi
>
> I am trying to build a matlab (R2015b) standalone linux application that makes use of spm12 functions. If my understanding is correct, before i build my binary (using the command 'mcc -m myFile.m', where myfile.m is the file i want to compute ), I need to compile a binary version of spm using the matlab script 'spm12/config/spm_make_standalone.m'. Unfortunately, when i run this script, i get the following error (screen capture of console display is attached as well):
>
> %%%%%%%%%%%%%%
> % START ERROR MESSAGE
> %%%%%%%%%%%%%%
>
> Compiler version: 6.1 (R2015b)
> Dependency analysis by REQUIREMENTS.
> Error using matlab.depfun.internal.cacheMtree (line 29)
> MATLAB code '/home/pzille/matlab/spm12/external/fieldtrip/fileio/private/read_tobii_tsv.m' contains the following
> syntax error(s):
> L 71 (C 62): SYNER: Parse error at ';': usage might be invalid MATLAB syntax.
>
> Error in isClassdef>hasClassDef (line 27)
> mt = matlab.depfun.internal.cacheMtree(file);
>
> Error in isClassdef (line 13)
> tf = hasClassDef(file);
>
> Error in className_impl (line 118)
> elseif isClassdef(whichResult)
>
> Error in className (line 13)
> [name, clsFile] = className_impl(whichResult);
>
> Error in matlab.depfun.internal.MatlabSymbol/determineClassType (line 742)
> [name, clsFile] = className(symObj.WhichResult);
>
> Error in matlab.depfun.internal.MatlabSymbol/getTypeUsingEnvironment (line 706)
> determineClassType(symObj);
>
> Error in matlab.depfun.internal.MatlabSymbol/determineMatlabType (line 644)
> getTypeUsingEnvironment(symObj);
>
> Error in matlab.depfun.internal.MatlabInspector>determineSymbolType (line 696)
> determineMatlabType(symbol);
>
> Error in matlab.depfun.internal.MatlabInspector.resolveType (line 111)
> determineSymbolType(symbol, fsCache, addExc);
>
> Error in matlab.depfun.internal.MatlabInspector/determineType (line 155)
> matlab.depfun.internal.MatlabInspector.resolveType( ...
>
> Error in matlab.depfun.internal.Completion/resolveRootSet (line 1095)
> determineType(inspector, name);
>
> Error in matlab.depfun.internal.Completion/initializeRootSet (line 1347)
> [rootSymbols, unknownType] = resolveRootSet(obj, files);
>
> Error in matlab.depfun.internal.Completion (line 2171)
> obj.RootSet = initializeRootSet(obj, files);
>
> Error in matlab.depfun.internal.requirements (line 196)
> c = matlab.depfun.internal.Completion(items, tgt, 'useDatabase');
>
> Error in spm_make_standalone (line 91)
> mcc('-m', '-C', '-v',...
>
> Error using mcc
> Unexpected error while determining required deployable files. Compilation terminated.
>
> Error in spm_make_standalone (line 91)
> mcc('-m', '-C', '-v',...
>
> %%%%%%%%%%%%%%
> % END ERROR MESSAGE
> %%%%%%%%%%%%%%
>
> I tried to look up online if anyone ran into the same error, but couldn't find anything. Has any here ever experienced this error? If yes, any help would be greatly appreciated.
>
> Thanks!
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|