[FieldTrip] Error using ft_compile_mex>compile_mex_list

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Thu Oct 26 08:13:19 CEST 2023


Hi Sebastian,

The error is low level, and suggests that compilation fails on your system. Can you please provide some relevant information?

-Fieldtrip version used.
-Matlab version used
-Operating system used.
-Type of processor in your Mac.

Thanks,
Jan-Mathijs


On 25 Oct 2023, at 21:29, Sebastian Sauppe via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

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/<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fieldtriptoolbox.org%2Ffaq%2Fcompile%2F&data=05%7C01%7Cfieldtrip%40science.ru.nl%7Ce4fc6682164f41049ec608dbd5eaa6c1%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638338976017550695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=PKmWKNDw51sCCC4EUEZ78dhcVYRB7pYINRNf0%2BH%2BZw0%3D&reserved=0>. 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/<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fieldtriptoolbox.org%2Ffaq%2Fmexmaci64_cannot_be_opened_because_the_developer_cannot_be_verified%2F&data=05%7C01%7Cfieldtrip%40science.ru.nl%7Ce4fc6682164f41049ec608dbd5eaa6c1%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638338976017550695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=PQAY0qrGlvJMbQRN2CW%2FIXcT6tKzHmZ7Wwc37x2PtJk%3D&reserved=0>).

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
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C01%7Cfieldtrip%40science.ru.nl%7Ce4fc6682164f41049ec608dbd5eaa6c1%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638338976017550695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=czqimKc2ShwFbYqRB70TUjVyfbqrSm%2FPgCJWHCiZMMM%3D&reserved=0>
https://doi.org/10.1371/journal.pcbi.1002202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20231026/ccd829b4/attachment.htm>


More information about the fieldtrip mailing list