Dear Sidong,
I was not expecting this error message with the compiled MEX files
provided with SPM12. Can you try again after following these
instructions to compile yourself the MEX files on your computer:
https://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux#Compilation
I would also be curious to know the output of the following command from
a terminal:
nm spm_conv_vol.mexa64 | grep mexCallMATLAB
Best regards,
Guillaume.
On 27/08/2020 22:56, Sidong Zhang wrote:
> Hi all,
>
> I am running clinica t1 volume pipeline on ADNI brain MRI images, while
> SPM raises the error:
>
> ------------------------------------------------------------------------
>
> 27-Aug-2020 17:10:05 - Running job #1
>
> ------------------------------------------------------------------------
>
> 27-Aug-2020 17:10:06 - Running 'Segment'
>
>
> SPM12: spm_preproc_run (v7670) 17:10:06 - 27/08/2020
>
> ========================================================================
>
> Segment
> /tmp/tmp60if0qkv/t1-volume-tissue-segmentation/c680e1af1443e2ab64f329aafb60816b9c71da29/2-SpmSegmentation/sub-ADNI002S0685_ses-M60_T1w.nii,1
>
> 27-Aug-2020 17:13:41 - Failed 'Segment'
>
> Invalid MEX-file
> '/mnt/nfs/work1/mfiterau/sidongzhang/spm12/spm_conv_vol.mexa64':
> /mnt/nfs/work1/mfiterau/sidongzhang/spm12/spm_conv_vol.mexa64: undefined
> symbol: mexCallMATLABWithObject
>
> In file "/mnt/nfs/work1/mfiterau/sidongzhang/spm12/spm_preproc_write8.m"
> (v7415), function "clean_gwc" at line 593.
>
> In file "/mnt/nfs/work1/mfiterau/sidongzhang/spm12/spm_preproc_write8.m"
> (v7415), function "spm_preproc_write8" at line 295.
>
> In file "/mnt/nfs/work1/mfiterau/sidongzhang/spm12/spm_preproc_run.m"
> (v7670), function "run_job" at line 171.
>
> In file "/mnt/nfs/work1/mfiterau/sidongzhang/spm12/spm_preproc_run.m"
> (v7670), function "spm_preproc_run" at line 41.
>
> In file
> "/mnt/nfs/work1/mfiterau/sidongzhang/spm12/config/spm_cfg_preproc8.m"
> (v7629), function "spm_local_preproc_run" at line 474.
>
>
> The following modules did not run:
>
> Failed: Segment
>
>
> which suggests that the *spm_conv_vol.mexa64 *file in SPM12 is invalid
> due to an undefined symbol *mexCallMATLABWithObject* in it. My running
> environment is SPM12 and matlab r2013b. Are there any ways to solve this
> issue?
>
> Best,
> Sidong Zhang
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|