使Matlab的mex与Mountain Lion上的xcode 4.4一起使用 [英] Getting Matlab's mex to work with xcode 4.4 on Mountain Lion
问题描述
我最近购买了Mountain Lion(OS 10.8)随附的新计算机.我想开始在这台机器上使用mex文件,但是我很难获取'mex -setup'来查找任何编译器.
I recently bought a new computer that came with Mountain Lion (OS 10.8). I'd like to start working with mex files on this machine, but I'm having a hard time getting 'mex -setup' to find any compilers.
规格:
- 狮子山10.8
- Matlab 2012a
- XCode 4.4
我注意到matlab发布了针对XCode 4.2和4.3的补丁.我也意识到XCode 4.4(和那只山狮)并没有得到Matlab的正式支持.据我所知,还没有办法在Mountain Lion上安装4.3.因此,我知道向社区询问是很遥远的事情,但是有没有人找到让XCode 4.4与Matlab的mex功能配合使用的方法?
I noticed that matlab has released a patch for XCode 4.2, and 4.3. I also realize that XCode 4.4 (and Mountain lion, for that matter) is not officially supported by Matlab. As far as I can tell, there is not a way to install 4.3 on Mountain Lion. So I know it is a long shot to ask the community, but has anyone found a way to get XCode 4.4 to work with Matlab's mex functionality?
谢谢大卫
推荐答案
我与您提到的规格相同,并且转载了您的情况.但是,我从Mathworks找到了一个可行的解决方案.它是为XCode 4.2和4.3设计的,但仍适用于XCode 4.4.修复很简单,只涉及从Matlab命令行运行补丁.
I have the same specs as you mentioned and I reproduced your situation. However, I found a working solution from the Mathworks. It was designed for XCode 4.2 and 4.3, yet it works for XCode 4.4. The fix is simple and involves only running a patch from the Matlab command line.
可以在以下错误报告中找到所有信息. MathWorks支持论坛.
All information can be found this bug report in the MathWorks support forum.
这篇关于使Matlab的mex与Mountain Lion上的xcode 4.4一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!