[FieldTrip] Error using ft_compile_mex>compile_mex_list

Sebastian Sauppe sauppe.s at gmail.com
Wed Oct 25 21:29:43 CEST 2023


Dear Fieldtrip community,

I am trying to compile the MEX files using "ft_compile_mex(true)“ on my Mac as described here: https://www.fieldtriptoolbox.org/faq/compile/. I also already removed all MEX files from the quarantine (https://www.fieldtriptoolbox.org/faq/mexmaci64_cannot_be_opened_because_the_developer_cannot_be_verified/).

However, after the ft_compile_mex function ran for a while, I get these errors. Does anybody know what they mean?

Error using ft_compile_mex>compile_mex_list
Error using mex
PATH_TO_FIELDTRIP/src/mxSerialize_cpp.cpp:10:1: error: unknown type name
'EXTERN_C'
EXTERN_C mxArray* mxSerialize(mxArray const *);
^
PATH_TO_FIELDTRIP/src/mxSerialize_cpp.cpp:10:17: error: expected ';' after
top level declarator
EXTERN_C mxArray* mxSerialize(mxArray const *);
                ^
                ;
PATH_TO_FIELDTRIP/src/mxSerialize_cpp.cpp:11:1: error: unknown type name
'EXTERN_C'
EXTERN_C mxArray* mxDeserialize(const void *, size_t);
^
PATH_TO_FIELDTRIP/src/mxSerialize_cpp.cpp:11:17: error: expected ';' after
top level declarator
EXTERN_C mxArray* mxDeserialize(const void *, size_t);
                ^
                ;
PATH_TO_FIELDTRIP/src/mxSerialize_cpp.cpp:22:31: error: use of undeclared
identifier 'mxSerialize'
        plhs[0] = (mxArray *) mxSerialize(prhs[0]);
                              ^
5 errors generated.


Error in ft_compile_mex (line 114)
  compile_mex_list(L, ftpath, force);

Kind regards,
Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20231025/f90cace9/attachment.htm>


More information about the fieldtrip mailing list