Compiling & Building MEX files for Matlab on a MacBook Pro using Xcode 2.4.1, Intel Compiler, Intel
No License
In these notes I will describe my first (successful) attempt to compile and link MEX files for Matlab using Xcode IDE on a Intel Core 2 MacBook Pro (but hopefully the procedure should be general enough to adapt to other scenarios). Since I am new to the Mac's world (after many years using solely Windows and a little bit of Linux) it is likely that this notes are not totally accurate or that some issues can be solved much easily. Do not hesitate to contact me and to send suggestions/corrections.
Cite As
Marco Zuliani (2025). Compiling & Building MEX files for Matlab on a MacBook Pro using Xcode 2.4.1, Intel Compiler, Intel (https://se.mathworks.com/matlabcentral/fileexchange/17602-compiling-building-mex-files-for-matlab-on-a-macbook-pro-using-xcode-2-4-1-intel-compiler-intel), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Important improvement that fixes the choice of the correct Mac-O type in order to avoid the problem of "persistence" while recompiling a MEX file during the same Matlab Session |
