help

18 views
Skip to first unread message

yiwei li

unread,
Oct 21, 2025, 10:12:45 AM (10 days ago) Oct 21
to mcx-users
I'm running mmclab on Mac and keep getting "Undefined function 'mmc'". I've already downloaded the latest Mac
  version of mmclab and mmc and added them to MATLAB 2021's path. However, I don't see the mmc/src folder in the
  latest mmc distribution. When I try to run "make mex" for compilation in mmc/bin, it gives an error "no rule". The
   latest version of mmclab already contains mmc.mexmaca64 and mmc.mex files. How can I successfully run mmc? Please
   help, I would be greatly appreciated.

Qianqian Fang

unread,
Oct 21, 2025, 10:17:57 AM (10 days ago) Oct 21
to mcx-...@googlegroups.com, yiwei li

hi Yiwei,

did you add path to the folder where mmc.mex* are stored? also type "mexext" in your matlab to see the expected mex file extension.

if your mac is an intel mac, or you use the intel version of matlab on your arm64 apple processors, you need to download the x86-64 version of mmclab - or use the "allinone-matlab" package.

Qianqian

   help, I would be greatly appreciated. --
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/6faa869c-af36-4ec5-814f-84fa5fa09554n%40googlegroups.com.

yiwei li

unread,
Oct 21, 2025, 10:29:23 AM (10 days ago) Oct 21
to mcx-users
Thank you for your reply, Professor Fang. My Mac has an M2 chip, and the version I downloaded is mmclab-macos-arm64-v2025.10. In MATLAB, when I type mexext, the output is mexmaci64. Are there any errors with these? Thank you again.

Qianqian Fang

unread,
Oct 21, 2025, 10:33:21 AM (10 days ago) Oct 21
to mcx-...@googlegroups.com, yiwei li

.mexmaci64 is for intel-x86_64 processors.

while your mac is running on apple silicon (arm64), your installed matlab was not built for native apple silicon. matlab for apple silicon is only available after R2023b and newer, see

https://www.mathworks.com/support/requirements/apple-silicon.html

https://www.mathworks.com/matlabcentral/answers/2153890-what-are-the-compatibility-considerations-for-compiling-applications-using-matlab-compiler-on-intel


you can either download the x86-64 version of mmclab, and let your i64 based matlab to run via Rosetta, or reinstall matlab with a native version.


On 10/21/25 10:29, yiwei li wrote:

You don't often get email from liyw...@gmail.com. Learn why this is important

Reply all
Reply to author
Forward
0 new messages