[FieldTrip] Error: Undefined function 'mxSerialize_cpp'

"Jörn M. Horschig" jm.horschig at donders.ru.nl
Tue May 20 11:58:11 CEST 2014


Hi Vitoria,

hope you're enjoying Berkeley ;)
I assume the same error will occur for more people in a bit. We'll 
discuss it in the next FT meeting tomorrow. In the meanwhile, check this 
out (I responded to Sara last week, who got the same error):

> I guess you are not using a mac. What you describe concerns bug 2452 
> on our Bugzilla page:
> http://bugzilla.fcdonders.nl/show_bug.cgi?id=2452
> which pertains to some undocumented change in Matlab. Therefore it is 
> necessary to use a different mxserialize function that from matlab 
> 2014a onwards  than before. This is a c++ function, which requires to 
> be compiled for each platform independently. In FieldTrip, this file 
> exists e.g. in fileio/private but only for MacOS 64-bit platforms. 
> Apparently, we still need to compile it for MacOS 32bit, Windows and 
> Linux platforms. I guess we should do that quite soon I'll bring it up 
> in today's FT meeting so that hopefully from tomorrow onwards it 
> should work.
>
> btw, for you it will help to go to the FieldTrip/src directory in 
> Matlab and type
> >> mex mxSerialize_cpp.cpp
>
> Then Matlab will mex (~compile) the file for you. You can then copy 
> that file to your matlab code directory and everything should work out 
> fine for you. I'll keep you updated on this.
>

Best,
Jörn

On 5/19/2014 11:14 PM, Vitoria Piai wrote:
> Hello everyone,
>
> I'm getting a low-level error (below) when running ft_singleplotER to 
> plot FFTs.
> I recently changed to Matlab2014a so I'm guessing that's why I'm 
> getting the error (different FT versions give same error for as far 
> back in time as I could come). Does anyone know a way around this issue?
> Thanks a lot, Vitoria
>
> Undefined function 'mxSerialize_cpp' for input arguments of type 
> 'struct'.
>
> Error in mxSerialize (line 35)
>   argout = mxSerialize_cpp(argin);
>
> Error in ft_preamble_provenance (line 67)
>     cfg.callinfo.inputhash{iargin} = CalcMD5(mxSerialize(tmparg));
>
> Error in ft_preamble (line 54)
>   evalin('caller', ['ft_preamble_' cmd]);
>
> Error in ft_singleplotER (line 109)
> ft_preamble provenance varargin
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip


-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands




More information about the fieldtrip mailing list