Unable to compile SPM12 Mex files on Mac OS Catalonia

13 views (last 30 days)
Dear Mathworks,
I've followed the instructions carefully here: https://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Mac_OS_(Intel)
But SPM12 still does not run on my Mac Catalonia OS (I'm using Matlab 2020a)
Help appreciated,
Thanks,
Samantha Brooks

Answers (1)

Xiaoying ZHI
Xiaoying ZHI on 1 May 2021
Hope you have figured it out. I just encountered some errors and solved successfully on MATLAB R2020b and MacOS Big Sur. Hope they match your problems.
1. When adding the path, I used
addpath(genpath('/full_dir_SPM'))
instead of only "addpath" in the wikibooks, so that other files in subfolders in SPM can be called directly.
2. When executing the GUI, I encountered a popup window saying:
"xx.mexmaci64" cannot be opened because the developer cannot be verified. macOS cannot verify that this app is free from malware.
I solved this by inputting the two lines of commands in this website to Mac terminal, assigning the LOCATION_OF_FIELDTRIP to be the above /full_dir_SPM: https://www.fieldtriptoolbox.org/faq/mexmaci64_cannot_be_opened_because_the_developer_cannot_be_verified/.
Please feel free to tell if this answer does not meet your needs.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!