matlab的mbuild和mex之未找到支持的编译器或 SDK 解决方法--整理
来源:互联网 发布:淘宝图片多少像素 编辑:程序博客网 时间:2024/04/30 07:28
===========================================================================================
解决方法:安装windows sdk 7.1
FROM: https://cn.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1
PREREQUISITE INFORMATION
If you have any of the following cases true, see the troubleshooting section at the bottom before proceeding with the SDK 7.1 installation.
Microsoft Visual Studio C++ 2010 SP1 installed (version greater than 10.0.30319)
.NET Framework 4.5 installed (also bundled with Visual Studio 2012 or later)
INSTALLING THE WINDOWS SDK 7.1
1. Download Windows SDK for Windows 7 and .NET Framework 4 from Microsoft at:
http://www.microsoft.com/en-us/download/details.aspx?id=8279
2. When the download is complete, choose to run winsdk_web.exe. Depending on your security settings, you may be prompted by User Account Control (UAC) to confirm “making changes to this computer”.
3. After several seconds, the Setup Wizard will appear.
4. Click through the wizard, accepting the license agreement and not changing any of the installation folders.
5. Continue through the wizard to download and install the SDK. Depending on the speed of your Internet connection, this step will take several minutes to an hour or more.
6. The setup wizard finishes.
TROUBLESHOOTING
.NET Framework 4.5 already installed
If you have .NET Framework 4.5 installed, SDK 7.1 may fail to install. In this case:
Uninstall .NET Framework 4.5.
Install the SDK 7.1 using the instructions above.
Reinstall .NET Framework 4.5.
If SDK 7.1 was already installed, but with a message saying .NET 4 could not be installed due to the presence of .NET 4.5, you may need to uninstall .NET 4.5 first as well and retry.
Microsoft Visual Studio C++ 2010 SP1 already installed
If Microsoft Visual Studio C++ 2010 SP1 is already installed, SDK 7.1 may fail to install. In this case:
Remove the 2010 Redistributable packages (both x86 and x64). For that, navigate to the windows control panel -> click on "programs" -> click on "Programs and Features" -> select the required programs to be removed.
Install SDK 7.1 using the instructions above.
Apply the SDK 7.1 patch.
Reinstall 2010 Redistributable packages.
If you have both Microsoft Visual Studio C++ 2010 SP1 and SDK 7.1 already installed, but running into various errors during compilation, apply the SDK 7.1 patch to fix the issue.
"ammintrin.h missing" error
This occurs if only SDK 7.1 was installed (without Microsoft Visual C++ 2010 SP1 present on the machine), and then the SDK 7.1 patch is applied. In this case:
Install Visual Studio C++ 2010 (if not already installed). Either Professional or Express works.
Upgrade Visual Studio C++ 2010 to SP1
SUPPORTING LINKS AND INSTRUCTIONS
Installing the SDK 7.1 patch
The SDK 7.1 patch can be download and installed from:
<http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=4422>
Upgrading Microsoft Visual Studio C++ 2010 to SP1.
Microsoft Visual Studio C++ 2010 SP1 upgrade can be obtained from:
http://www.microsoft.com/en-us/download/details.aspx?id=23691
==============================================================================================
Matlab 未找到支持的编译器或 SDK 解决方法归纳
FROM: http://blog.csdn.net/gszhan/article/details/50951070
使用Matlab需要混合编译时,Matlab编译器设置时有时会遇到如下问题
>> mbuild -setup
错误使用 mbuild (line 164)Unable to complete successfully.
未找到支持的编译器或 SDK。有关选项,请访问 http://www.mathworks.com/support/compilers/R2014a/win64。
>> mex -setup
错误使用 mex
未找到支持的编译器或 SDK。有关选项,请访问 http://www.mathworks.com/support/compilers/R2014a/win64。
原因网上陈述为“原因:matlab要找windows sdk的mt.exe,找不到报错的.因为vs2013在安装时,windows sdk的mt.exe位置变了,而matlab还是按照老的路径找,肯定找不到(原来在windows sdks下面,现在在windows kits下面).”(http://blog.csdn.NET/macong01/article/details/41356081)
解决方法多数为:将网上下载下来的文件 复制到MATLAB 的 bin\win64 的mbuildopts和mexopts两个文件夹下。
在此归纳一下替换文件:
matlab 2011b + 编译器VS2012
http://blog.csdn.net/macong01/article/details/41356081
Matlab2013a+ 编译器VS2013
http://www.ilovematlab.cn/thread-298097-1-1.html 4L
matlab2015b + 编译器vs2015
http://www.ilovematlab.cn/thread-298097-1-1.html 10L
- matlab的mbuild和mex之未找到支持的编译器或 SDK 解决方法--整理
- Matlab 未找到支持的编译器或 SDK 解决方法归纳
- matlab错误使用 mex 未找到支持的编译器或 SDK
- MATLAB2016b vs2017 mbuild -setup 未找到支持的编译器或 SDK Unable to complete successfully.
- MATLAB未找到支持的编译器或 sdk 一站式解决
- MATLAB R2016a 未找到支持的编译器或SDK
- Matlab R2016a mex -setup 未找到支持的编译器的问题
- matlab-VC混合编程之matlab低版本,VS高版本,mex -setup,mbuild -setup都找不到VS2010的编
- MATLAB之Matlab MEX找不到编译器的问题
- 解决"mex setup或mbuild setup找不到编译器"问题
- matlab: mex命令提示找不到编译器或SDK
- matlab mex 找不到编译器解决方法
- matlab中 mcc、mbuild和mex命令详解
- matlab中 mcc、mbuild和mex命令详解
- matlab中mcc、mbuild和mex命令详解
- matlab中 mcc、mbuild和mex命令详解
- matlab中 mcc、mbuild和mex命令详解
- matlab的mex(1)------找不到SDK
- cocos2d - JS 进阶主题 call() 、apply() 和 bind() 解析
- 推荐算法
- 409. Longest Palindrome
- 排序
- nginx root问题
- matlab的mbuild和mex之未找到支持的编译器或 SDK 解决方法--整理
- Banner无限轮播
- php mysql localhost,127.0.0.1和ip区别
- java.io.File mkdir() 和 mkdirs()的差别
- [RK3399] PWM Backlight 驱动分析
- 浅析VO、DTO、DO、PO的概念、区别和用处
- 第六篇 zabbix创建主机群组
- 为什么开通CSDN博客?
- create table #temptable 临时表 和 declare @bianliang table ()表变量