Invalid MEX file /Question re: ft_clusterplot
Andrea Ostendorf
aostendorf at BESA.DE
Mon Feb 22 08:55:05 CET 2010
Dear Fieldtrip community,
When trying to use read_mri, I encountered the error
"??? Invalid MEX-file
'D:\FieldTrip\fieldtrip-20100219\external\spm2\spm_slice_vol.dll': The
specified procedure could not be found.
Proceeding along the lines suggested in the FAQ - changing to the SPM2
subdirectory and trying to compile the mex file again (using the MATLAB
compiler) - I get a long list of error messages, starting with a complaint
about a missing header file. I attach the complete error messages below.
As the error messages show, I use MATLAB R2007A and a new Fieldtrip version.
I have to admit to not having looked up this topic in the discussion list
because of the message that there is a problem with the security
certificate.
Does anyone have an idea? Any help would be very much appreciated.
Regarding ft_clusterplot: I have got the impression that during the check
for the existence of clusters, ft_clusterplot assumes the existence of both
positive and negative clusters, provided that there are any at all
(l.113-115). If there are just positive or negative clusters - as may happen
in the case of one-sided tests - this can lead to an error such as
??? Reference to non-existent field 'negclusters'.
Error in ==> ft_clusterplot at 119
for iNeg = 1:length(stat.negclusters)
All the best
Andrea
-------------
>> cd D:\FieldTrip\fieldtrip-20100219\external\spm2
>> mex spm_slice_vol.c
lcc preprocessor error: spm_slice_vol.c:5 Could not find include file
"spm_mapping.h"
Error spm_slice_vol.c: 6 missing parameter type
Error spm_slice_vol.c: 6 syntax error; found `*' expecting `)'
Error spm_slice_vol.c: 6 skipping `*' `plhs' `[' `]' `,'
Error spm_slice_vol.c: 6 syntax error; found `int' expecting `{'
Error spm_slice_vol.c: 6 missing identifier
Error spm_slice_vol.c: 6 syntax error; found `const' expecting `;'
Error spm_slice_vol.c: 6 redeclaration of `mxArray' previously declared at
spm_slice_vol.c 6
Error spm_slice_vol.c: 6 syntax error; found `*' expecting `;'
Error spm_slice_vol.c: 6 undeclared identifier `prhs'
Error spm_slice_vol.c: 6 illegal expression
Error spm_slice_vol.c: 6 syntax error; found `)' expecting `]'
Error spm_slice_vol.c: 6 skipping `)'
Error spm_slice_vol.c: 7 type error: pointer expected
Error spm_slice_vol.c: 7 type error: pointer expected
Warning spm_slice_vol.c: 7 Statement has no effect
Error spm_slice_vol.c: 7 syntax error; found `{' expecting `;'
Error spm_slice_vol.c: 8 undeclared identifier `MAPTYPE'
Error spm_slice_vol.c: 8 undeclared identifier `map'
Error spm_slice_vol.c: 8 type error: pointer expected
Error spm_slice_vol.c: 9 illegal statement termination
Error spm_slice_vol.c: 9 too many errors
C:\PROGRA~1\MATLAB\R2007A\BIN\MEX.PL: Error: Compile of 'spm_slice_vol.c'
failed.
----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.
More information about the fieldtrip
mailing list