您的位置:首页 > 编程语言 > MATLAB

matlabR2014a 和VS2013 交叉编译问题

2017-01-04 13:30 246 查看
先说下我的环境配置:

win 8.1

matlab r2014a(破解版)64位
visual studio 2013

 mbuild -setup 总是提示找不到SDK

我试过三种办法,最后一种办法解决问题:

一定要先安装vs2013再安装matlab,不确定的话,可以将matlab卸载重新安装。

1、替换网上提供的mexopts

http://download.csdn.net/detail/sinat_25434937/9732580

2、安装sdk7.1

大家可以在我的上传的资源中下载

http://download.csdn.net/detail/sinat_25434937/9732581

3、改变环境路径

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

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.0\Common7\Tools\' in my case) fixed the issue.

相应的VS2010和vs2015的版本添加相应的环境变量。

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

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

以下是我的电脑添加的:



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: