Dear Magnús,
if you want to compile SPM yourself, you should use the function
config/spm_make_standalone.m as described here:
https://en.wikibooks.org/wiki/SPM/Standalone#Frequently_Asked_Questions
We do also provide precompiled versions of SPM8 and SPM12, just email me
to be given access to them.
Best wishes,
Guillaume.
On 23/11/14 11:44, "Magnús Örn Úlfarsson" wrote:
> Dear SPM experts,
>
> I would greatly appreciate any help on getting around the following
> problem involving compiling and running SPM scripts:
>
> For the purpose of doing SPM computations on a computer cluster I'm trying
> run compiled SPM scripts using the Matlab Compiler on the Linux version of
> Matlab 8.4.0.150421 (R2014b) and SPM8 (I have also tried SPM12).
>
> My SPM scripts use the matlabbatch system and typically look like this:
>
> ------
> spm('defaults','fMRI');
> spm_jobman('initcfg');
> load batch.mat % matlabbatch
>
> etc...
>
> spm_jobman('run',matlabbatch);
> -------
>
> After compiling the code succesfully I get the following error when I run it:
>
> -----
> In run_first_level_analysis at 86
> Undefined function or variable 'cfg_mlbatch_appcfg_master'.
> Error in cfg_util>local_initapps (line 1422)
> Error in cfg_util (line 737)
> Error in spm_jobman (line 173)
> Error in spm_jobman (line 108)
> Error in run_first_level_analysis (line 86)
> ------
>
> Thanks,
> Magnus Ulfarsson,
> University of Iceland / Decode Genetics
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|