mac下配置进行c和matlab混编
是用mac的小伙伴有时候有没有感觉很痛苦!遇到什么问题,找相关的解决办法真心不方便,我最近在搞一段程序,要进行c和matlab的混编,可是,在matlab中输入:mex -setup ,根本就检测不到Xcode,后来翻墙找到了些解决办法,可以利用Xcode和matlab进行混编了,下面详细介绍一下。
我电脑的配置:
系统:Capitan 10.11.6
Xcode: 7.3.1
Matlab:2014b
一般情况,在matlab中输入:mex -setup,matlab无法识别到Xcode,如下:
>> mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2015a/maci64.html.
然后我按照下面的方法一步步操作,解决了我的问题。
Please note that the instructions and patch provided here is specifically written for using Xcode7.0 with MATLAB R2015b. Please contact MathWorks Technical Support if you are using Xcode 7.1 or higher.
By default, MATLAB R2015b does not detect