matlab r2014a 和vs产品交叉编译问题

先说下我的环境配置:

win 7

matlab r2014a

visual studio 2010

在matlab的官网上有介绍matlab 用mex交叉编译支持的编译器。如下

按照上面的介绍应该是matlab 默认支持vs2010的编译器的。但是我在r2014a中用mex -setup开启交叉编译功能时,一直只有如下图的编译器选项(microsoft windows SDK 7.1)。找不到vs2010的。

我在网上有找到解决matlab r2010a对vs2010的编译器支持问题的帖子。

但是我试过下载他的mex包里的文件,但是这个解决不了matlab r2014a的问题。

最终解决方案是:

按照如下说明增添一个环境变量:VS100COMNTOOLS

Running mex inverbose mode has identified the issue – I installed visual studio to anon-standard location (on my D: drive), but for some reason, the VS120COMNTOOLS environment variable was pointing to the ‘C:\Program Files (x86)\MicrosoftVisual Studio 12.0\Common7\Tools\’ directory. Quitting matlab and changing theenvironment variable to the correct location (‘D:\Microsoft Visual Studio12.0Common7Tools’ in my case) fixed the issue.

>

C:\Softwares\MicrosoftVisual Studio 10.0\Common7\Tools

C:\Softwares\MicrosoftVisual Studio 14.0\Common7\Tools

成功后截图:

,人生好如足球赛,看自家总是无奈,对人家总是优待,

matlab r2014a 和vs产品交叉编译问题

相关文章:

你感兴趣的文章:

标签云: