MATLAB不再支持用户定义的MEX配置? [英] MATLAB no longer supports user-defined MEX configuration?

查看:220
本文介绍了MATLAB不再支持用户定义的MEX配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将MATLAB升级到2014b(在OS X 10.10上),并尝试测试一些旧的MEX C/C ++代码.

I've upgraded my MATLAB to 2014b (on OS X 10.10), and tried to test some old MEX C/C++ codes.

像往常一样,我在命令窗口中运行mex -setup,希望能有机会覆盖选项文件"meshopt.sh".

As usual, I run mex -setup from the command window, and I would expect to be provided the chance to overwrite the option file "meshopt.sh".

但是现在看来,MATLAB进行了一些更改,并且我不允许更改MEX配置,它只是说:

But now, it seems MATLAB has made some change and I am not allowed to change the MEX configuration, it simply says:

MEX配置为将Xcode与Clang一起使用以进行C语言编译,
...
要选择其他语言,请从以下选项中选择一种

MEX configured to use Xcode with Clang for C language compilation,
...
to choose a different language, select one from the following

mex -setup C++
mex -setup FORTRAN

那么,修改"mexopts.sh"的旧方法不再可行吗?

So, is it true that the old ways to modify "mexopts.sh" are no longer feasible?

推荐答案

以下命令似乎有效:

mex -setup my_mexopts.sh

但是,有一些警告信息,

however, there's some warning information,

提供了旧版MEX基础结构以实现兼容性;它将在以后的MATLAB版本中删除.

除此之外,一切看起来都不错,除了我在编译时收到一些警告,似乎是由于当前系统(OS X 10.10)上的编译器版本(gcc 4.9.1)造成的.

Apart from that, everything looks fine, except I got some warning at compile time seems due to compiler version(gcc 4.9.1) on my current system(OS X 10.10).

gcc:警告:无法理解kern.osversion '14 .0.0

这篇关于MATLAB不再支持用户定义的MEX配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆