petersenpeter / CellExplorer

CellExplorer is a graphical user interface, a standardized processing module and data structure for exploring and classifying single cells acquired using extracellular electrodes.
https://cellexplorer.org/
BSD 3-Clause "New" or "Revised" License
96 stars 59 forks source link

Request for CCGHeart.mexmaca64 #102

Closed RunjieTomYi closed 10 months ago

RunjieTomYi commented 11 months ago

Hi Peter, I was trying to compile mex on my mac and XCode 15(the only version MacOS14 can open) is not supported by MATLAB. So running the mex line generates following error. I'm wondering if it's possible for you to compile a CCGHeart with mexmaca64 format. Any other possible solutions are appreciated.

Operating system MacOS Sonoma 14.0

Matlab version R2023b

Matlab error log Building with 'Xcode with Clang'. Error using mex /Users/tomyi/Research/CellExplorer-master/calc_CellMetrics/mex/CCGHeart.c:195:3: error: call to undeclared library function 'memcpy' with type 'void (void , const void , unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] memcpy(mxGetPr(plhs[1]), (void )Pairs, PairCnt*sizeof(unsigned int)); ^ /Users/tomyi/Research/CellExplorer-master/calc_CellMetrics/mex/CCGHeart.c:195:3: note: include the header or explicitly provide a declaration for 'memcpy' 1 error generated.

Screenshots

Screenshot 2023-12-08 at 16 40 45
petersenpeter commented 10 months ago

Hi

I updated the repository with a compiled version for Apple Silicon (CCGHeart.mexmaca64 and FindInInterval.mexmaca64). Could you test and see if this works for you?

RunjieTomYi commented 10 months ago

It's working fine now. Much thanks!